anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Adds Cloudflare Clef's decision head to a Qwen3.8-27B chat model, so one llama.cpp server on a 24 GB GPU both answers typed questions and chats. It is a LoRA adapter, not a standalone model.
Clef-LoRA-for-Qwen3.8-27B-GGUF is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download trevest/Clef-LoRA-for-Qwen3.8-27B-GGUF
The repo packs a LoRA adapter for the Qwen3.8-27B model together with the decision head of Cloudflare's Clef. It cannot run alone. On top of one copy of Qwen3.8-27B in llama.cpp it gives you two things, typed decisions from Clef and ordinary chat.
Developers who run local model servers and want decisions and chat from the same weights. The design aims at a 24 GB GPU. Running Clef as its own model would add roughly 15 GB more, and that would not fit next to a chat model.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers with a local server | Serve decisions and chat from one resident model | Score a message against typed questions, then draft a reply |
| Self-hosting | Home lab and small team admins | Fit two jobs on one 24 GB GPU | Skip loading a second 15 GB model |
| Automation | Pipeline builders | Chain decide, write and verify steps against one server | Run the card's demo script |
| Research | Model researchers | Study how a LoRA on late layers carries a decision head | Inspect the adapter and the patch |
People without a suitable GPU, or who want a ready standalone model, can skip it. Mac users are pointed to a separate MLX version.
| Use case | Who | What they get back |
|---|---|---|
| Typed decisions | Developers | One probability for each answer option of each question, computed in a single pass |
| Chat | Anyone using the same server | Normal Qwen3.8-27B replies, with MTP speculative decoding |
| Decide, write, verify | Pipeline builders | A Node demo that exercises both paths together |
pip install -U huggingface_hub hf download trevest/Clef-LoRA-for-Qwen3.8-27B-GGUF
git checkout ad1de39e0708e3ced9c71bb3c82d93a2c046a73f git apply /path/to/llama.cpp-patch/0001-embeddings-lora-f16.patch cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120 && cmake --build build --target llama-server -j
Send decision requests to the sidecar's systemone endpoint, with a state and typed questions. Send chat requests to the server's chat completions endpoint. The LoRA stays at scale 0 for chat and switches to scale 1 only for the decision request.
| Tool | What it does |
|---|---|
| clef-lora-f16.gguf | The llama.cpp LoRA adapter, f16, with 668M parameters |
| joint_head.safetensors | Clef's joint schema head, unchanged from Cloudflare |
| tokenizer.json | Clef's tokenizer, unchanged |
| llama.cpp-patch | The engine patch and a Dockerfile that builds the patched server |
| clefhead | The CPU sidecar that serves the decision endpoint |
| examples/one_model_demo.mjs | A Node pipeline that decides, writes and verifies |
A client sends a message and a typed question about whether it is urgent to the decision endpoint. The sidecar gets hidden states from the server with the LoRA on, and returns a probability for each option. A chat request to the other path returns an ordinary reply.
This is advanced setup work for people who already run llama.cpp. A gentle first step is reading the card's file table, then running the demo script once both servers are up.
Clef builds on Qwen3.8-27B with a LoRA merged into layers 40 through 63, and nowhere else. The layers before that, the embeddings, the output head and the vision tower match the base byte for byte. The sidecar asks llama-server for the final hidden state of each prompt token and applies Clef's head. A small llama.cpp patch adds a per-request LoRA, compact hidden state output and MTP support next to embeddings.
Adds Cloudflare Clef's decision head to a Qwen3.8-27B chat model, so one llama.cpp server on a 24 GB GPU both answers typed questions and chats. It is a LoRA adapter, not a standalone model.
Made by trevest on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: The repo packs a LoRA adapter for the Qwen3.8-27B model together with the decision head of Cloudflare's Clef. It cannot run alone. On top of one copy of Qwen3.8-27B in llama.cpp it gives you two things, typed decisions from Clef and ordinary chat.
Who it suits: Developers who run local model servers and want decisions and chat from the same weights. The design aims at a 24 GB GPU. Running Clef as its own model would add roughly 15 GB more, and that would not fit next to a chat model.
Industry | Who uses it | How they use it | Example
Software | Developers with a local server | Serve decisions and chat from one resident model | Score a message against typed questions, then draft a reply
Self-hosting | Home lab and small team admins | Fit two jobs on one 24 GB GPU | Skip loading a second 15 GB model
Automation | Pipeline builders | Chain decide, write and verify steps against one server | Run the card's demo script
Research | Model researchers | Study how a LoRA on late layers carries a decision head | Inspect the adapter and the patch
People without a suitable GPU, or who want a ready standalone model, can skip it. Mac users are pointed to a separate MLX version.
Where to use it:
Use case | Who | What they get back
Typed decisions | Developers | One probability for each answer option of each question, computed in a single pass
Chat | Anyone using the same server | Normal Qwen3.8-27B replies, with MTP speculative decoding
Decide, write, verify | Pipeline builders | A Node demo that exercises both paths together
How to set it up:
pip install -U huggingface_hub
hf download trevest/Clef-LoRA-for-Qwen3.8-27B-GGUF
git checkout ad1de39e0708e3ced9c71bb3c82d93a2c046a73f
git apply /path/to/llama.cpp-patch/0001-embeddings-lora-f16.patch
cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120 && cmake --build build --target llama-server -j
How to use it: Send decision requests to the sidecar's systemone endpoint, with a state and typed questions. Send chat requests to the server's chat completions endpoint. The LoRA stays at scale 0 for chat and switches to scale 1 only for the decision request.
Tool | What it does
clef-lora-f16.gguf | The llama.cpp LoRA adapter, f16, with 668M parameters
joint_head.safetensors | Clef's joint schema head, unchanged from Cloudflare
tokenizer.json | Clef's tokenizer, unchanged
llama.cpp-patch | The engine patch and a Dockerfile that builds the patched server
clefhead | The CPU sidecar that serves the decision endpoint
examples/one_model_demo.mjs | A Node pipeline that decides, writes and verifies
Example: A client sends a message and a typed question about whether it is urgent to the decision endpoint. The sidecar gets hidden states from the server with the LoRA on, and returns a probability for each option. A chat request to the other path returns an ordinary reply.
For newcomers and experts: This is advanced setup work for people who already run llama.cpp. A gentle first step is reading the card's file table, then running the demo script once both servers are up.
Clef builds on Qwen3.8-27B with a LoRA merged into layers 40 through 63, and nowhere else. The layers before that, the embeddings, the output head and the vision tower match the base byte for byte. The sidecar asks llama-server for the final hidden state of each prompt token and applies Clef's head. A small llama.cpp patch adds a per-request LoRA, compact hidden state output and MTP support next to embeddings.
Client sends a decision request to the sidecar
Sidecar asks the server for hidden states, LoRA on
Server returns the final state of each prompt token
Clef head gives a probability per option
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download trevest/Clef-LoRA-for-Qwen3.8-27B-GGUF
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Clef-LoRA-for-Qwen3.8-27B-GGUF This page | 311 | 6 | 668M | apache-2.0 | |
| ClefShares clef · systemone · qwen3.8 | 72,287 | 2,356 | 27.4B | apache-2.0 | |
| Cloudflare clef GGUFShares clef · systemone · qwen3.8 | 18,354 | 36 | 27B | apache-2.0 | |
| Clef-FlashShares clef · systemone · decision-model | 36,799 | 919 | 9.4B | apache-2.0 | |
| clef-flash-4bitShares clef · systemone · decision-model | 3,524 | 40 | 9.4B | apache-2.0 | |
| Qwen3.8-27B-DSpine-b16-GGUFShares speculative-decoding · qwen3.8 · llama.cpp | 15,022 | 41 | 2B | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.