Instructions to use unsloth/functiongemma-270m-it-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/functiongemma-270m-it-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unsloth/functiongemma-270m-it-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/functiongemma-270m-it-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/functiongemma-270m-it-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 unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama cli -hf unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
- Llama new
- LM Studio
- Jan
- vLLM
How to use unsloth/functiongemma-270m-it-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/functiongemma-270m-it-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": "unsloth/functiongemma-270m-it-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
- SGLang
How to use unsloth/functiongemma-270m-it-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 "unsloth/functiongemma-270m-it-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": "unsloth/functiongemma-270m-it-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 "unsloth/functiongemma-270m-it-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": "unsloth/functiongemma-270m-it-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use unsloth/functiongemma-270m-it-GGUF with Ollama:
ollama run hf.co/unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
- Unsloth Desktop
- Pi
How to use unsloth/functiongemma-270m-it-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
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": "unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use unsloth/functiongemma-270m-it-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/functiongemma-270m-it-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.functiongemma-270m-it-GGUF-UD-Q4_K_XL
List all available models
lemonade list
- Hermes Agent
How to use unsloth/functiongemma-270m-it-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 unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
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 unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use unsloth/functiongemma-270m-it-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL
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 "unsloth/functiongemma-270m-it-GGUF:UD-Q4_K_XL" \ --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
-
Update README.md
Verified signature1de0f7f
-
Update README.md (#1)
Verified signature- Update README.md (68d8a14689d9fa9405a9e95bccd9671c40886644) Co-authored-by: rizan bhandari <rizanb@users.noreply.huggingface.co>4477117 -
Update README.md
Verified signaturef4000e8
-
Delete functiongemma-270m-it-UD-IQ1_S.gguf
Verified signature2191747 -
Delete functiongemma-270m-it-UD-IQ1_M.gguf
Verified signatureb8b85f9 -
Upload folder using huggingface_hub
Verified signature8f354c1 -
Upload folder using huggingface_hub
Verified signature9b68987 -
Upload folder using huggingface_hub
Verified signature99936aa -
Upload folder using huggingface_hub
Verified signature93bec61 -
Upload folder using huggingface_hub
Verified signature13b839a -
Upload folder using huggingface_hub
Verified signature0897ad9 -
Upload folder using huggingface_hub
Verified signaturecf1589c -
Upload folder using huggingface_hub
Verified signatured68b54a -
Upload folder using huggingface_hub
Verified signaturebba6dd8 -
Upload folder using huggingface_hub
Verified signature04104dc -
Upload folder using huggingface_hub
Verified signatureb5f66a9 -
Upload folder using huggingface_hub
Verified signature1c7c270 -
Upload folder using huggingface_hub
Verified signaturea54527b -
Upload folder using huggingface_hub
Verified signature4a5a319 -
Upload folder using huggingface_hub
Verified signature6575188 -
Upload folder using huggingface_hub
Verified signaturef51c7fa -
Upload folder using huggingface_hub
Verified signature0dd7738 -
Upload folder using huggingface_hub
Verified signature36547c2 -
Upload folder using huggingface_hub
Verified signature3080d6d -
Upload folder using huggingface_hub
Verified signature3675fbf -
Upload folder using huggingface_hub
Verified signature70115d3 -
Upload folder using huggingface_hub
Verified signaturef020447 -
Upload folder using huggingface_hub
Verified signature18028e9 -
Upload folder using huggingface_hub
Verified signaturef15ae72 -
Upload folder using huggingface_hub
Verified signature77321dc -
Upload folder using huggingface_hub
Verified signature26aa301 -
Upload folder using huggingface_hub
Verified signature0611fe1 -
Update README.md
Verified signature766584f -
Upload folder using huggingface_hub
Verified signaturea685ae8 -
Update README.md
Verified signaturea4e525a -
Update README.md
Verified signature6f62677 -
Update README.md
Verified signaturea12be5a -
Delete functiongemma-270m-it-UD-IQ1_S.gguf
Verified signature7752689 -
Delete functiongemma-270m-it-UD-IQ1_M.gguf
Verified signature1e3601c -
Upload folder using huggingface_hub
Verified signature75a2384 -
Upload folder using huggingface_hub
Verified signature2b2a71d -
Upload folder using huggingface_hub
Verified signatureff1c8ab -
Upload folder using huggingface_hub
Verified signaturebb654b7 -
Upload folder using huggingface_hub
Verified signaturefe94b3b -
Upload folder using huggingface_hub
Verified signature60170e8 -
Upload folder using huggingface_hub
Verified signature19af5fd -
Upload folder using huggingface_hub
Verified signaturefcfc78d -
Upload folder using huggingface_hub
Verified signatureed705a7 -
Upload folder using huggingface_hub
Verified signature649040a -
Upload folder using huggingface_hub
Verified signature87e28f6