Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/MojoLlama/blob/main/src/mojollama/mojo_engine/build_batch.sh # MojoLlama Archived Mojo/MAX quantizer and serving research repository (read-only history) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `MojoLlama / src / mojollama / mojo_engine / build_batch.sh` 18 lines ยท 584 bytes Raw Blame History 1 #!/bin/bash 2 set -e 3 MOJO_LIB="$HOME/.local/share/uv/tools/mojo/lib/python3.11/site-packages/modular/lib" 4 5 echo "=== Step 1: Mojo compile to object ===" 6 mojo build tinyllama_gen_batch.mojo --emit object -o tinyllama_gen_batch.o 7 8 echo "=== Step 2: Link with GCC ===" 9 gcc -o tinyllama_gen_batch tinyllama_gen_batch.o \ 10 -L"$MOJO_LIB" \ 11 -lKGENCompilerRTShared \ 12 -lAsyncRTRuntimeGlobals \ 13 -lMSupportGlobals \ 14 -lAsyncRTMojoBindings \ 15 -lm -lpthread -ldl -lstdc++ 16 17 echo "=== Done: tinyllama_gen_batch ===" 18 echo "Run: LD_LIBRARY_PATH=\"$MOJO_LIB\" ./tinyllama_gen_batch"