Archived
deploy: share the Unlimited-OCR parser chat template
Render only the last user turn and supply the reference parser instruction when that turn carries no text, so clients that send a bare image (or system/history text) no longer get a prose preamble before the layout. Mount the template directory read-only at /chat-templates.
This commit is contained in:
1 parent
0901ef9c50
commit
34f2bf26e2
3 files changed
+42
No files matched your search
@@ -32,6 +32,7 @@ services:
|
||||
memlock: -1
|
||||
volumes:
|
||||
- ${RADIANCE_MODELS:?set RADIANCE_MODELS in .env}:/models:ro
|
||||
- ${RADIANCE_CHAT_TEMPLATES:-../chat-templates}:/chat-templates:ro
|
||||
# A server finishes the step in flight and releases the cards on SIGTERM.
|
||||
stop_grace_period: 60s
|
||||
healthcheck:
|
||||
|
||||
@@ -22,3 +22,4 @@ services:
|
||||
--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
|
||||
--override-chat-template /chat-templates/unlimited-ocr-parser.jinja
|
||||
Reference in new issue
Block a user