Repository navigation
Releases
HTR v0.3.1 — XDNA2 tooling: more model, fewer bytes, now on the NPU
The XDNA tooling release
- Hardware-native 3.000 BPW SO4-3.00 companion codec for AMD XDNA2 / AIE2P.
- CPU htr-quantize-xdna CLI with the C Viterbi / LDLQ accelerator.
- Unified decode/prefill weight slabs, vldb.4x32 LUT, checkpoint metadata, and optional multimodal export.
- Export to HTR-XDNA Server, the XRT-independent zero-GPU serving companion built using HRX / Loom tooling.
- Existing HTR-W1 formats, rdna24 decoders, and v0.3.0 calibration artifacts remain unchanged. SO4 is a separate companion format.
Verification
142 CPU tests run: 141 passed, 1 ROCm-only admission test skipped. All three XDNA codec tests passed, including C/NumPy parity and encode/pack/decode round trip. Server benchmark numbers were not remeasured for this quantizer release.
This release versions the XDNA tooling already integrated on main and refreshes package metadata and documentation. No encoder numerics or tests were changed by the version bump. Source archives are provided by GitHub; no new wheel or model weights are attached.
HTR v0.3.0 — Precision MoE Trellis Quantization & Multi-Scale BF16 Calibration Schema
HTR v0.3.0 — Precision MoE Trellis Quantization & Multi-Scale BF16 Self-Gen Calibration Schema
HTR v0.3.0 pairs five ablation-verified encoder/solver upgrades, cross-vendor CUDA + RDNA 3.5 cooperative Viterbi, and our full Multi-Scale True-BF16 Self-Gen Calibration Schema while keeping the HTR-W1 wire format and rdna24 decoders 100% unchanged and backward-compatible.
Highlights & Measured Gains (OLMoE-1B-7B K3 13-Arm Controlled Ablation, 98,244 tokens)
| Upgrade | Measured Impact | Location |
|---|---|---|
| Multi-Scale BF16 Self-Gen Calibration Schema |
2,883,584 total tokens (1,024x2048 + 128x4096 + 32x8192), 81,624 unique tokens, 44-52% assistant fraction at every scale, 768 deterministic self-gen prompts (1,089,266 verified BF16 tokens via teacher_cert, 0 failed / 0 looped), 297 distinct wikitext-2 train articles |
docs/CALIBRATION_SCHEMA.md · calibration/v0.3.0/
|
| CurveTQ intra-block curvature weighting | -1.96% combined KL, -4.02% assistant KL, -3.07% GSM8K KL, -1.89% long-4K KL at zero wall-time overhead |
htr/encode.py (intra_block_curv=True) |
softp_sq_blend MoE Hessians + EBSS audit |
-21.83% mean K3 proxy error, -12.66% tail-expert MSE, -5.60% assistant KL, -2.27% long-4K KL vs v0.2.0 softp
|
htr/moe_encode.py (hess_mode="softp_sq_blend", ebss_coverage_report()) |
| MaCa trace-normalized multi-scale Hessians | -3.99% MBPP code KL, -2.54% WikiTest KL, -2.83% assistant KL |
htr/moe_encode.py (combine_multiscale_hessians()) |
Combined v0.3.0 locked MoE recipe (CurveTQ + MaCa + softp_sq_blend) |
-21.43% mean K3 proxy, -12.49% tail-expert MSE, -7.22% GSM8K KL (best of 13 arms), -4.19% MBPP KL, -3.21% assistant KL at identical wire bytes | docs/EVIDENCE.md |
| NVIDIA CUDA cooperative Viterbi | Extends wave-cooperative DP + single-launch GPU backtracking to sm_80/sm_86/sm_89/sm_90 with 100% bit-identity to k_group
|
htr/vit_v2.py |
| Chunked single-layer sensitivity screener | Memory-bounded BF16-swap K3 -> K4 selector |
htr/k_screen.py |
See docs/EVIDENCE.md for the full 13-arm ablation table (including rejected arms: GPTAQ, QEP, and asst_alpha=1.0) and docs/METHODOLOGY.md for mathematical details.
Flagship Full-Scale Proof of Concept: ERNIE-5.5-Flash-Preview-HTR v3
- 558.4 GiB BF16 -> 101.87 GiB All-K3 (
5.48xcompression) (Hugging Facev3, raw exact BF16 artifact:evidence/ernie55-v3-verified.json) - Held-out Assistant KL:
0.01430(2K,94.97%top-1 /96.24%factual) and0.02179at full 8K DSA context (91.33%top-1) - Legacy
eval_2048(131Ktok):0.16935KL,90.64%top-1 (95.73%STEM reasoning),delta_nll +0.01488 - Legacy
eval_4096(32.8Ktok):delta_nll -0.00743(code_4k0.05257KL /94.25%top-1, recoveringv2's regression) - Mean target K3 proxy:
0.00654across all 42 MoE layers (21,504routed experts);lm_headK5 proxy0.00003
HTR v0.1.0-rc.1 — codec and encoder source preview
HTR v0.1.0-rc.1 — codec and encoder source preview
Halo Trellis brings low-bit weight storage, calibration-aware encoding, and bandwidth-oriented execution together for AMD Strix Halo.
What is included
- HTR-W1: compact trellis streams with explicit sign/scale metadata and a documented wire format.
- A self-contained CPU reference and CUDA/HIP Viterbi encoder sources.
- Hessian-aware grouped encoding, checkpoint conversion, and separate output-head calibration.
- RDNA24 procedural reconstruction and experimental HIP packed-linear/vLLM integration.
- Format tests, source provenance, and preserved real-model evidence.
Explore HTR
The project overview leads with what HTR does and where it is useful. The findings connect fidelity per bit, storage overhead, packed-checkpoint fidelity, and measured generation gains on Radeon 8060S. The methodology explains the engineering; the case study preserves the full model-specific controls, conditions, and repetitions.
Verification and use
The wheel was built and installed into an isolated environment, and its four CLI help paths were exercised. Seven CPU tests passed, including independent K2–K5 bitstream decoding, signs, Hadamard inversion, circular-state Viterbi checks, and a real encode → safetensors → reopen → exact reconstruction round trip. Anonymous clone and release-asset checks were also completed.
This release provides the codec/encoder and experimental integration source. Native model deployments need a compatible loader/runtime and their own qualification; see component status. The published model measurements retain their original runtime and workload scope.
Assets
halo_trellis-0.1.0rc1-py3-none-any.whl contains Python and JIT native source. Install it in a prepared environment without replacing the platform-specific PyTorch build. SHA256SUMS.txt binds the wheel. The release tag and assets are unchanged by the documentation refresh linked above.
Acknowledgments
The project's acknowledgments and third-party notices retain the full research, engineering, and licensing credits.