generate.go 649 B

12345678910111213
  1. //go:build !darwin
  2. // +build !darwin
  3. package llm
  4. //go:generate git submodule init
  5. //go:generate git submodule update --force ggml
  6. //go:generate git -C ggml apply ../ggml_patch/0001-add-detokenize-endpoint.patch
  7. //go:generate git -C ggml apply ../ggml_patch/0002-34B-model-support.patch
  8. //go:generate git -C ggml apply ../ggml_patch/0003-metal-fix-synchronization-in-new-matrix-multiplicati.patch
  9. //go:generate git -C ggml apply ../ggml_patch/0004-metal-add-missing-barriers-for-mul-mat-2699.patch
  10. //go:generate cmake --fresh -S ggml -B ggml/build/cpu -DLLAMA_K_QUANTS=on
  11. //go:generate cmake --build ggml/build/cpu --target server --config Release