generate.go 392 B

12345678
  1. package llm
  2. //go:generate git submodule init
  3. //go:generate git submodule update --force ggml
  4. //go:generate git -C ggml apply ../ggml_patch/0001-add-detokenize-endpoint.patch
  5. //go:generate git -C ggml apply ../ggml_patch/0002-34B-model-support.patch
  6. //go:generate cmake -S ggml -B ggml/build/cpu -DLLAMA_K_QUANTS=on
  7. //go:generate cmake --build ggml/build/cpu --target server --config Release