Text Generation
GGUF
function-calling
gemma
functiongemma
construction
quantity-takeoff
conversational
Instructions to use NiceK1/blueline-interpreter-functiongemma-270m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use NiceK1/blueline-interpreter-functiongemma-270m 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 NiceK1/blueline-interpreter-functiongemma-270m:Q8_0 # Run inference directly in the terminal: llama cli -hf NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf NiceK1/blueline-interpreter-functiongemma-270m:Q8_0 # Run inference directly in the terminal: llama cli -hf NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
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 NiceK1/blueline-interpreter-functiongemma-270m:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
Use Docker
docker model run hf.co/NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use NiceK1/blueline-interpreter-functiongemma-270m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NiceK1/blueline-interpreter-functiongemma-270m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NiceK1/blueline-interpreter-functiongemma-270m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
- Ollama
How to use NiceK1/blueline-interpreter-functiongemma-270m with Ollama:
ollama run hf.co/NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
- Unsloth Desktop
- Pi
How to use NiceK1/blueline-interpreter-functiongemma-270m with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "NiceK1/blueline-interpreter-functiongemma-270m:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use NiceK1/blueline-interpreter-functiongemma-270m with Docker Model Runner:
docker model run hf.co/NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
- Lemonade
How to use NiceK1/blueline-interpreter-functiongemma-270m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
Run and chat with the model
lemonade run user.blueline-interpreter-functiongemma-270m-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use NiceK1/blueline-interpreter-functiongemma-270m with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
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:9931/v1 hermes config set model.default NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use NiceK1/blueline-interpreter-functiongemma-270m with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NiceK1/blueline-interpreter-functiongemma-270m:Q8_0
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:9931/v1 \ --custom-model-id "NiceK1/blueline-interpreter-functiongemma-270m:Q8_0" \ --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"
|
Download README.md from NiceK1/blueline-interpreter-functiongemma-270m: direct link, hf CLI and curl.
- Browser
- Download file 5.17 kB
-
https://huggingface.co/NiceK1/blueline-interpreter-functiongemma-270m/resolve/main/README.md
- Command line
-
hf download hf://NiceK1/blueline-interpreter-functiongemma-270m/README.md
-
curl -L -o README.md https://huggingface.co/NiceK1/blueline-interpreter-functiongemma-270m/resolve/main/README.md
5.17 kB
| license: gemma | |
| base_model: google/functiongemma-270m-it | |
| pipeline_tag: text-generation | |
| tags: | |
| - gguf | |
| - function-calling | |
| - gemma | |
| - functiongemma | |
| - construction | |
| - quantity-takeoff | |
| language: | |
| - en | |
| - fi | |
| - de | |
| - fr | |
| - it | |
| # Blueline interpreter (tuned Gemma) | |
| FunctionGemma 270M, fine-tuned to turn a question about a construction drawing into one structured call. | |
| It is the question interpreter of [Blueline](https://github.com/NiceK1/stoa-spike), a tool built at Junction 2026 | |
| for the Stoa challenge "Make Blueprints Talk": ask a quantity question about a drawing and get the answer with every | |
| counted item marked on the drawing. The model only decides *what to compute*; geometry scripts and object detectors | |
| compute the answer, so the numbers stay exact. | |
| - Live demo: https://blueline.65-108-32-187.sslip.io (the default mode, "Blueline only", uses this model) | |
| - What it does in the app, and how it was built: https://github.com/NiceK1/stoa-spike/blob/main/docs/gemma.md | |
| - All measurements: https://github.com/NiceK1/stoa-spike/blob/main/docs/results.md | |
| ## The file | |
| `interpreter-q8_0.gguf`: 8-bit GGUF, 292 MB, for llama.cpp and its bindings. It runs on a CPU: about 0.9 seconds | |
| per question on a laptop (i7-11800H, 8 threads). | |
| ## What it takes and what it returns | |
| The input is a short menu of what the drawing contains and the question; the output is one JSON call. | |
| | Drawing | Menu the model sees | Call it returns | | |
| |---|---|---| | |
| | Layered DXF floor plan | the plan's room labels, apartments, room numbers, symbol counts | `operation` (`count_symbols`, `count_apartments`, `rooms`, `area_apartment`, `area_floor`, `compare`, `none`) with symbols, labels, room numbers, apartments, pick, measure | | |
| | Raster floor plan or PDF sheet | the 13 kinds the detectors know | `operation` (`count_known`, `count_other`, `read`) with targets, whole_drawing, items | | |
| | IFC building model | storeys, element classes with counts, room names | `operation` (`count_elements`, `rooms`, `storey_total`, `model_facts`, `none`) with elements, storey, rooms, pick, measure, quantity | | |
| Every call also says whether the user asked to be shown things (`locate`) and the answer type. | |
| The prompt has a developer turn (one line of instruction, a one-line summary of the schema, the drawing's menu) and | |
| a user turn (the question, with a keyword parser's reading as a hint). It must be rendered exactly as in training: | |
| use `renderPrompt` in | |
| [`app/server/src/models/gemma.ts`](https://github.com/NiceK1/stoa-spike/blob/main/app/server/src/models/gemma.ts). | |
| In the app the output is constrained by a grammar built from the request's JSON schema, so a call is always valid | |
| and can only name labels, apartments and storeys that the drawing has. | |
| ## Use it | |
| In the Blueline app, put the file at `models/interpreter/interpreter-q8_0.gguf`; the "Blueline only" mode then | |
| reads every question with it (see the app's README, "A local interpreter"). | |
| ## Training | |
| - Base: FunctionGemma 270M (trained from the `unsloth/functiongemma-270m-it` copy of | |
| `google/functiongemma-270m-it`), full fine-tune, no adapter. | |
| - Data: 53,632 question-to-call pairs generated from the app itself: 5,835 dataset questions, 30,927 questions | |
| constructed from each drawing's own labels, apartments and storeys, and 16,870 rewordings of those by a language | |
| model (casual, show-me requests, terse keywords, other languages, typos). The target call is known by | |
| construction; a reworded question keeps the call of its original. | |
| - Three epochs, about 90 minutes on one Nvidia A100 on Verda. Converted to GGUF with llama.cpp; a parity check | |
| confirms that the app produces the token ids used in training. | |
| ## Results | |
| Held-out pairs come from 40 plans and 7 building models that are not in training, with question templates and | |
| rewording styles kept for the test only. | |
| | Interpreter | Calls right in every field the operation reads (first 200 held-out pairs) | | |
| |---|---| | |
| | Claude Haiku 5.5, hosted | 188 (94.0%) | | |
| | This model | 183 (91.5%) | | |
| | FunctionGemma before fine-tuning | 0 | | |
| On all 1,257 held-out pairs it gets 1,093 calls right (87.0%). End to end in the app, on 556 test questions it leads | |
| to the right answer 536 times, against 539 with Claude Haiku 5.5 as the interpreter. | |
| ## Limits | |
| - It is tuned for this app's three menus and call formats, not for function calling in general. | |
| - It is weak in languages it was not trained on (Polish, Danish, Norwegian, Portuguese, Dutch, Estonian, Romanian). | |
| - It misses some show-me requests that avoid the words show, mark and where, and it can misread a one-word question. | |
| The app guards against the cases it has met; see the repository. | |
| ## Licence and credits | |
| Gemma is provided under and subject to the Gemma Terms of Use found at https://ai.google.dev/gemma/terms. This | |
| model is a Model Derivative of FunctionGemma and is distributed under the same terms. | |
| The training questions were generated from the Junction 2026 Stoa dataset, which is provided for non-commercial use | |
| in the Junction challenge; its drawings keep their own licences (CubiCasa5k is CC BY-NC-SA 4.0, for example). Treat | |
| this model as for non-commercial use. | |