selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

baidu logo

Can the Radeon RX 7800 XT run Unlimited-OCR-2?

Unlimited-OCR-2·3.3B (1.1B active)·Radeon RX 7800 XT·16 GB VRAM

Saved in this browser, used on every model page.
Yes

Yes. The Radeon RX 7800 XT runs Unlimited-OCR-2 fully in VRAM at FP16 / BF16 (about 7.1 GB of 16 GB).

best quant
FP16 / BF16
needs
7.1 GB
usable
16 GB

Estimates from the model's size.Try other contexts on the Unlimited-OCR-2 page →

Every quantisation of Unlimited-OCR-2 on the Radeon RX 7800 XT

QuantMemoryFit
Q4_K_M 2.8 GBfits
Q8_0 4.0 GBfits
FP16 / BF16 pick7.1 GBfits

Speed is a bandwidth-based estimate for generating text (624 GB/s); prompt processing and long contexts are slower.

Run Unlimited-OCR-2 on the Radeon RX 7800 XT

Using FP16 / BF16, the best fit for Radeon RX 7800 XT.

llama.cpp · OpenAI-compatible server with a web UIdocs
llama-server -hf AtomicChat/Unlimited-OCR-2-GGUF:BF16

Needs a HIP (ROCm) build of llama.cpp. Downloads the GGUF on first run.

llama.cpp · Docker with ROCm (AMD)docs
docker run -d --name llama --device /dev/kfd --device /dev/dri -p 8080:8080 \
  -v ~/.cache/llama.cpp:/root/.cache/llama.cpp \
  ghcr.io/ggml-org/llama.cpp:server-rocm \
  -hf AtomicChat/Unlimited-OCR-2-GGUF:BF16 --host 0.0.0.0 --port 8080 -ngl 99

Server and web UI on port 8080.

vLLM · Serve an OpenAI-compatible APIdocs
vllm serve baidu/Unlimited-OCR-2

Needs vLLM built for ROCm; it supports Instinct MI200/MI300 and Radeon RX 7900 / 9000 cards.

vLLM · Smaller FP8 builddocs
vllm serve AutomatosX/AX-Unlimited-OCR-2-AXQ-MXFP8
vLLM · Docker Compose (AMD ROCm)docs
services:
  vllm:
    image: rocm/vllm:latest
    command: vllm serve baidu/Unlimited-OCR-2 --host 0.0.0.0 --port 8000
    ports:
      - "8000:8000"
    ipc: host
    devices:
      - /dev/kfd
      - /dev/dri
    group_add:
      - video
    security_opt:
      - seccomp=unconfined
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface

AMD’s rocm/vllm image. API on port 8000.

SGLang · Serve an OpenAI-compatible APIdocs
sglang serve baidu/Unlimited-OCR-2 --host 0.0.0.0 --port 30000

Needs SGLang’s ROCm build (Instinct MI300-class GPUs).

Transformers · Ask about an imagedocs
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="baidu/Unlimited-OCR-2", dtype="auto", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
            {"type": "text", "text": "Describe this image."},
        ],
    }
]
out = pipe(text=messages, max_new_tokens=256)
print(out[0]["generated_text"][-1]["content"])

OCR models that fit the Radeon RX 7800 XT comfortably

All that fit →
ModelParamsBest quantMemoryLicence
3.3BA1.1BFP16 / BF16≈8.0 GBFits in memoryCommercial OK
deepseek-ai logoDeepSeek-OCRdeepseek-ai
3.3BA1.1BFP16 / BF16≈8.0 GBFits in memoryCommercial OK
deepseek-ai logoDeepSeek-OCR-2deepseek-ai
3.4BA1.2BFP16 / BF16≈8.1 GBFits in memoryCommercial OK
dots-studio logodots.ocrdots-studio
3BFP16 / BF16≈7.3 GBFits in memoryCommercial OK
3.8BFP16 / BF16≈8.9 GBFits in memoryCheck licence
3.8BFP16 / BF16≈8.9 GBFits in memoryCheck licence

Other GPUs that run Unlimited-OCR-2

Frequently asked questions

Can the Radeon RX 7800 XT run Unlimited-OCR-2?
Yes. The Radeon RX 7800 XT runs Unlimited-OCR-2 fully in VRAM at FP16 / BF16 (about 7.1 GB of 16 GB).
Which quantisation of Unlimited-OCR-2 should I use on the Radeon RX 7800 XT?
FP16 / BF16: the largest one that fits. Expected quality: lossless compared with the full-precision weights.

Memory and speed are estimates from the model's size and the card's memory bandwidth; real numbers depend on the runtime, drivers and context length. Community figures are medians of user reports.