generate_darwin.go 467 B

1234567891011
  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 cmake -S ggml -B ggml/build/gpu -DLLAMA_METAL=on -DLLAMA_ACCELERATE=on -DLLAMA_K_QUANTS=on
  9. //go:generate cmake --build ggml/build/gpu --target server --config Release