Update rule + flow hdfs new
This commit is contained in:
42
docker-compose.yaml
Normal file
42
docker-compose.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
services:
|
||||
chandra:
|
||||
image: ${IMAGE_TAG:-chandra-dla-api:v2-20260906-024126}
|
||||
container_name: chandra-ocr
|
||||
restart: unless-stopped
|
||||
|
||||
gpus:
|
||||
- driver: cdi
|
||||
device_ids: ["nvidia.com/gpu=${GPU_UUID:?dat GPU_UUID trong .env}"]
|
||||
|
||||
ipc: host
|
||||
shm_size: "16gb"
|
||||
|
||||
ports:
|
||||
- "${PORT:-9222}:8000"
|
||||
|
||||
environment:
|
||||
HF_HUB_OFFLINE: "1"
|
||||
TRANSFORMERS_OFFLINE: "1"
|
||||
VLLM_LOGGING_LEVEL: "${VLLM_LOG_LEVEL:-INFO}"
|
||||
|
||||
command:
|
||||
- --model=/model
|
||||
- --served-model-name=chandra
|
||||
- --host=0.0.0.0
|
||||
- --port=8000
|
||||
- --dtype=bfloat16
|
||||
- --max-model-len=${MAX_MODEL_LEN:-32768}
|
||||
- --max-num-seqs=${MAX_NUM_SEQS:-128}
|
||||
- --max-num-batched-tokens=${MAX_BATCHED_TOKENS:-65536}
|
||||
- --gpu-memory-utilization=${GPU_UTIL:-0.28}
|
||||
- --enable-prefix-caching
|
||||
- --seed=42
|
||||
# PHẢI khớp lúc train (IMAGE_MAX_TOKEN_NUM=1792) — đổi là bbox lệch.
|
||||
- --mm-processor-kwargs={"min_pixels":65536,"max_pixels":1835008}
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\""]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
start_period: 600s
|
||||
Reference in New Issue
Block a user