Text Generation
Transformers
GGUF
Safetensors
quantized
2-bit
3-bit
4-bit precision
5-bit
6-bit
8-bit precision
GGUF
conversational
function-calling
text-generation-inference
imatrix
Instructions to use MaziyarPanahi/firefunction-v2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/firefunction-v2-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/firefunction-v2-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MaziyarPanahi/firefunction-v2-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MaziyarPanahi/firefunction-v2-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use MaziyarPanahi/firefunction-v2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/firefunction-v2-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/firefunction-v2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
- SGLang
How to use MaziyarPanahi/firefunction-v2-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MaziyarPanahi/firefunction-v2-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/firefunction-v2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MaziyarPanahi/firefunction-v2-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/firefunction-v2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use MaziyarPanahi/firefunction-v2-GGUF with Ollama:
ollama run hf.co/MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use MaziyarPanahi/firefunction-v2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MaziyarPanahi/firefunction-v2-GGUF with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
- Lemonade
How to use MaziyarPanahi/firefunction-v2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.firefunction-v2-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use MaziyarPanahi/firefunction-v2-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MaziyarPanahi/firefunction-v2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "MaziyarPanahi/firefunction-v2-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Commit History
-
Upload folder using huggingface_hub (#4)
Verified signature- 0a3f8bb7206a61d5d7cbb0a7f70d8294dc8089860f77305e666afe6c8979d927 (367193b8751cc04613d0afd75b545ace3f88370b) - 841c911b01ff5710b3fa4fcb5fa1bf278c6d1ddfc4f4a24350939ca6be69624d (7da2b498ba2a96c28648c6e9f63adb28846aa712) - 860ea77808ac3586c119f7370613042c537cbe9bc23f0aee473d252d18d449ac (caa6d203b4129dc114af49edf3fcee7b7a4667c4) - d93c9fdab9f72ef8130b34f20c2fb322790934f05a3ce831ac477ccad680afc8 (456d9e465e122024d7c91f00e88ad655a72a2497) - f1d42c83950167ee5de72ba0414241b607a29b9442dcb0cbf30a08d467ab41b9 (c45c773e7b3bee5865de6a3d4b87191895828878) - e1b44532b9b10b8b1da65970ada50555b333c28e0d8dd4a084fec536418c0f7c (f398d1b21f5cf1d37eccb271636e71e0a854e0b6) - ca2d6e7a0265c18be980a54fe455f526fdc158c4754989c6cca66e42ebff7b9f (c855bdeb7815f57c0cbf7a6da525d4ffe4cb1718) - dba4af19eeb2e0f2f5f589b77f70c1a9d8095d39b1ff3215c6c4dba53df2cb07 (e5ea1fdcd68e858a4e5c57a65c30614abe06ce08) - d382aea5e132bc091499f29ec3d7edd63b125376596392a999d0581e7bc36cc6 (46c51936bd34c2f6a5030f69b61c383a253dd471) - 1d480e2c…e48d670 -
[WIP] Upload folder using huggingface_hub (multi-commit d05be761b0e3983b92f1ca0ef12e4839c645fcfc270db6e3f5163be8cbabb4da) (#3)
Verified signature- 0a3f8bb7206a61d5d7cbb0a7f70d8294dc8089860f77305e666afe6c8979d927 (a4c51a0ceb169c1b61010b92ee5f2f259860a548) - 841c911b01ff5710b3fa4fcb5fa1bf278c6d1ddfc4f4a24350939ca6be69624d (58b2a00035b803ba185e0f33f753c4645c6f2e2b) - 860ea77808ac3586c119f7370613042c537cbe9bc23f0aee473d252d18d449ac (5abc636fee2cf07f3c69dbbbb5eb145009b07f7a) - d93c9fdab9f72ef8130b34f20c2fb322790934f05a3ce831ac477ccad680afc8 (d3572579d390719028da3412e0b07ed185a24e77) - f1d42c83950167ee5de72ba0414241b607a29b9442dcb0cbf30a08d467ab41b9 (2f8e0a72fb40cf52443e704bde5be598f0260c45) - e1b44532b9b10b8b1da65970ada50555b333c28e0d8dd4a084fec536418c0f7c (1ffdcb03f5b231aee17463e825c01bb60bada45e) - ca2d6e7a0265c18be980a54fe455f526fdc158c4754989c6cca66e42ebff7b9f (7b32cd080e255a77d7d9339bfd19c40c9d960acd) - dba4af19eeb2e0f2f5f589b77f70c1a9d8095d39b1ff3215c6c4dba53df2cb07 (34c17cbd88134950112f3f6bc4cafa130e0dcbb7) - d382aea5e132bc091499f29ec3d7edd63b125376596392a999d0581e7bc36cc6 (9e39a911647d67fae2af4321fdf20965b1c46096) - 1d480e2c…043a879
-
Upload folder using huggingface_hub (#2)
Verified signature- b166a720114b045cdc5ac5a9771c7fa0ddc897af3e5dc688b467b2885c066d40 (0eec74614cfaeac9e74b11188826509040f9e065) - 5dfc3d12d3b49fb5a6443715e08b3bb6be62d91392edf59cbdaefd64dbddb0bb (9dc347e596bf63a84335cefb2940ae24123b42ff) - f35702f7a0065a003c798b38a4fcf73635e1d062383fdb507d93d661b2e8a11d (524db45d1e10631c42997cc32e87aa83fb2ead57) - 95dc2f18845a7c19788b69d10929a88a825d944e1b6bdea10220dac091f26644 (07265442d4398941b47287364ad6e78dde88acab) - 8d86dd32f4ee3eba588da7ed574b7eca6c7776c107431792c7308cd3dfb0f35d (572f88f9707d7ffabda06c2e5f3e86165f536b4a) - eb16eb0e46dde03d6628324b4ba6ac8196f25068201857a75f48569bc5095ee9 (528aff81618ea17bf49d2bda3d497eb763298402) - f5e53d985b7f97a574a811717047b755821effd309ce4b4c6760cab012c9e210 (19de699291c024868d740e6208b8c4b309899b1c) - c1d4d5d57a07a0e8ecced81cc68682d1c7af94149c68622e3a6adfce9dc33aad (670e9cf7c1fadc92c3d2239771a66e01ab27cff1) - 25968f2f66b322c495bcd410366d854036ab7227205a5d565bdd91c65deda521 (1e6aa5ef13ee8e62636961cc54e4a6e38881272e) - a2458dce…39206f8 -
Update README.md (#1)
Verified signature- Update README.md (743327f78e57d60ee74d1364a23c4bd318ae9e2d)f382516 -
initial commit
Verified signature80338f8