Model overview
AWQ 4-bit (W4A16) quantization of **baidu/Unlimited-OCR**, a 3B vision-language OCR model that pushes **DeepSeek-OCR** one step further (one-shot, long-horizon document parsing). This repo quantizes the **DeepSeek-V2 MoE text decoder** with activation-aware scaling (AWQ) while keeping the vision tower in BF16, so it stays a drop-in `transformers` model. > ⚠️ **Runtime requirements.** This is custom remote code, so load with > **`trust_remote_code=True`**, **`transformers` 4.57.x**, and **`compressed-tensors`** installed. > W4A16 (int4) runs on any CUDA GPU; `compressed-tensors` handles the 4-bit unpacking at load. Unlimited-OCR uses the **DeepSeek-OCR** prompt vocabulary. The prompt **must contain ` `**; prefix it with ` ` whenever you also want **bounding boxes** for what was read.
The summary below is compiled from sources by an AI model, not our own testing. Verify selection decisions against original sources and your workload.
Key features
- AWQ 4-bit quantization (W4A16) of the DeepSeek-V2 MoE text decoder, enabling efficient inference on CUDA GPUs
- Hybrid precision design: vision tower remains in BF16 for visual fidelity, while text decoder is quantized for speed/memory savings
- Drop-in compatibility with Hugging Face `transformers` library (v4.57.x) via custom remote code and `compressed-tensors` integration
Limitations & considerations
- Requires `trust_remote_code=True`, limiting use in security-constrained or sandboxed environments
- Depends on specific software versions (`transformers` 4.57.x and `compressed-tensors`), reducing compatibility with newer or older ecosystems
- Prompt format is rigid: must contain ` `; bounding box output requires explicit prefixing with ` ` — no fallback or auto-detection
Source prices & cost analysis
Prices vary by channel, region and configuration. Channel quotes are listed independently and are not treated as a single official provider price.
| Source / channel | Input | Output | Billing unit | Collected at |
|---|---|---|---|---|
| No verified prices yet. Check the source channel. | ||||
Estimate monthly base token costs
Estimates exclude cache discounts, tiered pricing, multimodal surcharges, web search, taxes and additional reasoning output.
Public benchmarks & run configuration
暂无已采集的可核验公开评分。模型未上榜不代表能力较低。
View full indexed rankings →Frequently asked questions
Why does Unlimited-OCR-AWQ require `trust_remote_code=True`?
Because it uses custom remote code for AWQ-integrated model loading and inference logic, which is not part of standard `transformers`.
What is the role of `compressed-tensors` in this model?
`compressed-tensors` handles on-the-fly unpacking of the 4-bit quantized weights during model load, enabling W4A16 execution without manual dequantization.
How do I enable bounding box output?
Prefix your input prompt with ` ` — the model only outputs bounding boxes when this exact token sequence appears at the start of the prompt.
Do open weights permit free commercial use?
Not necessarily. Check the version license, commercial conditions and usage policies. Self-hosting incurs compute and maintenance costs.
Are these real-time billing prices?
These are timestamped source snapshots, not live billing prices. Check the channel for current versions, regions, discounts and billing methods.
Sources & traceability
许可证:mit。模型介绍与第三方评测均以原来源的具体版本和方法为准。