Instructions to use EchoLabs33/qwen2.5-3b-instruct-hxq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EchoLabs33/qwen2.5-3b-instruct-hxq") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/qwen2.5-3b-instruct-hxq") model = AutoModelForCausalLM.from_pretrained("EchoLabs33/qwen2.5-3b-instruct-hxq", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use EchoLabs33/qwen2.5-3b-instruct-hxq 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 EchoLabs33/qwen2.5-3b-instruct-hxq # Run inference directly in the terminal: llama cli -hf EchoLabs33/qwen2.5-3b-instruct-hxq
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf EchoLabs33/qwen2.5-3b-instruct-hxq # Run inference directly in the terminal: llama cli -hf EchoLabs33/qwen2.5-3b-instruct-hxq
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf EchoLabs33/qwen2.5-3b-instruct-hxq # Run inference directly in the terminal: ./llama-cli -hf EchoLabs33/qwen2.5-3b-instruct-hxq
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf EchoLabs33/qwen2.5-3b-instruct-hxq # Run inference directly in the terminal: ./build/bin/llama-cli -hf EchoLabs33/qwen2.5-3b-instruct-hxq
Use Docker
docker model run hf.co/EchoLabs33/qwen2.5-3b-instruct-hxq
- LM Studio
- Jan
- vLLM
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EchoLabs33/qwen2.5-3b-instruct-hxq" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EchoLabs33/qwen2.5-3b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EchoLabs33/qwen2.5-3b-instruct-hxq
- SGLang
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "EchoLabs33/qwen2.5-3b-instruct-hxq" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EchoLabs33/qwen2.5-3b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "EchoLabs33/qwen2.5-3b-instruct-hxq" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EchoLabs33/qwen2.5-3b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with Ollama:
ollama run hf.co/EchoLabs33/qwen2.5-3b-instruct-hxq
- Unsloth Studio
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EchoLabs33/qwen2.5-3b-instruct-hxq to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EchoLabs33/qwen2.5-3b-instruct-hxq to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for EchoLabs33/qwen2.5-3b-instruct-hxq to start chatting
- Pi
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EchoLabs33/qwen2.5-3b-instruct-hxq
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "EchoLabs33/qwen2.5-3b-instruct-hxq" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EchoLabs33/qwen2.5-3b-instruct-hxq
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:8080/v1 \ --custom-model-id "EchoLabs33/qwen2.5-3b-instruct-hxq" \ --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"
- Docker Model Runner
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with Docker Model Runner:
docker model run hf.co/EchoLabs33/qwen2.5-3b-instruct-hxq
- Lemonade
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull EchoLabs33/qwen2.5-3b-instruct-hxq
Run and chat with the model
lemonade run user.qwen2.5-3b-instruct-hxq-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use EchoLabs33/qwen2.5-3b-instruct-hxq with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EchoLabs33/qwen2.5-3b-instruct-hxq
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:8080/v1 hermes config set model.default EchoLabs33/qwen2.5-3b-instruct-hxq
Run Hermes
hermes
- Atomic Chat
Use Docker images
docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "EchoLabs33/qwen2.5-3b-instruct-hxq" \
--host 0.0.0.0 \
--port 30000# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "EchoLabs33/qwen2.5-3b-instruct-hxq",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'Qwen2.5-3B-Instruct-HXQ
1.6x smaller. HellaSwag 74.9%. Best fidelity in the lineup.
Qwen2.5-3B-Instruct compressed from 6.0 GB to 3.8 GB with only +0.69% PPL delta. Downstream task scores preserved after 1.6x compression. No calibration data. No architecture-specific tuning. Just
pip installandfrom_pretrained().
Install and Run
pip install "helix-substrate[hf]"
import helix_substrate # registers the HXQ quantizer with HuggingFace
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("EchoLabs33/qwen2.5-3b-instruct-helix")
tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/qwen2.5-3b-instruct-helix")
inputs = tokenizer("The capital of France is", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
That's it. import helix_substrate registers the quantizer. from_pretrained() handles the rest automatically.
Downstream Benchmarks
Evaluated with lm-evaluation-harness on an NVIDIA 4090:
| Benchmark | HXQ (1.6x) |
|---|---|
| HellaSwag (acc_norm) | 74.86% |
| ARC-Easy (acc_norm) | 72.85% |
| ARC-Challenge (acc_norm) | 48.72% |
Task performance is preserved after 1.6x compression.
Compression Benchmark
| Dense (BF16) | HXQ | |
|---|---|---|
| Size | 6.0 GB | 3.8 GB |
| Perplexity (WikiText-2) | 5.495 | 5.533 (+0.69%) |
| Compression ratio | — | 1.6x |
| Compressed modules | — | 252 HelixLinear layers |
| Architecture | Qwen2 (36 layers, GQA, 2 KV heads) | unchanged |
Eval: WikiText-2 test split, 2048 tokens, stride 512.
Good to Know
- GPU and CPU supported — runs on any CUDA GPU or CPU via standard PyTorch. Fused kernels for additional speedup are in progress.
- Fine-tunable via LoRA — compressed weights remain frozen, but LoRA adapters attach to each
HelixLinearlayer viaHelixLinearSTE. Seehelix-substratefor training infrastructure. - Requires
helix-substrate— the quantizer is not built into transformers. You needpip install "helix-substrate[hf]". - Tied embeddings —
lm_headsharesembed_tokens, stored at full precision.
What is HelixCode?
HelixCode is a universal weight compression codec based on vector quantization:
- Each weight matrix is replaced by a 256-entry codebook (float32) + uint8 index matrix + optional sidecar corrections for outlier values
- The compressed form is the executable —
HelixLinearperformscodebook[indices] @ xdirectly, no decompression step - Works on any
nn.Linearregardless of architecture (Transformer, Mamba, MLP, CNN) - No calibration data required — unlike GPTQ/AWQ, codebooks are fit from the weights alone
How It Works
import helix_substrateregisters thehxqquantizer with HuggingFacefrom_pretrained()readsquantization_config.quant_method = "hxq"fromconfig.json- The quantizer replaces 252
nn.Linearmodules withHelixLinearshells before weight loading - Safetensors populates the codebook, indices, and sidecar buffers directly
- The model runs in compressed form — no decompression needed
Why This Model
This is the fidelity champion — at +0.69% PPL, it has the lowest degradation of any model in the lineup. The 3B Instruct variant's weights compress exceptionally cleanly with scalar VQ, proving that HelixCode scales with model size (larger models compress better).
Compression Receipt
Compressed tensors: 252
Exact tensors: 182 (norms, embeddings, biases, tied lm_head)
Total keys: 1,190
Output size: 3,836 MB
Weight ratio: 1.6x
PPL delta: +0.69% (5.533 vs 5.495 dense)
Eval: WikiText-2 test, 2048 tokens, stride=512
Companion Models
Same codec, same pip install, multiple architectures:
| Model | Architecture | Ratio | PPL Delta |
|---|---|---|---|
| qwen2.5-14b-instruct-helix | Transformer | 3.4x | pending |
| qwen2.5-7b-instruct-helix | Transformer | 2.2x | +6.34% |
| qwen2.5-coder-3b-helix | Transformer (code) | 1.6x | +1.92% |
| qwen2.5-coder-1.5b-instruct-helix | Transformer (code) | 2.4x | +1.63% |
| tinyllama-1.1b-helix | Transformer | 4.0x | +0.78% |
| zamba2-2.7b-instruct-helix | Hybrid (Mamba2+Transformer) | 1.8x | +6.59% |
| zamba2-1.2b-helix | Hybrid (Mamba2+Transformer) | 1.7x | +2.90% |
| mamba2-1.3b-helix | Pure SSM (Mamba2) | 2.1x | +8.0% |
| mamba-130m-helix | Pure SSM | 3.8x | +18.4% |
Citation
@software{helix_substrate_2026,
title={Helix Substrate: Universal Weight Compression via HelixCode},
author={EchoLabs},
year={2026},
url={https://github.com/echo313unfolding/helix-substrate}
}
License
Apache 2.0 (inherited from Qwen/Qwen2.5-3B-Instruct).
Native GGUF (llama.cpp)
A native GGUF HXQ_AFFINE_6 quantization is also available in this repo:
- File:
qwen2.5-3b-instruct-hxq-affine6.gguf(2.3 GB, 6.28 bpw) - Source: Clean F16 → HXQ single-pass quantization (no double-quant)
- Compatibility: Requires llama.cpp HXQ fork (
hxq-affine-typebranch)
# With llama.cpp (HXQ fork)
./llama-cli -m qwen2.5-3b-instruct-hxq-affine6.gguf -p "Hello:" -n 128
- Downloads last month
- 39
Model tree for EchoLabs33/qwen2.5-3b-instruct-hxq
Collection including EchoLabs33/qwen2.5-3b-instruct-hxq
Evaluation results
- Accuracy (norm) on HellaSwagself-reported0.749
- Accuracy (norm) on ARC-Easyself-reported0.729
- Accuracy (norm) on ARC-Challengeself-reported0.487
- Perplexity on WikiText-2test set self-reported5.533
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "EchoLabs33/qwen2.5-3b-instruct-hxq" \ --host 0.0.0.0 \ --port 30000# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EchoLabs33/qwen2.5-3b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'