Views
No views yet
datalab-to/chandra-ocr-2 (a 5B Qwen3.5‑based vision‑language OCR model). Drop it into vLLM as the speculator to accelerate single‑stream (latency‑bound) OCR decoding losslessly — every drafted token is verified by the target, so output quality is preserved.| tok/s | speedup | |
|---|---|---|
| baseline (no spec) | 58.0 | 1.0× |
| + this head (num_spec=5) | 104.0 | 1.8× |
num_speculative_tokens to 1–2 for bulk throughput.hidden_size 2560, head_dim 256, GQA 16/4fc_norm (per‑aux‑layer RMSNorm) + norm_output (post‑norm recurrence)draft_vocab_size 32768 (from 248320; 99.99% token coverage) → ~7.6× smaller lm_head. d2t buffer maps pruned ids back to the full vocab.[3, 15, 27] (Chandra‑2 is a hybrid 3:1 linear/full‑attention model).1from vllm import LLM
2llm = LLM(
3 model="datalab-to/chandra-ocr-2",
4 speculative_config={
5 "model": "jbarrow/joecr-chandra-2-eagle3.1",
6 "method": "eagle3",
7 "num_speculative_tokens": 5,
8 },
9 limit_mm_per_prompt={"image": 1},
10)ocr_layout prompt in the user turn (image + instruction).