Text Generation
Transformers
Safetensors
English
zamba2
mamba
hybrid
compressed
hxq
helix-substrate
vector-quantization
helixcode
conversational
Instructions to use EchoLabs33/zamba2-7b-instruct-hxq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EchoLabs33/zamba2-7b-instruct-hxq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EchoLabs33/zamba2-7b-instruct-hxq") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/zamba2-7b-instruct-hxq") model = AutoModelForCausalLM.from_pretrained("EchoLabs33/zamba2-7b-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
- vLLM
How to use EchoLabs33/zamba2-7b-instruct-hxq with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EchoLabs33/zamba2-7b-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/zamba2-7b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EchoLabs33/zamba2-7b-instruct-hxq
- SGLang
How to use EchoLabs33/zamba2-7b-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/zamba2-7b-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/zamba2-7b-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/zamba2-7b-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/zamba2-7b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EchoLabs33/zamba2-7b-instruct-hxq with Docker Model Runner:
docker model run hf.co/EchoLabs33/zamba2-7b-instruct-hxq
Upload zamba2_7b_comparison.json with huggingface_hub
Browse files- zamba2_7b_comparison.json +31 -61
zamba2_7b_comparison.json
CHANGED
|
@@ -1,71 +1,41 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
"model": "Zamba2-7B-Instruct",
|
| 4 |
-
"
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
},
|
| 11 |
-
"configs": {
|
| 12 |
-
"dense_bf16": {
|
| 13 |
-
"name": "Dense BF16",
|
| 14 |
-
"ppl": 3.7216,
|
| 15 |
-
"n_tokens": 334660,
|
| 16 |
-
"n_chunks": 651,
|
| 17 |
"vram_load_mb": 14032.0,
|
| 18 |
-
"
|
| 19 |
-
"vram_peak_speed_mb": 14396.5,
|
| 20 |
-
"tokens_per_sec": 4385.2,
|
| 21 |
-
"speed_test_elapsed_s": 11.68,
|
| 22 |
-
"config_elapsed_s": 297.3
|
| 23 |
},
|
| 24 |
-
|
| 25 |
-
"
|
| 26 |
-
"ppl":
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
"vram_peak_eval_mb": 10011.6,
|
| 31 |
-
"vram_peak_speed_mb": 8188.0,
|
| 32 |
-
"tokens_per_sec": 2165.3,
|
| 33 |
-
"speed_test_elapsed_s": 23.65,
|
| 34 |
-
"config_elapsed_s": 334.3
|
| 35 |
},
|
| 36 |
-
|
| 37 |
-
"
|
| 38 |
-
"ppl":
|
| 39 |
-
"
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"vram_peak_speed_mb": 5590.6,
|
| 44 |
-
"tokens_per_sec": 3468.4,
|
| 45 |
-
"speed_test_elapsed_s": 14.76,
|
| 46 |
-
"config_elapsed_s": 332.6
|
| 47 |
},
|
| 48 |
-
|
| 49 |
-
"
|
| 50 |
-
"ppl":
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
-
"vram_peak_eval_mb": 16173.8,
|
| 55 |
-
"vram_peak_speed_mb": 14396.5,
|
| 56 |
-
"tokens_per_sec": 4384.5,
|
| 57 |
-
"speed_test_elapsed_s": 11.68,
|
| 58 |
-
"config_elapsed_s": 343.0
|
| 59 |
}
|
| 60 |
-
|
| 61 |
"cost": {
|
| 62 |
-
"wall_time_s":
|
| 63 |
-
"
|
| 64 |
-
"
|
| 65 |
-
"python_version": "3.10.12",
|
| 66 |
-
"hostname": "74efa4ce-5ef6-427c-b27b-336ce89875b5",
|
| 67 |
-
"timestamp_start": "2026-04-01T21:29:26",
|
| 68 |
-
"timestamp_end": "2026-04-01T21:51:18",
|
| 69 |
-
"gpu": "NVIDIA GeForce RTX 4090"
|
| 70 |
}
|
| 71 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"work_order": "WO-BUFFERED-FORWARD-01",
|
| 3 |
"model": "Zamba2-7B-Instruct",
|
| 4 |
+
"gpu": "RTX 3090 24GB",
|
| 5 |
+
"results": [
|
| 6 |
+
{
|
| 7 |
+
"config": "Dense BF16",
|
| 8 |
+
"ppl": 4.8211,
|
| 9 |
+
"tok_s": 1445.9,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"vram_load_mb": 14032.0,
|
| 11 |
+
"vram_peak_mb": 14686.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
},
|
| 13 |
+
{
|
| 14 |
+
"config": "bnb 4-bit NF4",
|
| 15 |
+
"ppl": 5.0664,
|
| 16 |
+
"tok_s": 1579.4,
|
| 17 |
+
"vram_load_mb": 5129.4,
|
| 18 |
+
"vram_peak_mb": 5904.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
},
|
| 20 |
+
{
|
| 21 |
+
"config": "HXQ 12-bit packed (buffered)",
|
| 22 |
+
"ppl": 5.0153,
|
| 23 |
+
"tok_s": 1763.7,
|
| 24 |
+
"vram_load_mb": 5657.2,
|
| 25 |
+
"vram_warmup_mb": 5864.6,
|
| 26 |
+
"vram_peak_mb": 6510.7
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
},
|
| 28 |
+
{
|
| 29 |
+
"config": "HXQ 12-bit packed (fused)",
|
| 30 |
+
"ppl": 5.0228,
|
| 31 |
+
"tok_s": 283.5,
|
| 32 |
+
"vram_load_mb": 6079.5,
|
| 33 |
+
"vram_peak_mb": 7108.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
+
],
|
| 36 |
"cost": {
|
| 37 |
+
"wall_time_s": -0.0,
|
| 38 |
+
"hostname": "8552b21e-f647-40e8-ab36-30dc6fb62665",
|
| 39 |
+
"timestamp": "2026-04-02T14:31:44"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
}
|