Text Generation
MLX
Safetensors
GGUF
gemma3_text
query-rewriting
query-understanding
intent-detection
routing
retrieval
rag
slm
multilingual
conversational
Eval Results (legacy)
Instructions to use Gramscii-IT/SemanticRepair-270M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Gramscii-IT/SemanticRepair-270M with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Gramscii-IT/SemanticRepair-270M") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Gramscii-IT/SemanticRepair-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 Gramscii-IT/SemanticRepair-270M:Q8_0 # Run inference directly in the terminal: llama cli -hf Gramscii-IT/SemanticRepair-270M:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Gramscii-IT/SemanticRepair-270M:Q8_0 # Run inference directly in the terminal: llama cli -hf Gramscii-IT/SemanticRepair-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 Gramscii-IT/SemanticRepair-270M:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf Gramscii-IT/SemanticRepair-270M:Q8_0
Use Docker
docker model run hf.co/Gramscii-IT/SemanticRepair-270M:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use Gramscii-IT/SemanticRepair-270M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Gramscii-IT/SemanticRepair-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": "Gramscii-IT/SemanticRepair-270M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Gramscii-IT/SemanticRepair-270M:Q8_0
- Ollama
How to use Gramscii-IT/SemanticRepair-270M with Ollama:
ollama run hf.co/Gramscii-IT/SemanticRepair-270M:Q8_0
- Unsloth Desktop
- MLX LM
How to use Gramscii-IT/SemanticRepair-270M with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Gramscii-IT/SemanticRepair-270M"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Gramscii-IT/SemanticRepair-270M" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Gramscii-IT/SemanticRepair-270M", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use Gramscii-IT/SemanticRepair-270M with Docker Model Runner:
docker model run hf.co/Gramscii-IT/SemanticRepair-270M:Q8_0
- Lemonade
How to use Gramscii-IT/SemanticRepair-270M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Gramscii-IT/SemanticRepair-270M:Q8_0
Run and chat with the model
lemonade run user.SemanticRepair-270M-Q8_0
List all available models
lemonade list
- Atomic Chat
Add measured native routing fidelity development and validation results
Browse filesKeep historical scores, training data, model artifacts and their licenses unchanged.
Co-authored-by: Codex <noreply@openai.com>
README.md
CHANGED
|
@@ -73,16 +73,43 @@ model-index:
|
|
| 73 |
|
| 74 |
# SemanticRepair-270M
|
| 75 |
|
| 76 |
-
A 270M
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
|
|
|
| 84 |
|
| 85 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
The completed evaluation measures the unchanged v22 Q8_0 model with an experimental SDG admission correction. **Model-only request-presence accuracy remains 87.50% (140/160). Native system exact sets or correct refusals reach 42.50% (68/160) on the development regression bank.** These are different measures: detecting a request does not establish correct routing.
|
| 88 |
|
|
|
|
| 73 |
|
| 74 |
# SemanticRepair-270M
|
| 75 |
|
| 76 |
+
A 270M model that proposes request lines for an embedding router, or
|
| 77 |
+
NO_REQUEST when it finds no request. It does not answer the user's question.
|
| 78 |
+
The host application owns capability admission and tool execution; model
|
| 79 |
+
output alone does not authorize an operation.
|
| 80 |
|
| 81 |
+
SDG's evaluated native path admits individual operations with their own
|
| 82 |
+
queries, which can contain the model's repaired request text. This report
|
| 83 |
+
checks those admitted per-operation queries. It does not execute graph tools
|
| 84 |
+
or establish the correctness of their results.
|
| 85 |
|
| 86 |
+
## Frozen routing-fidelity validation — 5 October 2026
|
| 87 |
+
|
| 88 |
+
**The frozen candidate reduces unwanted automatic admissions but does not improve overall completion on this validation bank.** Complete supported requests fall from 20/80 to 9/80, while correct refusals increase from 9/16 to 15/16. The result does not establish a generally improved replacement or 100% routing accuracy. Model weights are unchanged. These are native routing/admission measurements; no graph tools or answer generation execute.
|
| 89 |
+
|
| 90 |
+
| Measure and denominator | Live-release baseline | Frozen candidate |
|
| 91 |
+
|---|---|---|
|
| 92 |
+
| Complete operation multiset + required literals, or correct refusal | 29/96 (30.21%) | 24/96 (25.00%) |
|
| 93 |
+
| Complete supported requests | 20/80 (25.00%) | 9/80 (11.25%) |
|
| 94 |
+
| Correct refusal on unsupported/no-request cases | 9/16 (56.25%) | 15/16 (93.75%) |
|
| 95 |
+
| Unwanted capability or excess-operation admission | 34/96 (35.42%) | 5/96 (5.21%) |
|
| 96 |
+
| No operations returned for supported requests | 15/80 (18.75%) | 65/80 (81.25%) |
|
| 97 |
+
| Complete requests requiring multiple operations | 0/32 | 1/32 |
|
| 98 |
+
| Noisy family: complete operation/argument result | 5/8 | 2/8 |
|
| 99 |
+
| Native/raw model measurement errors | 0/96; 0/96 | 0/96; 0/96 |
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
The less strict capability-set measure is 33/96 for baseline and 26/96 for candidate. The candidate's 16 automatic admissions comprise 9 complete supported requests, 5 cases with an unwanted capability, 1 incomplete operation set and 1 correct operation set with a failed required literal. “Correct refusal” includes unresolved route choices. This table uses actual native Chat; direct-router baselines from different harness versions are not compared.
|
| 103 |
+
|
| 104 |
+
**Model-only request-presence classification is 88/96 (91.67%) in both conditions on this bank:** 82/88 messages containing a request are recognized and 6/8 nonrequests are rejected. Protected literal retention is 56/70. These unchanged model-only scores are separate from native routing and from the historical 140/160 score on a different bank; model weights are unchanged.
|
| 105 |
+
|
| 106 |
+
The 504-row development bank and the separately frozen 96-row validation bank are distinct. Labels are agent-authored, without independent human review; translated pairs are dependent. A post-hoc audit finds two history-dependent messages in the fresh-conversation fixture. Original labels and 96-case scores remain intact; excluding only those two cases yields 27/94 versus 23/94 complete results/correct refusals, so the coverage tradeoff remains. No candidate tuning follows this validation round.
|
| 107 |
+
|
| 108 |
+
On the separate, already exposed 184-case development regression, complete capability sets or correct refusals improve from 57/184 to 74/184; supported sets from 50/156 to 52/156, negative refusals from 7/28 to 22/28, and multi-capability sets from 1/52 to 8/52. That bank has no operation multiplicity or argument annotations. Its development improvement does not override the stricter independent validation result above.
|
| 109 |
+
|
| 110 |
+
Measured candidate source: `3f6ee71f95902607e490a1f8824b43575273f409`. Baseline production source: `8f773b82`, run in isolation with benchmark-only instrumentation. The candidate is experimental and this evaluation does not establish successful tool execution, answer quality, deployment readiness or a generally improved replacement. [Full tables, all four development experiments, frozen validation traces, operation labels and limitations](https://huggingface.co/datasets/Gramscii-IT/semantic-repair-routing/blob/main/eval/20261005-routing-fidelity/README.md) are maintained in the existing `Gramscii-IT/semantic-repair-routing` dataset. The additional evaluation retains PolyForm Noncommercial; training data retain CC BY 4.0 and model artifacts retain Gemma terms.
|
| 111 |
+
|
| 112 |
+
## Earlier measured routing candidate — 5 October 2026
|
| 113 |
|
| 114 |
The completed evaluation measures the unchanged v22 Q8_0 model with an experimental SDG admission correction. **Model-only request-presence accuracy remains 87.50% (140/160). Native system exact sets or correct refusals reach 42.50% (68/160) on the development regression bank.** These are different measures: detecting a request does not establish correct routing.
|
| 115 |
|