generate_linux.go 800 B

123456789101112131415
  1. package llm
  2. //go:generate git submodule init
  3. //go:generate git submodule update --force ggml
  4. //go:generate -command git-apply git -C ggml apply
  5. //go:generate git-apply ../ggml_patch/0001-add-detokenize-endpoint.patch
  6. //go:generate git-apply ../ggml_patch/0002-34B-model-support.patch
  7. //go:generate git-apply ../ggml_patch/0005-ggml-support-CUDA-s-half-type-for-aarch64-1455-2670.patch
  8. //go:generate cmake -S ggml -B ggml/build/gpu -DLLAMA_CUBLAS=on -DLLAMA_ACCELERATE=on -DLLAMA_K_QUANTS=on
  9. //go:generate cmake --build ggml/build/gpu --target server --config Release
  10. //go:generate git submodule update --force gguf
  11. //go:generate cmake -S gguf -B gguf/build/gpu -DLLAMA_CUBLAS=on -DLLAMA_ACCELERATE=on -DLLAMA_K_QUANTS=on
  12. //go:generate cmake --build gguf/build/gpu --target server --config Release