Instructions to use QuantLLM/functiongemma-270m-it-4bit-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantLLM/functiongemma-270m-it-4bit-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantLLM/functiongemma-270m-it-4bit-gguf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use QuantLLM/functiongemma-270m-it-4bit-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 QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantLLM/functiongemma-270m-it-4bit-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 QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantLLM/functiongemma-270m-it-4bit-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 QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantLLM/functiongemma-270m-it-4bit-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 QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M
Use Docker
docker model run hf.co/QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantLLM/functiongemma-270m-it-4bit-gguf with Ollama:
ollama run hf.co/QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M
- Unsloth Studio
How to use QuantLLM/functiongemma-270m-it-4bit-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantLLM/functiongemma-270m-it-4bit-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantLLM/functiongemma-270m-it-4bit-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantLLM/functiongemma-270m-it-4bit-gguf to start chatting
- Pi
How to use QuantLLM/functiongemma-270m-it-4bit-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use QuantLLM/functiongemma-270m-it-4bit-gguf with Docker Model Runner:
docker model run hf.co/QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M
- Lemonade
How to use QuantLLM/functiongemma-270m-it-4bit-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M
Run and chat with the model
lemonade run user.functiongemma-270m-it-4bit-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use QuantLLM/functiongemma-270m-it-4bit-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 QuantLLM/functiongemma-270m-it-4bit-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 QuantLLM/functiongemma-270m-it-4bit-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use QuantLLM/functiongemma-270m-it-4bit-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf QuantLLM/functiongemma-270m-it-4bit-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 "QuantLLM/functiongemma-270m-it-4bit-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"
Upload model via QuantLLM
Browse files- .gitattributes +1 -0
- README.md +167 -0
- functiongemma-270m-it.Q4_K_M.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
functiongemma-270m-it.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,167 @@
|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 |
+
license: apache-2.0
|
| 3 |
+
base_model: google/functiongemma-270m-it
|
| 4 |
+
library_name: gguf
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- quantllm
|
| 9 |
+
- gguf
|
| 10 |
+
- llama-cpp
|
| 11 |
+
- quantized
|
| 12 |
+
- transformers
|
| 13 |
+
- q4_k_m
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<div align="center">
|
| 17 |
+
|
| 18 |
+
# π¦ functiongemma-270m-it-4bit-gguf
|
| 19 |
+
|
| 20 |
+
**google/functiongemma-270m-it** converted to **GGUF** format
|
| 21 |
+
|
| 22 |
+
[](https://github.com/codewithdark-git/QuantLLM)
|
| 23 |
+
[]()
|
| 24 |
+
[]()
|
| 25 |
+
|
| 26 |
+
<a href="https://github.com/codewithdark-git/QuantLLM">β Star QuantLLM on GitHub</a>
|
| 27 |
+
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
## π About This Model
|
| 34 |
+
|
| 35 |
+
This model is **[google/functiongemma-270m-it](https://huggingface.co/google/functiongemma-270m-it)** converted to **GGUF** format for use with llama.cpp, Ollama, LM Studio, and other compatible inference engines.
|
| 36 |
+
|
| 37 |
+
| Property | Value |
|
| 38 |
+
|----------|-------|
|
| 39 |
+
| **Base Model** | [google/functiongemma-270m-it](https://huggingface.co/google/functiongemma-270m-it) |
|
| 40 |
+
| **Format** | GGUF |
|
| 41 |
+
| **Quantization** | Q4_K_M |
|
| 42 |
+
| **License** | apache-2.0 |
|
| 43 |
+
| **Created With** | [QuantLLM](https://github.com/codewithdark-git/QuantLLM) |
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
## π Quick Start
|
| 47 |
+
|
| 48 |
+
### Option 1: Python (llama-cpp-python)
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
from llama_cpp import Llama
|
| 52 |
+
|
| 53 |
+
# Load the model
|
| 54 |
+
llm = Llama.from_pretrained(
|
| 55 |
+
repo_id="QuantLLM/functiongemma-270m-it-4bit-gguf",
|
| 56 |
+
filename="functiongemma-270m-it-4bit-gguf.Q4_K_M.gguf",
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
# Generate text
|
| 60 |
+
output = llm(
|
| 61 |
+
"Write a short story about a robot learning to paint:",
|
| 62 |
+
max_tokens=256,
|
| 63 |
+
echo=True
|
| 64 |
+
)
|
| 65 |
+
print(output["choices"][0]["text"])
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Option 2: Ollama
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
# Download the model
|
| 72 |
+
huggingface-cli download QuantLLM/functiongemma-270m-it-4bit-gguf functiongemma-270m-it-4bit-gguf.Q4_K_M.gguf --local-dir .
|
| 73 |
+
|
| 74 |
+
# Create Modelfile
|
| 75 |
+
echo 'FROM ./functiongemma-270m-it-4bit-gguf.Q4_K_M.gguf' > Modelfile
|
| 76 |
+
|
| 77 |
+
# Import to Ollama
|
| 78 |
+
ollama create functiongemma-270m-it-4bit-gguf -f Modelfile
|
| 79 |
+
|
| 80 |
+
# Chat with the model
|
| 81 |
+
ollama run functiongemma-270m-it-4bit-gguf
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### Option 3: LM Studio
|
| 85 |
+
|
| 86 |
+
1. Download the `.gguf` file from the **Files** tab above
|
| 87 |
+
2. Open **LM Studio** β **My Models** β **Add Model**
|
| 88 |
+
3. Select the downloaded file
|
| 89 |
+
4. Start chatting!
|
| 90 |
+
|
| 91 |
+
### Option 4: llama.cpp CLI
|
| 92 |
+
|
| 93 |
+
```bash
|
| 94 |
+
# Download
|
| 95 |
+
huggingface-cli download QuantLLM/functiongemma-270m-it-4bit-gguf functiongemma-270m-it-4bit-gguf.Q4_K_M.gguf --local-dir .
|
| 96 |
+
|
| 97 |
+
# Run inference
|
| 98 |
+
./llama-cli -m functiongemma-270m-it-4bit-gguf.Q4_K_M.gguf -p "Hello! " -n 128
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
## π Model Details
|
| 103 |
+
|
| 104 |
+
| Property | Value |
|
| 105 |
+
|----------|-------|
|
| 106 |
+
| **Original Model** | [google/functiongemma-270m-it](https://huggingface.co/google/functiongemma-270m-it) |
|
| 107 |
+
| **Format** | GGUF |
|
| 108 |
+
| **Quantization** | Q4_K_M |
|
| 109 |
+
| **License** | `apache-2.0` |
|
| 110 |
+
| **Export Date** | 2025-12-21 |
|
| 111 |
+
| **Exported By** | [QuantLLM v2.0](https://github.com/codewithdark-git/QuantLLM) |
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
## π¦ Quantization Details
|
| 115 |
+
|
| 116 |
+
This model uses **Q4_K_M** quantization:
|
| 117 |
+
|
| 118 |
+
| Property | Value |
|
| 119 |
+
|----------|-------|
|
| 120 |
+
| **Type** | Q4_K_M |
|
| 121 |
+
| **Bits** | 4-bit |
|
| 122 |
+
| **Quality** | π’ β Recommended - Best quality/size balance |
|
| 123 |
+
|
| 124 |
+
### All Available GGUF Quantizations
|
| 125 |
+
|
| 126 |
+
| Type | Bits | Quality | Best For |
|
| 127 |
+
|------|------|---------|----------|
|
| 128 |
+
| Q2_K | 2-bit | π΄ Lowest | Extreme size constraints |
|
| 129 |
+
| Q3_K_M | 3-bit | π Low | Very limited memory |
|
| 130 |
+
| Q4_K_M | 4-bit | π’ Good | **Most users** β |
|
| 131 |
+
| Q5_K_M | 5-bit | π’ High | Quality-focused |
|
| 132 |
+
| Q6_K | 6-bit | π΅ Very High | Near-original |
|
| 133 |
+
| Q8_0 | 8-bit | π΅ Excellent | Maximum quality |
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
---
|
| 137 |
+
|
| 138 |
+
## π Created with QuantLLM
|
| 139 |
+
|
| 140 |
+
<div align="center">
|
| 141 |
+
|
| 142 |
+
[](https://github.com/codewithdark-git/QuantLLM)
|
| 143 |
+
|
| 144 |
+
**Convert any model to GGUF, ONNX, or MLX in one line!**
|
| 145 |
+
|
| 146 |
+
```python
|
| 147 |
+
from quantllm import turbo
|
| 148 |
+
|
| 149 |
+
# Load any HuggingFace model
|
| 150 |
+
model = turbo("google/functiongemma-270m-it")
|
| 151 |
+
|
| 152 |
+
# Export to any format
|
| 153 |
+
model.export("gguf", quantization="Q4_K_M")
|
| 154 |
+
|
| 155 |
+
# Push to HuggingFace
|
| 156 |
+
model.push("your-repo", format="gguf")
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
<a href="https://github.com/codewithdark-git/QuantLLM">
|
| 160 |
+
<img src="https://img.shields.io/github/stars/codewithdark-git/QuantLLM?style=social" alt="GitHub Stars">
|
| 161 |
+
</a>
|
| 162 |
+
|
| 163 |
+
**[π Documentation](https://github.com/codewithdark-git/QuantLLM#readme)** Β·
|
| 164 |
+
**[π Report Issue](https://github.com/codewithdark-git/QuantLLM/issues)** Β·
|
| 165 |
+
**[π‘ Request Feature](https://github.com/codewithdark-git/QuantLLM/issues)**
|
| 166 |
+
|
| 167 |
+
</div>
|
functiongemma-270m-it.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81d956803fca65bf460960dd2aabfecd76c16ab56d74176fa92b66f2c34aca47
|
| 3 |
+
size 253126816
|