Language Decoder: Granite 165M Decoder (GQA 8:2, 12 layers, hidden size 768) converted completely to BitLinear b1.58 layers
Ternary Packing: 5 ternary weights ∈{−1,0,+1} packed per byte (3)
🔬 Training & Distillation Methodology
1. Straight-Through Estimator (STE) Quantization
Weights are ternary-quantized dynamically with per-tensor mean absolute scale:
Wternary=Round(Clip(γW,−1,1)),γ
Activations are scaled to 8-bit integers per token using absolute maximum scaling:
2. Multi-Objective Distillation Loss
Supervised Cross-Entropy (LCE): Next-token prediction on valid assistant DocTags (converged to ∼0.39−0.49).
KL-Divergence Distillation (LKD): Full-vocabulary logit matching at temperature T= (converged to ).
📚 Training Datasets
Trained directly on official IBM document extraction and layout datasets:
HuggingFaceM4/DoclingMatix (50%): Real multi-page document images, PDFs, invoices, forms, structured document QA, and DocTags layout annotations.
ds4sd/SynthCodeNet (20%): Synthesized code blocks with pixel bounding-box DocTags (<code><loc_...>).
ds4sd/SynthFormulaNet (15%): Dense LaTeX mathematical formulas with layout coordinates (<formula><loc_...>).
ds4sd/SynthChartNet (15%): Charts, infographics, and table structure extractions with cell coordinates.
📈 Training History & Token Statistics
The model underwent four cumulative training stages with an effective batch size of 64 document images per step.
Total Training Tokens Processed: ~506.3 Million multimodal tokens across all cumulative phases.
Convergence State: The model reached diminishing returns with sustained logit cosine similarity of 0.8912, saturating the parameter capacity of 1.58-bit ternary representations.
🖥️ Hardware & Training Infrastructure
The training pipeline was executed on the following infrastructure:
Hardware: NVIDIA GB10 (12 GB VRAM)
Active VRAM Usage: ~3.0 GB active / ~11.0 GB reserved (via selective token masking & gradient checkpointing)
Optimizer: 8-bit PagedAdamW (bitsandbytes) with weight decay 1×10−4