Instructions to use FardoX/Qwen3.8-27B-CAN 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 FardoX/Qwen3.8-27B-CAN 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 FardoX/Qwen3.8-27B-CAN # Run inference directly in the terminal: llama cli -hf FardoX/Qwen3.8-27B-CAN
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf FardoX/Qwen3.8-27B-CAN # Run inference directly in the terminal: llama cli -hf FardoX/Qwen3.8-27B-CAN
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 FardoX/Qwen3.8-27B-CAN # Run inference directly in the terminal: ./build/bin/llama cli -hf FardoX/Qwen3.8-27B-CAN
Use Docker
docker model run hf.co/FardoX/Qwen3.8-27B-CAN
- Llama new
- LM Studio
- Jan
- vLLM
How to use FardoX/Qwen3.8-27B-CAN with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FardoX/Qwen3.8-27B-CAN" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FardoX/Qwen3.8-27B-CAN", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FardoX/Qwen3.8-27B-CAN
- Ollama
How to use FardoX/Qwen3.8-27B-CAN with Ollama:
ollama run hf.co/FardoX/Qwen3.8-27B-CAN
- Unsloth Desktop
- Pi
How to use FardoX/Qwen3.8-27B-CAN with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FardoX/Qwen3.8-27B-CAN
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": "FardoX/Qwen3.8-27B-CAN" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use FardoX/Qwen3.8-27B-CAN with Docker Model Runner:
docker model run hf.co/FardoX/Qwen3.8-27B-CAN
- Lemonade
How to use FardoX/Qwen3.8-27B-CAN with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FardoX/Qwen3.8-27B-CAN
Run and chat with the model
lemonade run user.Qwen3.8-27B-CAN-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use FardoX/Qwen3.8-27B-CAN with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FardoX/Qwen3.8-27B-CAN
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 FardoX/Qwen3.8-27B-CAN
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use FardoX/Qwen3.8-27B-CAN with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FardoX/Qwen3.8-27B-CAN
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 "FardoX/Qwen3.8-27B-CAN" \ --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"
Qwen3.8-27B-CAN: a 27B model in 7 GB that runs usefully on a 4-core CPU
Unofficial derivative of Qwen/Qwen3.8-27B (Apache-2.0). It is not affiliated with or endorsed by Qwen or Alibaba.
CAN is an additive nibble code:
- Each group of 8 weights is the sum of 4 codewords, one from each of 4 codebooks of 16 entries.
- The weights are rotated by a block Hadamard transform (blocks of 512), with one fp16 scale per (row, 512 columns).
- Decoding is table lookups (
pshufb), so the CPU kernel is fast.
The file was made in two stages: post-training quantization (PTQ), then a short knowledge distillation against the bf16 model that tunes only the scales and norms. The codes, codebooks and file size do not change.
Files
| file | what | size | bits/weight (whole file) |
|---|---|---|---|
Qwen3.8-27B-CAN-kd.gguf |
recommended: PTQ + KD | 7.0 GB | 2.046 |
Qwen3.8-27B-CAN.gguf |
PTQ only | 7.0 GB | 2.046 |
can3.patch |
llama.cpp patch with the CAN types (CPU only) | ||
ptq/, ptq_mtp/, kd/delta.npz |
the codes and the KD scales, to rebuild the GGUF | ||
resultados/ |
logs, pre-registration and full report (in Portuguese) |
Results
| model | bits/weight | GSM8K (N=1319) | share of bf16 | CPU generation tg128 (t/s) | CPU prompt pp512 (t/s) |
|---|---|---|---|---|---|
| bf16 original | 16 | 0.889 | 100 % | โ | โ |
| CAN + KD (this repo) | 2.05 | 0.876 | 98.6 % | 5.75* | 9.84* |
| CAN, PTQ only | 2.05 | 0.825 | 92.8 % | 5.75 | 9.84 |
| our earlier ECTV/IQ2 file, with KD (FardoX/Qwen3.8-27B-rapido-GGUF) | 1.99 | 0.870 | 97.9 % | 2.57 | 8.28 |
Q4_0 (--pure) |
4.51 | โ | โ | 3.25 | 5.87 |
- CPU: 4 vCPU (AMD EPYC 9655), binaries built for AVX2 only,
llama-bench -t 4. Each figure is the median of 3 VMs. Generation is 1.77ร Q4_0 (range 1.63โ1.80) and 2.26ร the ECTV file. - *KD file speed: speed was measured on the PTQ file. The KD file uses the same tensor types and kernels (only scale values differ), so the speed should be the same. We did not re-measure it.
- GSM8K: same harness for all rows, greedy decoding, max 768 tokens. The CAN rows ran on an exact F16 emulation of the CAN weights on GPU (A100). The bf16 and ECTV rows ran on an H100 on 22/11.
- Integrity check on CPU: the real CAN kernels give WikiText-2 PPL 7.847, against 7.881 for the emulation (0.4 % apart).
- Calibration and KD data: C4 train plus text generated by the bf16 model. No GSM8K test and no WikiText data were used in calibration or KD.
Honest caveats
- One run per configuration, with no repeated seeds. The GSM8K 95 % CI is about ยฑ1.8 points.
- The bf16 and CAN GSM8K numbers come from different GPUs (H100 vs A100). Greedy decoding is close to deterministic, but not exactly across hardware.
- Speed on other CPUs will differ. On a larger AVX-512 server in a related test (Llama-2-7B), CAN's generation lead shrank to about 1.9ร, and its prompt speed was below IQ2.
- Text only. We did not test vision. The MTP layer is in
ptq_mtp/but is not used by the GGUF.
Run (CPU)
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout ad9d9e8f50e6ff9a6bfbbdd3aef6d74a8428cf4e && git apply ../can3.patch
cmake -B build -DGGML_CUDA=OFF -DGGML_NATIVE=ON -DLLAMA_CURL=OFF && cmake --build build -j --target llama-cli llama-server
./build/bin/llama-server -m ../Qwen3.8-27B-CAN-kd.gguf -c 8192 -ngl 0
Stock llama.cpp cannot load these files. There are only CPU kernels (x86 AVX2): no CUDA, no Metal, no ARM.
- Downloads last month
- 437
We're not able to determine the quantization variants.
Model tree for FardoX/Qwen3.8-27B-CAN
Base model
Qwen/Qwen3.8-27B