Skip to content

Commit

Permalink
Baremetal/Portable Embedding (WIP)
Browse files Browse the repository at this point in the history
Embedding model, tokenizer & assets for baremetal and portable builds (WIP)
  • Loading branch information
trholding committed Aug 21, 2023
1 parent f7a7ed9 commit 2e62eac
Show file tree
Hide file tree
Showing 3 changed files with 511 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,15 @@ runmkl: run.c
runaccel: run.c
$(CC) -D AAF -Ofast -fopenmp -march=native run.c -lm -framework Accelerate -o run

.PHONY: cosmorun
cosmorun:
.PHONY: runcosmo
runcosmo:
cosmocc -Ofast -D COSMO_BLINK -D COSMO_METAL -D COSMO_ZIP run.c -lm -o run.com
zip run.com out/model.bin
zip run.com tokenizer.bin

.PHONY: runboot
runboot:
cosmocc -Ofast -D COSMO_BLINK -D COSMO_METAL -D INC_BIN -D MODPATH=out/model.bin run.c -lm -o run.com

# run all tests
.PHONY: test
Expand Down
Loading

0 comments on commit 2e62eac

Please sign in to comment.