diff --git a/docs/creating_llamafiles.md b/docs/creating_llamafiles.md index 14a1898fa4..0a0cc562dc 100644 --- a/docs/creating_llamafiles.md +++ b/docs/creating_llamafiles.md @@ -104,6 +104,28 @@ run it as a web server with: ./Qwen3-0.6B-Q8.llamafile --server ``` +### Windows (`cmd.exe`) + +The same packaging steps work in Windows Command Prompt. Download the +`llamafile-` and `zipalign-` assets from the +[releases page](https://github.com/mozilla-ai/llamafile/releases), rename them +to `llamafile.exe` and `zipalign.exe`, and place them in the same directory as +your GGUF model and `.args` file. Use the `.args` format described above, with +the model path prefixed by `/zip/` when the GGUF will be embedded. + +Then run: + +```bat +copy /b llamafile.exe my-model.llamafile.exe +zipalign.exe -j0 my-model.llamafile.exe model.gguf .args +my-model.llamafile.exe --server +``` + +Use `copy /b` rather than text-mode copying so the executable bytes are +preserved. A bundled executable larger than 4 GB cannot run on Windows; for +larger models, keep the GGUF external as described in the +[Quickstart](quickstart.md#running-llamafile-with-models-downloaded-by-third-party-applications). + ### Server, multimodal Now, let us build another llamafile running a multimodal model served