Views
No views yet
FreedomIntelligence/BlenderLLM using llama.cpp via the ggml.ai's GGUF-my-repo space.
Refer to the original model card for more details on the model.1brew install llama.cpp
2Nvidia CUDA hardware:1git clone https://github.com/ggerganov/llama.cpp.git
2cd llama*
3# look at docs for other hardware builds or to make sure none of this has changed.
4
5cmake -B build -DGGML_CUDA=ON
6CMAKE_ARGS="-DGGML_CUDA=on" cmake --build build --config Release # -j6 (optional: use a number less than the number of cores)
7
8# If your version of gcc is > 12 and it gives errors, use conda to install gcc-12 and activate it.
9# Run the above cmake commands again.
10# Then run conda deactivate and re-run the last line once more to link the build outside of conda.
11
12# Add the -ngl 33 flag to the commands below to take advantage of all the GPU layers.
13# If it uses too much GPU and crashes, use some lower number.llama-cli --hf-repo hellork/BlenderLLM-IQ3_XXS-GGUF --hf-file blenderllm-iq3_xxs-imat.gguf -p "Build a Blender model of Starship"llama-server --hf-repo hellork/BlenderLLM-IQ3_XXS-GGUF --hf-file blenderllm-iq3_xxs-imat.gguf -c 2048git clone https://github.com/ggerganov/llama.cppLLAMA_CURL=1 flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).cd llama.cpp && LLAMA_CURL=1 make./llama-cli --hf-repo hellork/BlenderLLM-IQ3_XXS-GGUF --hf-file blenderllm-iq3_xxs-imat.gguf -p "Write a Blender script to construct a Tie Fighter"./llama-server --hf-repo hellork/BlenderLLM-IQ3_XXS-GGUF --hf-file blenderllm-iq3_xxs-imat.gguf -c 2048