Instructions to use Gramscii-IT/SemanticRepair-0.8B 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 Gramscii-IT/SemanticRepair-0.8B 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-0.8B:Q8_0 # Run inference directly in the terminal: llama cli -hf Gramscii-IT/SemanticRepair-0.8B: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-0.8B:Q8_0 # Run inference directly in the terminal: llama cli -hf Gramscii-IT/SemanticRepair-0.8B: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-0.8B:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf Gramscii-IT/SemanticRepair-0.8B:Q8_0
Use Docker
docker model run hf.co/Gramscii-IT/SemanticRepair-0.8B:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use Gramscii-IT/SemanticRepair-0.8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Gramscii-IT/SemanticRepair-0.8B" # 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-0.8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Gramscii-IT/SemanticRepair-0.8B:Q8_0
- Ollama
How to use Gramscii-IT/SemanticRepair-0.8B with Ollama:
ollama run hf.co/Gramscii-IT/SemanticRepair-0.8B:Q8_0
- Unsloth Desktop
- Pi
How to use Gramscii-IT/SemanticRepair-0.8B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Gramscii-IT/SemanticRepair-0.8B: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": "Gramscii-IT/SemanticRepair-0.8B:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Gramscii-IT/SemanticRepair-0.8B with Docker Model Runner:
docker model run hf.co/Gramscii-IT/SemanticRepair-0.8B:Q8_0
- Lemonade
How to use Gramscii-IT/SemanticRepair-0.8B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Gramscii-IT/SemanticRepair-0.8B:Q8_0
Run and chat with the model
lemonade run user.SemanticRepair-0.8B-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use Gramscii-IT/SemanticRepair-0.8B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Gramscii-IT/SemanticRepair-0.8B: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 Gramscii-IT/SemanticRepair-0.8B:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Gramscii-IT/SemanticRepair-0.8B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Gramscii-IT/SemanticRepair-0.8B: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 "Gramscii-IT/SemanticRepair-0.8B: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"
SemanticRepair-0.8B
A LoRA adapter on Qwen3.5-0.8B that works behind an embedding router. When a
message does not land clearly on one capability of a chat, it writes every
request the message carries on its own line, and names for each line the
capability that does its work among the ones the chat offers, or none. A
message that asks for nothing comes back as NO_REQUEST. It reads the message
after what the chat's last turns ran, so a message that continues the
conversation ("e per Milano?") is read as part of it, and a message that
points back at what the chat found ("trova di piรน a riguardo") is written
with that subject.
It does not answer the question. The router checks every capability the repair names against its own scores, and the host application decides what runs: a model's output alone never authorizes an operation.
Two companion adapters load on the same base, each in a repository of its own:
- ToolChooser-0.8B: when the router and the repair still leave two or more capabilities close, it chooses one of them, or none, in which case the person is asked.
- QueryTranslator-0.8B: it writes a search request again in the language of the passages it will be looked up in.
What is in this repository
| file | what it is |
|---|---|
qwen3.5-0.8b-base-2fc06364-q8_0.gguf |
the base: Qwen3.5-0.8B at revision 2fc06364, Q8_0, 833,592,320 bytes, sha256 6a94a8273ab1fc5735743967b621eb5a3baba8e36a202f61c20dc47fbb80eb51 |
semantic-repair-0.8b-repair-20261118-lora-f16.gguf |
the repair adapter, F16 LoRA at rank 32, 43,316,320 bytes, sha256 dc16f1bff7e50346646148befe1e8aac6639fb0de8ff2cc0b6ed109975f042b8 |
LICENSE |
the base model's Apache-2.0 licence |
One base serves every job: an adapter costs 22 to 43 MB, not another 800 MB model. Pin the sha256 of both files: a routing decision has to be reproducible.
Where it runs
With llama-server, the model loaded only when it is needed and released after an idle window:
llama-server -m qwen3.5-0.8b-base-2fc06364-q8_0.gguf \
--lora semantic-repair-0.8b-repair-20261118-lora-f16.gguf \
--jinja --host 127.0.0.1 --port 9250 -ngl 99 -c 32768 --no-context-shift --cache-ram 0
When the companion adapters are loaded too, with one --lora each, every
request names its adapter at full scale and the others at none, so the jobs
never mix: for a repair, "lora": [{"id": 0, "scale": 1.0}, {"id": 1, "scale": 0.0}, ...].
--cache-ram 0 keeps llama-server from holding up to 8 GiB of earlier prompts
in memory: every call asks about a message of its own.
The surface it reads, which is not a chat prompt
Fine-tuned on a bare completion surface. It has never seen a chat template, a system message or a few-shot example. Speak to it the way it was trained:
Capabilities: {the capability ids the chat offers, sorted, comma separated}
Earlier: {capability} | {request}
{Language}: {the message, verbatim}
=>
It completes with one line per request, capability | request, or the
single token NO_REQUEST. A request no offered capability does is written
none | request.
Earlier:lines are what the chat's last turns ran, one line for each request, in thecapability | requestform the adapter itself writes. A chat's first message has none, and the surface is then the two lines around it. They are how it reads "e per Milano?" after a question about Rome as the same request for another city.- When none of those last turns brought anything in from outside the conversation (a deck, an article or a summary of what the chat holds), put first the line of the last turn that did: "trova di piรน a riguardo" after "ora voglio 3 slides" then reads the subject the slides were about.
- The newline after
=>is part of the surface: a prompt that stops at=>is a surface the model never read. {Language}is the English name of the language the message is in:Italian,English,French,German,Spanish.- The capabilities line is context the model reads, not a formality. Pass the whole list your chat offers, not a shortlist (see What it does not fix).
This is the whole call, on /v1/completions and never on a chat endpoint:
{
"prompt": "Capabilities: document-search, locate-place, opendata-statistics, web-search\nItalian: dov'รจ sassari? mostramelo nella mappa e dammi le ultime notizie in italia\n=>\n",
"stop": ["\n=>"],
"temperature": 0.0,
"repeat_penalty": 1.0,
"max_tokens": 512
}
Greedy, because the same words must always produce the same lines: a router
that reruns on a different answer each time cannot be reasoned about.
repeat_penalty 1.0 is neutral, since a restatement legitimately repeats the
words of the message. The stop string cuts a runaway that starts echoing
another message in its own trained format. 512 tokens is the answer cap every
measure below used.
What it is measured to do
Served on the base at Q8_0 with its companion adapters, through the chat's routing chain.
480 real Italian chat questions, held out from every training and selection step:
| ran only capabilities the question asks for | 161 |
| ran a capability the question does not ask for | 26 |
| the person asked to choose | 293 |
Most of the questions where the person is asked need something the chain was not given in this measure: a document search with no file selected, or a web search with the web switched off.
100 test messages, 50 Italian and 50 English, written to probe the repair:
| right | wrong | the person asked | |
|---|---|---|---|
| Italian | 48 | 1 | 1 |
| English | 45 | 3 | 2 |
The repair alone on 363 real prompts, the distinct prompts the chain sends the repair for the real questions, each answer judged against the capabilities the prompt offered:
| the capabilities asked for | 104 |
| nothing named, rightly | 242 |
| nothing named, though a capability was asked for | 7 |
| a capability the message does not ask for | 4 |
| a capability named where none was asked for | 5 |
| part of what was asked | 1 |
Requests to draw a picture. Of 334 requests to draw, from people whose messages were all held out of training, it names the image generator for 332. Of 129 requests near them (a chart, a document's figures, a real photograph, a slide, a map, an animation, an article, a sheet), it names the image generator for none and their own capability for 122. Of 8 real requests to draw put to the chat, it names the image generator with a confident line for the 6 the router left unsure.
Pictures of real things. Of 97 requests for a picture of something real asked plainly (a city at night, a landmark, a landscape, an animal, a dish), from people whose messages were all held out of training, it names the image generator for all 97. Of 34 requests that name a real place or thing with the words of pictures but ask for its figures, its place on a map or a document's pictures, it names the image generator for none and their own capability for 33. A real request the router leaves uncovered, "dammi un'immagine di new york di notte", goes to the image generator.
Messages as a microphone writes them. 687 held-out messages were read aloud by a voice model and written back by a speech recogniser, and kept where the transcript still holds the same words in the same order: capitals, commas and full stops move, and a question often comes back without its mark. It names the right capabilities for 655 of them as typed and for 654 as dictated; of the 622 that ask for something, it reads 14 dictated ones as asking nothing, and of the 65 that ask nothing it reads none as a request. Of 244 held-out questions typed with a full stop where their mark was, it names the right capabilities for 232, and of 253 typed with nothing there for 240.
A sentence that only the voice made a question ("la cittร si muove", said with a rising tone and written with a full stop) is a statement on the page: read alone, it names no capability for it. Read after a conversation about the song, it can write a search for what the earlier lines hold, and has named the wrong capability for it: the host application has to read it beside what the person had in front of them.
Messages that point back. Of 53 messages that point back at what a chat found ("trova di piรน a riguardo", "fammi un articolo su questo") or ask to change what its last turn made ("cambia lo sfondo"), from people whose messages were all held out of training, each read after the requests of the turns before it, it names the right capability for 49: 27 of the 31 that point back, 22 of the 22 that ask for a change. Two real messages, "ora vai online e trova piรน informazioni recenti a riguardo" after a deck and an article about a statistics question, and "adesso vai online e trova informazioni aggiuntive" after a statistics question, come back as a web search for the subject of that question.
Held-out rows of its own training set, which it never trained on: the right capabilities for 3,264 of 3,446.
What it does not fix
A list without the capability a request needs is answered none. Its
training rows list the capabilities a chat offers, and in some of them the
right one is taken out and the answer becomes none: it reads the list as
context. Pass the whole list the chat offers.
Long briefs lose steps and names. A brief of several hundred tokens comes back with some of its steps and names missing: ask it about one step at a time.
The restatements are terse. "statistiche abitanti Cagliari" is good input for a router and poor prose. It is not meant to be shown to anyone.
Measured in Italian and English. The base pairs cover five languages, but the capability labels and every measure above are Italian and English.
The data it was trained on
189,291 training rows and 3,446 validation rows, from:
- The published
Gramscii-IT/semantic-repair-routingpairs, every line carrying the capability that does its work as two judge models, Qwen3.8-27B and Gemma-4-31B, agreed on it; a row they disagreed on is left out. - 57,473 generated rows in Italian and English, written by Qwen3.8-27B (about two thirds) and Gemma-4-31B (about one third), kept only with the capability each was written for; rows for the capabilities that held few lines, and trap and contrast rows for pairs of capabilities that are easy to confuse, kept when both judges found nothing the line leaves out.
- 1,500 long briefs, each step of their plans a line.
- 17,107 chat messages from scripted conversations played through the application, whose capability the run that answered them confirmed and both judges confirmed reading the message alone, each with the line Qwen3.8-27B wrote for that capability and both judges confirmed.
- 4,360 follow-up messages, from scripted chats whose later turns
continue the first question about public funding calls or tenders, each
row carrying the requests the earlier turns ran as
Earlier:lines. Each message was labelled twice by Qwen3.8-27B, greedy and with its own sampling, and kept only where both readings named the same capability, with the line Qwen3.8-27B wrote for it. - 6,510 messages written the way people write, each read by both judges as the capability it was written for, with the line Qwen3.8-27B wrote for it and both judges confirmed: typing mistakes, words of another language, capitals and impatience, a correction within the message, an attempt to steer the chat; short, colloquial and misspelled requests for every capability; Open Data questions of one sentence shape that different Open Data capabilities answer; requests about Italian municipalities; and compound messages, two confirmed lines joined into one.
- 8,097 requests about pictures in Italian and English, written by Qwen3.8-27B in the words of 512 personas and read by both judges as the capability they were written for: 5,364 requests to draw a picture, a logo or an illustration, and 2,733 requests near them that ask for something else (a chart, a document's figures, a real photograph, a slide, a map, an animation, an article, a sheet). In each language the drawing requests are at most twice the near ones, and the messages of one persona in 25 go to validation only.
- 2,691 requests about pictures of real things in Italian and English, written by Qwen3.8-27B in the words of the same personas and read by both judges as the capability they were written for: 1,792 requests for a picture of something real asked plainly (a city, a landmark, a landscape, an animal, a dish, an object), never said to be made up, and 899 requests that name a real place or thing with the words of pictures but ask for its figures, its place on a map, a document's pictures, a chart or an animation. In each language the picture requests are at most twice the near ones, and the messages of one persona in 25 go to validation only.
- 6,762 messages as a microphone or a hurried hand writes them, each a
row above with its message written again and the same answer. 4,969 hold a
message read aloud by a voice model and written back by a speech
recogniser: of 9,000 messages spoken, 1,764 came back exactly as typed and
the transcripts of 3,940 held the same words in the same order with other
capitals and marks, the only ones kept, so that a dictated message never
teaches another request than the typed one's. 1,793 are questions written
without their question mark, with a full stop in its place or with
nothing. Messages that ask for nothing are dictated too, and stay
NO_REQUEST. - 989 messages that point back at what a chat found or ask to change
what its last turn made, in Italian and English, written by Qwen3.8-27B in
the words of the same personas, each read after the requests of the turns
before it as
Earlier:lines, as a chat hands them. Each was labelled twice by Qwen3.8-27B, greedy and with its own sampling, and kept where both readings named the same capability, with the line Qwen3.8-27B wrote whole from the earlier requests, holding their subject, and both readings confirmed; a line that only repeats the message is left out. The messages of one persona in 25 go to validation only.
Each row's prompt lists the capabilities its lines name plus a random draw of
the others, because real chats offer lists as varied as that. For some rows
the right capability is taken out of the list and the answer becomes none;
every one of the 6,510 messages, of the 8,097 requests about pictures, of
the 2,691 about pictures of real things and of the 936 training messages
that point back also comes that way, and a capability easy to confuse with the one taken out stays
on the list. About one row in a hundred
goes to validation, a training row whose prompt validation holds too is left
out, and no row equals a question of the measures above.
Training
| base | Qwen/Qwen3.5-0.8B at 2fc06364, its language model only |
| method | LoRA, rank 32, alpha 64, dropout 0.05, on every linear layer but the embeddings and the head (186 modules, 21.6M parameters) |
| schedule | one pass: 23,662 updates of 8 examples, learning rate 1ร10โปโด, 100 warm-up steps |
| tokens | 38.2M in the examples, 4.8M of them in the answers |
| loss | on the answer only |
| hardware | one NVIDIA A100 64 GB of the Leonardo supercomputer in Bologna, thanks to CINECA |
| release | F16 LoRA GGUF |
It starts from the original base.
Licence
Apache-2.0, as its base model Qwen3.5-0.8B. What it writes is yours, and so is the responsibility for what you let it decide.
- Downloads last month
- 662
8-bit
16-bit
Model tree for Gramscii-IT/SemanticRepair-0.8B
Evaluation results
- Ran only capabilities the question asks for (%) on 480 real Italian chat questions, held out from trainingtest set self-reported33.500
- Ran a capability the question does not ask for (%), lower is better on 480 real Italian chat questions, held out from trainingtest set self-reported5.400
- Routed right (%) on 100 test messages, 50 Italian and 50 Englishtest set self-reported93.000
- Routed wrong (%), lower is better on 100 test messages, 50 Italian and 50 Englishtest set self-reported4.000