Instructions to use EchoLabs33/qwen2.5-14b-instruct-hxq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EchoLabs33/qwen2.5-14b-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-14b-instruct-hxq") model = AutoModelForCausalLM.from_pretrained("EchoLabs33/qwen2.5-14b-instruct-hxq") 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]:])) - llama-cpp-python
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="EchoLabs33/qwen2.5-14b-instruct-hxq", filename="qwen2.5-14b-instruct-hxq-affine6.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf EchoLabs33/qwen2.5-14b-instruct-hxq # Run inference directly in the terminal: llama-cli -hf EchoLabs33/qwen2.5-14b-instruct-hxq
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf EchoLabs33/qwen2.5-14b-instruct-hxq # Run inference directly in the terminal: llama-cli -hf EchoLabs33/qwen2.5-14b-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-14b-instruct-hxq # Run inference directly in the terminal: ./llama-cli -hf EchoLabs33/qwen2.5-14b-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-14b-instruct-hxq # Run inference directly in the terminal: ./build/bin/llama-cli -hf EchoLabs33/qwen2.5-14b-instruct-hxq
Use Docker
docker model run hf.co/EchoLabs33/qwen2.5-14b-instruct-hxq
- LM Studio
- Jan
- vLLM
How to use EchoLabs33/qwen2.5-14b-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-14b-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-14b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EchoLabs33/qwen2.5-14b-instruct-hxq
- SGLang
How to use EchoLabs33/qwen2.5-14b-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-14b-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-14b-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-14b-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-14b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with Ollama:
ollama run hf.co/EchoLabs33/qwen2.5-14b-instruct-hxq
- Unsloth Studio
How to use EchoLabs33/qwen2.5-14b-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-14b-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-14b-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-14b-instruct-hxq to start chatting
- Pi
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf EchoLabs33/qwen2.5-14b-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-14b-instruct-hxq" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf EchoLabs33/qwen2.5-14b-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-14b-instruct-hxq
Run Hermes
hermes
- Docker Model Runner
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with Docker Model Runner:
docker model run hf.co/EchoLabs33/qwen2.5-14b-instruct-hxq
- Lemonade
How to use EchoLabs33/qwen2.5-14b-instruct-hxq with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull EchoLabs33/qwen2.5-14b-instruct-hxq
Run and chat with the model
lemonade run user.qwen2.5-14b-instruct-hxq-{{QUANT_TAG}}List all available models
lemonade list
Qwen2.5-14B-Instruct-HXQ
3.4x smaller. Beats AWQ by 15.4%. Largest HXQ model.
Qwen2.5-14B-Instruct compressed from 28.8 GB to ~8.4 GB. Beats AWQ Int4 PPL (3.78 vs 4.47) with zero calibration data. 336 HelixLinear layers, no architecture changes. 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-14b-instruct-helix", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/qwen2.5-14b-instruct-helix")
inputs = tokenizer("Explain quantum computing in simple terms:", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
That's it. import helix_substrate registers the quantizer. from_pretrained() handles the rest automatically.
Compression Benchmark
| Dense (BF16) | HXQ | |
|---|---|---|
| Size | 28.8 GB | ~8.4 GB |
| Perplexity (WikiText-2) | OOMs on 24 GB | 5.58 |
| Compression ratio | — | 3.4x |
| Compressed modules | — | 336 HelixLinear layers |
| Architecture | Qwen2 (48 layers, GQA) | unchanged |
Eval: WikiText-2, 1024 tokens, stride 512, BF16 on NVIDIA 4090.
Quality vs AWQ
| Method | PPL | Calibration Data |
|---|---|---|
| HXQ (HelixLinear k=256) | 3.78 | None |
| AWQ Int4 | 4.47 | Activation stats |
HXQ beats AWQ by 15.4% on PPL — with zero calibration data. Dense FP16 baseline OOMs on 24 GB; the quality gap widens as model size increases.
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. - Requires 12+ GB VRAM — fits on RTX 3060 12GB, RTX 4070, or higher. Use
device_map="auto"for multi-GPU. - Dense baseline pending — FP16 dense OOMs on 24 GB. PPL delta will be added once measured on 48 GB+ GPU.
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 336
nn.Linearmodules withHelixLinearshells before weight loading - Safetensors populates the codebook, indices, and sidecar buffers directly
- The model runs in compressed form — no decompression needed
Compression Receipt
Compressed tensors: 336
Exact tensors: 243 (norms, embeddings)
Dense size: 28.8 GB (BF16)
Compressed size: ~8.4 GB
Compression ratio: 3.4x
Helix PPL: 5.58 (dense baseline pending — OOMs on 24 GB)
AWQ PPL: 4.47 (published)
Eval: WikiText-2, 1024 tokens, stride=512, BF16, NVIDIA 4090
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-3b-instruct-helix | Transformer | 1.6x | +0.69% |
| 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-14B-Instruct).
Native GGUF (llama.cpp)
A native GGUF HXQ_AFFINE_6 quantization is also available in this repo:
- File:
qwen2.5-14b-instruct-hxq-affine6.gguf(10.8 GB, 6.27 bpw) - Compatibility: Requires llama.cpp HXQ fork (
hxq-affine-typebranch) - Note: This GGUF was produced via Q8_0 intermediate +
--allow-requantizedue to pod storage constraints. The safetensors HXQ artifact above remains the primary, clean-source product. For the highest quality, use the safetensors version withhelix-substrate.
# With llama.cpp (HXQ fork)
./llama-cli -m qwen2.5-14b-instruct-hxq-affine6.gguf -p "Explain:" -n 128
- Downloads last month
- 393
Model tree for EchoLabs33/qwen2.5-14b-instruct-hxq
Collection including EchoLabs33/qwen2.5-14b-instruct-hxq
Evaluation results
- Perplexity on WikiText-2test set self-reported5.580