GLM-OCR · FP8 (dynamic)

8-bit quantization of zai-org/GLM-OCR for vLLM serving. Quantized by axteam.

Base model zai-org/GLM-OCR
Method FP8 (dynamic)
Format compressed-tensors FP8_DYNAMIC
Weights / activations W8A8 — FP8 E4M3 weights (per-channel), dynamic per-token FP8 activations
Architecture Dense · GLM text backbone + vision encoder · MTP head · document/OCR VLM
Size on disk ~2.0 GB
Calibration None (data-free)
License mit

Quantization details

  • Scheme — W8A8 — FP8 E4M3 weights (per-channel), dynamic per-token FP8 activations, stored as compressed-tensors FP8_DYNAMIC.
  • Kept in BF16 — the vision tower (model.visual.*), the multi-token-prediction layer, token embeddings, the LM head, and all RMSNorms (a small fraction of parameters). Only the language-model backbone's attention & MLP projections are quantized, so the OCR/vision path is untouched.
  • Post-training quantization (no retraining). Tokenizer / chat_template / processor identical to the original.

Evaluation (measured)

Fidelity to the BF16 original on an internal mixed EN/KO set (100 prompts, text next-token scoring).

Metric This model BF16 original
Perplexity (lower = closer) 1.3726 1.3599 (+0.9%)
Top-1 next-token agreement 96.5% 99.4%

Usage (vLLM)

vllm serve axteam/GLM-OCR-FP8-dynamic --trust-remote-code

License

Quantized derivative of zai-org/GLM-OCR (mit). Original weights & processor belong to the upstream authors.


한국어 요약

zai-org/GLM-OCR 를 FP8 (dynamic) 로 양자화한 서빙용(8-bit) OCR 모델입니다. 작성: axteam.

  • 방식 — FP8 E4M3, 가중치 채널별 스케일(정적·보정불필요), 활성화 동적 FP8. 형식 compressed-tensors FP8_DYNAMIC.
  • BF16 유지 — 비전 타워(model.visual.*)·MTP 레이어·토큰 임베딩·LM 헤드·모든 norm. 언어모델 백본의 attention·MLP projection 만 양자화(비전/OCR 경로 그대로).
  • PTQ(재학습 없음), 토크나이저·chat_template·프로세서 원본 동일.
  • 품질(실측) — BF16 대비 perplexity 1.3726(원본 1.3599, +0.9%), top-1 96.5%(원본 99.4%). 내부 영/한 100문항.
  • 사용 — vllm serve axteam/GLM-OCR-FP8-dynamic --trust-remote-code. 라이선스 mit.
Downloads last month
-
Safetensors
Model size
1B params
Tensor type
BF16
·
F8_E4M3
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for axteam/GLM-OCR-FP8-dynamic

Base model

zai-org/GLM-OCR
Quantized
(39)
this model

Collection including axteam/GLM-OCR-FP8-dynamic

Evaluation results