From f98f223fa6b77ba3a290aa4f7269263f4b205c2d Mon Sep 17 00:00:00 2001 From: Juup Date: Mon, 19 Oct 2026 12:23:32 +0000 Subject: [PATCH] deploy: an Unlimited-OCR bf16 compose service One card via RADIANCE_GPU, --tp 1 --max-num-seqs 8 --max-model-len 32768, --kv-cache-dtype fp8, the vision tower on the card (the default placement) and --gpu-headroom-mib 96. About 7 GiB of VRAM, so the other service in this directory is stopped first. --- deploy/compose/unlimited-ocr-bf16.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 deploy/compose/unlimited-ocr-bf16.yaml diff --git a/deploy/compose/unlimited-ocr-bf16.yaml b/deploy/compose/unlimited-ocr-bf16.yaml new file mode 100644 index 00000000..e725f2bd --- /dev/null +++ b/deploy/compose/unlimited-ocr-bf16.yaml @@ -0,0 +1,24 @@ +# Unlimited-OCR (baidu/Unlimited-OCR), bf16, as data/recipes/unlimited-ocr-bf16.recipe builds it: +# a 12-layer Llama-MoE trunk over the DeepEncoder vision tower (SAM + CLIP + projector, layout +# tokens included), for document parsing through /v1/chat/completions. One card, RADIANCE_GPU. +# +# The checkpoint expects a 128-token generated-token ring, so the plugin declares RAD_KV_RING and +# the request is kept out of prefix reuse. The towers live on the card (the default placement). +# Whole-server footprint is ~7 GiB, so this service needs the card to itself: stop the other +# model's compose file first (see common.yaml). +# +# gundam mode (the default for a single picture) crops a picture larger than 640 px into 640-px +# tiles plus the 1024-px global view; base mode is one 640-px page (multi-page documents send one +# image per page). `images_config` on the request selects a mode and restates its sizes. +name: radiance-unlimited-ocr +services: + radiance: + extends: { file: common.yaml, service: radiance } + container_name: radiance-unlimited-ocr + environment: + ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}" + command: > + --model /models/unlimited-ocr-bf16.rad + --host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env} + --tp 1 --max-num-seqs 8 --max-model-len 32768 --kv-cache-dtype fp8 + --gpu-headroom-mib 96