Mindket

Clef-LoRA-for-Qwen3.8-27B-GGUF

Newversion 1 · updated

Overview

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.

At a glance

You need
  • A GPU with 24 GB of memory
  • A Qwen3.8-27B GGUF backbone, about 15.1 GB, such as the Tetris 4.4bpw file by the same author
  • This repository's files, about 1.6 GB
  • The llama.cpp source, built with the repo's patch
Runs in
  • A patched llama.cpp server on a computer with a 24 GB GPU
  • A CPU sidecar that serves the decision endpoint
  • A client that calls one path for decisions and another for chat
  • Docker, which the repo uses to build the patched server and the sidecar
Start with
pip install -U huggingface_hub
hf download trevest/Clef-LoRA-for-Qwen3.8-27B-GGUF

Platform

DockerContainer

About

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.

IndustryWho uses itHow they use itExample
SoftwareDevelopers with a local serverServe decisions and chat from one resident modelScore a message against typed questions, then draft a reply
Self-hostingHome lab and small team adminsFit two jobs on one 24 GB GPUSkip loading a second 15 GB model
AutomationPipeline buildersChain decide, write and verify steps against one serverRun the card's demo script
ResearchModel researchersStudy how a LoRA on late layers carries a decision headInspect 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

  • A patched llama.cpp server on a computer with a 24 GB GPU
  • A CPU sidecar that serves the decision endpoint
  • A client that calls one path for decisions and another for chat
  • Docker, which the repo uses to build the patched server and the sidecar
Use caseWhoWhat they get back
Typed decisionsDevelopersOne probability for each answer option of each question, computed in a single pass
ChatAnyone using the same serverNormal Qwen3.8-27B replies, with MTP speculative decoding
Decide, write, verifyPipeline buildersA Node demo that exercises both paths together

How to set it up

  • A GPU with 24 GB of memory
  • A Qwen3.8-27B GGUF backbone, about 15.1 GB, such as the Tetris 4.4bpw file by the same author
  • This repository's files, about 1.6 GB
  • The llama.cpp source, built with the repo's patch
  • Node 20 or newer, for the demo script
  1. Install the Hugging Face hub tools and download this repository's files.
  2. Get a Qwen3.8-27B GGUF backbone.
  3. Fetch the llama.cpp source, check out the commit the patch targets, and apply the patch.
  4. Build the llama-server target with CUDA, then follow the card's remaining steps to download the weights and start the server and the sidecar.
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.

ToolWhat it does
clef-lora-f16.ggufThe llama.cpp LoRA adapter, f16, with 668M parameters
joint_head.safetensorsClef's joint schema head, unchanged from Cloudflare
tokenizer.jsonClef's tokenizer, unchanged
llama.cpp-patchThe engine patch and a Dockerfile that builds the patched server
clefheadThe CPU sidecar that serves the decision endpoint
examples/one_model_demo.mjsA 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.

  1. Client sends a decision request to the sidecar
  2. Sidecar asks the server for hidden states, LoRA on
  3. Server returns the final state of each prompt token
  4. Clef head gives a probability per option

Good to know

  • Backbone: You need a separate Qwen3.8-27B GGUF. Any file converted from the matching revision with a current converter should work.
  • Patch: Stock llama.cpp needs the patch, so the build step is required.
  • Hardware: The prebuilt image mentioned in the card targets CUDA 13.0 on Blackwell cards only.
  • License: Apache 2.0.
  • Cost to run: none named. You need a 24 GB GPU, and no API key or paid service appears in the source.
  • Data it reaches: Your prompts go to your own sidecar and llama-server. Building needs the llama.cpp source and the model files from their hosts.
  • Not for: Standalone use, since the adapter does nothing without its backbone. Mac users should take the MLX version instead.

README and files

README

Clef-LoRA-for-Qwen3.8-27B-GGUF

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.

About

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:

  • A patched llama.cpp server on a computer with a 24 GB GPU
  • A CPU sidecar that serves the decision endpoint
  • A client that calls one path for decisions and another for chat
  • Docker, which the repo uses to build the patched server and the sidecar
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:

  • A GPU with 24 GB of memory
  • A Qwen3.8-27B GGUF backbone, about 15.1 GB, such as the Tetris 4.4bpw file by the same author
  • This repository's files, about 1.6 GB
  • The llama.cpp source, built with the repo's patch
  • Node 20 or newer, for the demo script
  1. Install the Hugging Face hub tools and download this repository's files.
  2. Get a Qwen3.8-27B GGUF backbone.
  3. Fetch the llama.cpp source, check out the commit the patch targets, and apply the patch.
  4. Build the llama-server target with CUDA, then follow the card's remaining steps to download the weights and start the server and the sidecar.
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:

  • Backbone: You need a separate Qwen3.8-27B GGUF. Any file converted from the matching revision with a current converter should work.
  • Patch: Stock llama.cpp needs the patch, so the build step is required.
  • Hardware: The prebuilt image mentioned in the card targets CUDA 13.0 on Blackwell cards only.
  • License: Apache 2.0.
  • Cost to run: none named. You need a 24 GB GPU, and no API key or paid service appears in the source.
  • Data it reaches: Your prompts go to your own sidecar and llama-server. Building needs the llama.cpp source and the model files from their hosts.
  • Not for: Standalone use, since the adapter does nothing without its backbone. Mac users should take the MLX version instead.

On Hugging Face, 13 November 2026

  • Task: text classification
  • Library: gguf
  • Parameters: 668M
  • Weights: about 334 MB at 4-bit (estimate)
  • Formats: GGUF
  • Downloads in the last 30 days: 311
  • Likes: 6
  • License: apache-2.0
  • Based on: Cloudflare/clef
  • Tags: gguf, clef, lora, llama.cpp, decision-model, systemone, speculative-decoding, adapter, qwen3.8, 27b, text-classification

Links

Get the model

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.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Clef-LoRA-for-Qwen3.8-27B-GGUF This page3116668Mapache-2.0
ClefShares clef · systemone · qwen3.872,2872,35627.4Bapache-2.0
Cloudflare clef GGUFShares clef · systemone · qwen3.818,3543627Bapache-2.0
Clef-FlashShares clef · systemone · decision-model36,7999199.4Bapache-2.0
clef-flash-4bitShares clef · systemone · decision-model3,524409.4Bapache-2.0
Qwen3.8-27B-DSpine-b16-GGUFShares speculative-decoding · qwen3.8 · llama.cpp15,022412Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

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…

New

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…

New

ACE-Step 1.5 XL SFT

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…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

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…

New29.8k

buzz

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…

New37.3k

plannotator

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.

New10.5k