Rebuild notice (2026-11-25). This pack will be rebuilt with the improved AXQuant toolkit (current publication gates, real runtime smoke and pack-layout checks) and replaced in this repository as a new revision. The current files stay available in the repository history; pin a commit if you depend on them. Treat this pack as development evidence, not a quality certificate.
No quantization-container correction was needed. This family has no n-gram tensors; no n-gram file or declaration was added. This CUDA pack is outside MLX/oMLX/MTPLX export scope.
See runtime_audit.json for pinned config/index/header bindings, architecture, physical-format findings, and applied corrections. This is development evidence; no quality, MTP exactness, speed, or certification claim is added. Historical evidence stays bound to its original revision.
Development preview. This trained DeepSeek-OCR-2 checkpoint was converted from the original official BF16 source using native AXQuant round-to-nearest (RTN) NVFP4 packing. No AWQ algorithm or AWQ checkpoint is used.
Selected attention, MLP and individual expert projections use NVFP4 W4A16: E2M1 FP4 weights, E4M3FN block scales for 16 values and an inverse FP32 global scale. Activations execute in BF16 without activation quantization. SAM, Qwen2 visual encoder, projector, separators, routers, embeddings, norms and LM head retain their original BF16 payloads.
aaa02f3811945a91062062994c5c4a3f4c0af2b0 (Apache-2.0).Factory conversion used the explicit AXQuant numpy-reference encoder.
The native CUDA encoder was separately checked for byte parity on RTX 5090
and Thor. The manifest identifies the actual factory encoder. The source
retains the official PyTorch layout and config; existing MLX packs are not
requantized or reinterpreted as NVIDIA checkpoints.
Parallel Q/K/V and gate/up projections share global scales for runtime fusion. The pack uses the public compressed-tensors NVFP4A16 checkpoint interface.
The identical weights, config and generated English test page were checked
with official vLLM 0.25.1, PyTorch 2.11.0+cu130 and CUDA 13.0.
The NVFP4 kernels were MarlinNvFp4LinearKernel and MARLIN for MoE.
| GPU | NVFP4 load and generation | All expected page lines |
|---|---|---|
| GeForce RTX 5090 | Passed | Present |
| Thor | Passed | Present |
The RTX 5090 original BF16 control also recognized all three lines. The
expected page text is AXQuant NVFP4, Invoice 12345, and Total USD 42.50.
See development_runtime_smoke.json for exact output, request settings,
checkpoint/image digests and pinned AMD64/ARM64 container images.
This is one generated page, without broad OCR accuracy or speed certification.
Original image build metadata can produce unknown-environment-variable warnings for
VLLM_BUILD_COMMIT, VLLM_BUILD_PIPELINE, VLLM_BUILD_URL and
VLLM_IMAGE_TAG build metadata. These are not inference settings. Thor
also warns that this Marlin path uses weight-only FP4 compression instead
of native FP4 computation; compute-heavy performance is not qualified.
Eager-mode, first-request JIT and missing autotune-cache warnings reflect
this test configuration and can affect latency. They are not speed evidence.
The corrected example enables chunked prefill and removes only the four
image build metadata variables. The unchanged checkpoint was retested with
chunked prefill on RTX 5090 and Thor; all three expected page lines were
present. Exact outputs and image/configuration digests are in
development_runtime_smoke.json.
hf download AutomatosX/AX-DeepSeek-OCR-2-CUDA-AXQ-NVFP4-W4A16 --local-dir model-nvfp4
python model-nvfp4/examples/ocr_smoke.py \
--model model-nvfp4 --image model-nvfp4/examples/ocr-smoke-page.png \
--output ocr-smoke.json --memory-fraction 0.30
Use --memory-fraction 0.035 for the tested Thor recipe. This development
example uses minimum 16 tokens, deterministic sampling, native vLLM OCR
processors, Torch SDPA vision attention and Triton text attention. It rejects
repeated nonblank output lines. This small page does not establish general
OCR quality or correct layout markup. Actual documents and concurrency need
independent validation and memory sizing.
For verified native FP4 computation, use the calibrated W4A4 successor. This W4A16 checkpoint uses Marlin weight-only FP4 compression. Thor has native FP4 hardware; the Marlin warning describes this execution path. The W4A4 successor verifies native CUTLASS Linear and native quantized MoE kernel coverage on both GPUs. No AWQ is used in either format. This guidance update does not change weights, quantization configuration, original provenance or historical certificates.
axquant_cuda_plan.json: exact source content binding and protected allocation.axquant_cuda_manifest.json: core output digests and development status.provenance.json: exact source, converter code and actual encoder.development_runtime_smoke.json: sanitized one-page runtime evidence.SHA256SUMS.txt: complete published payload hashes.examples/: the generated page and tested reproduction script.LICENSE.txt: the unchanged original Apache-2.0 license.Core manifests retain runtime_verified=false and quality_certified=false.
Separate smoke evidence describes the exact cases exercised; this pack does
not claim Tier 1/2 certification, a GA release, W4A4 activation quantization,
or native FP4 Tensor Core performance.
deepseek-ai/DeepSeek-OCR-2