Views
No views yet
coreai-torch (LLMs: coreai.llm.export) into .aimodel bundles that run on the GPU or the Neural Engine, e.g. Qwen3-8B 4-bit decodes at 94 tok/s on an M4 Max GPU, MLX 90 under the same protocol (apple-silicon-llm-bench, macOS 27 beta, 2026-06).Mirror ofmlboydaisuke/GLM-OCR-CoreAI— the canonical repo (CoreAI Model Zoo). Updates land there first.
zai-org/GLM-OCR (0.9B, MIT) — a small,
SOTA-quality document recognizer (OmniDocBench v1.5 94.62, #1 with its layout pipeline).
Prompt it with Text Recognition: / Table Recognition: / Formula Recognition: and get back
plain text (reading order), HTML tables (<table>…), or LaTeX. zh / en / fr / es / ru / de / ja / ko.Glm4v): a CogViT vision tower + a 16-layer GLM text
decoder with sectioned 3D M-RoPE. This port reuses the shipped Qwen3-VL vision idiom and GLM text
decode — no R-SWA, no MoE, no MLA.| dir | what | precision | size |
|---|---|---|---|
vision/ | CogViT encoder → image_embeds [N, 1536] | fp16 | 829 MB |
decoder/ | GLM text decoder, S=1 pipelined, M-RoPE + image injection | int8hu (body int8 per-block-32 + untied head absmax) | 764 MB |
tokenizer/ | tokenizer.json etc. | — | — |
image_embeds [682,1536] f16, rope_shift_start [1],
rope_shift_amount [1] — so the vision tower runs once, its output is injected at the image
placeholder positions (V + slot, row-major over the merged grid), and the text decodes on top.
N (visual-token count) is fixed at export by the chosen input resolution (here 682 = a 22×31 merged
grid); resize the page to that grid host-side.image_embeds cos 1.000061,
full-VLM argmax 694/694.image_embeds cos 0.9998; decoder argmax exact over the sampled positions.COREAI_CHUNK_THRESHOLD=1; feed the prompt with the image
placeholders rewritten to V+slot, bind image_embeds from the vision tower, set
rope_shift_start = img_start + N, rope_shift_amount = N − max(gh, gw)). The full conversion recipe
and the host contract (with the exact static-input values) are in the
Core AI model zoo —
conversion/export_glm_ocr_pipelined.py, zoo/glm-ocr.md, knowledge/glm-ocr-port.md.zai-org/GLM-OCR). Community port — not affiliated with Apple or Z.ai.