Views
No views yet
microsoft/bitnet-b1.58-2B-4T model for the ATLAS Engine ecosystem, designed for native, ultra-low-latency CPU inference without any GPU requirement.Packed using the unifiedpack_to_atlas.pytoolchain (v2.10.0) with BF16 weight scale correction.
| Property | Value |
|---|---|
| Format | ATLAS Binary (.atlas), format_version=2 |
| Quantization | TQ1.0 — Ternary Weight Packing (Base-3, ~1.58 bits/weight) |
| Target | Native CPU — Intel AVX2 (Haswell 2013+), no GPU needed |
| File Size | 1.04 GB |
| Inference Speed | ~2.8 tok/s (i7-7700T, f32 bypass) |
| Description | BitNet b1.58 2B-4T, SubLN architecture, Microsoft pre-quantized U8 weights |
| Component | Detail |
|---|---|
| Base Model | microsoft/bitnet-b1.58-2B-4T |
| Architecture | bitnet |
| Layers | 30 |
| Hidden Size | 2560 |
| Intermediate Size | 6912 |
| Attention Heads | 20 (GQA, 5 KV heads) |
| Head Dim | 128 |
| RoPE Theta | 500000.0 |
| Vocabulary | 128256 |
| Context Window | 2048 (NTK-scalable up to 4096) |
Architecture Note: BitNet uses SubLN (sub-layer normalization) with ReLU² activation. This architecture requiresf32_bypassmode (auto-enabled) because the ternary weights are ~0.01× scale, and uint8+128 activation quantization destroys the signal. The T=0 (argmax) path degrades into token repetition after 10-15 tokens due to ternary quantization — T=0.7 with top_k=40 is the stable default.
"The capital of France is Paris." — correct deterministic outputNote on scale mathematics: the legacy dequantization path divides by the scale factor rather than multiplying. Since this is a constant across all logits for any given output row, the relative probability distribution remains identical under softmax normalization — no effect on output quality.
{role}: {content}<|eot_id|>User: What is 2+2?
Assistant: 4git clone https://github.com/xxxn3m3s1sxxx/ATLAS-TQ1_0.git1from atlas_infer import AtlasModel
2
3model = AtlasModel("BitNet-2B4T-b1.58-ATLAS.tq1.atlas")
4output = model.generate_c(
5 "What is the capital of France?",
6 max_new_tokens=100,
7 temperature=0.7,
8 top_k=40,
9)
10print(output)atlas --model BitNet-2B4T-b1.58-ATLAS.tq1.atlas --prompt "What is the capital of France?" --max-tokens 1001python atlas_server.py --model BitNet-2B4T-b1.58-ATLAS.tq1.atlas --port 8080
2curl http://localhost:8080/v1/chat/completions \
3 -H "Content-Type: application/json" \
4 -d '{"prompt": "What is the capital of France?", "max_tokens": 100}'| Feature | Description |
|---|---|
| No GPU required | Runs on any x86-64 CPU with AVX2 (Intel Haswell 2013+, AMD Excavator 2015+) |
| Hybrid matmul | FFN tensors in int8, QKV/O in TQ1-packed, per-tensor dispatch |
| int4 FFN mode | Halves FFN memory bandwidth for 18-26% speedup (7B/10B) |
| f32 bypass | Auto-enabled for small models (≤1B) and SubLN architectures |
| Ring buffer KV cache | Extended context via NTK-aware RoPE scaling |
| Standalone C++ CLI | No Python or PyTorch required at runtime |
| SSE web server | FastAPI-based /v1/chat/completions with prompt caching |
microsoft/bitnet-b1.58-2B-4T