Views
No views yet
1huggingface-cli download mitomtuna/Rio-3.5-Open-397B-NVFP4 --local-dir ./Rio-3.5-Open-397B-NVFP4
2docker pull ghcr.io/tunamitom/rio:latest
3docker compose -f docker-compose.rio.yaml up -d1services:
2 sglang:
3 image: ghcr.io/tunamitom/rio:latest
4 container_name: rio
5 entrypoint: ["/bin/bash"]
6 ipc: host
7 shm_size: "16g"
8 mem_limit: 200g
9 memswap_limit: 200g
10 restart: "no"
11 cap_add: [SYS_NICE]
12 ulimits:
13 memlock: -1
14 stack: 67108864
15 nofile: { soft: 1048576, hard: 1048576 }
16 ports:
17 - "8001:8001"
18 healthcheck:
19 test: ["CMD-SHELL", "curl -fs http://localhost:8001/health"]
20 interval: 30s
21 timeout: 5s
22 retries: 3
23 start_period: 900s
24 environment:
25 OMP_NUM_THREADS: "8"
26 SAFETENSORS_FAST_GPU: "1"
27 CUTE_DSL_ARCH: "sm_120a"
28 SGLANG_ENABLE_SPEC_V2: "1"
29 SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION: "false"
30 SGLANG_SKIP_SGL_KERNEL_VERSION_CHECK: "1"
31 SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK: "false"
32 NCCL_DEBUG: WARN
33 SGLANG_SET_CPU_AFFINITY: "1"
34 NCCL_IB_DISABLE: "1"
35 NCCL_P2P_LEVEL: SYS
36 NCCL_ALLOC_P2P_NET_LL_BUFFERS: "1"
37 NCCL_MIN_NCHANNELS: "8"
38 NCCL_CUMEM_HOST_ENABLE: "0"
39 NCCL_NET_GDR_LEVEL: "SYS"
40 PYTORCH_CUDA_ALLOC_CONF: "expandable_segments:True"
41 SGLANG_ENABLE_JIT_DEEPGEMM: "0"
42 CUDA_VISIBLE_DEVICES: "0,1,2,3"
43 SGLANG_PREVENT_THOUGHT_LOOPS: "0"
44 B12X_ENABLE_DYNAMIC_DOWN_SCALE: "1"
45 SGLANG_PCIE_AUTOTUNE: "1"
46 TORCHINDUCTOR_CACHE_DIR: "/cache/torchinductor"
47 TRITON_CACHE_DIR: "/cache/triton"
48 CUTE_DSL_CACHE_DIR: "/cache/cute_dsl"
49 B12X_AUTOTUNE_CACHE_DIR: "/cache/b12x_autotune"
50 volumes:
51 - ./Rio-3.5-Open-397B-NVFP4:/models/Rio-3.5-Open-397B-NVFP4:ro
52 - rio-cache:/cache
53 deploy:
54 resources:
55 reservations:
56 devices:
57 - driver: nvidia
58 device_ids: ["0", "1", "2", "3"]
59 capabilities: [gpu]
60 command:
61 - -lc
62 - >-
63 set -euo pipefail;
64 exec python3 -m sglang.launch_server
65 --model-path /models/Rio-3.5-Open-397B-NVFP4
66 --tokenizer-path /models/Rio-3.5-Open-397B-NVFP4
67 --served-model-name rio
68 --tp-size 4
69 --host 0.0.0.0
70 --port 8001
71 --trust-remote-code
72 --quantization modelopt_fp4
73 --kv-cache-dtype fp8_e4m3
74 --mem-fraction-static 0.93
75 --chunked-prefill-size 16384
76 --cuda-graph-max-bs 64
77 --cuda-graph-bs 1 2 3 4 5 6 7 8 16 24 32 48 64
78 --max-running-requests 64
79 --reasoning-parser qwen3
80 --tool-call-parser qwen3_coder
81 --attention-backend flashinfer
82 --fp4-gemm-backend b12x
83 --moe-runner-backend b12x
84 --mamba-scheduler-strategy extra_buffer
85 --enable-pcie-oneshot-allreduce
86 --enable-metrics
87 --sleep-on-idle
88volumes:
89 rio-cache:
90 driver: local| ctx | C=1 | C=10 | C=20 | C=32 |
|---|---|---|---|---|
| 0 | 130 | 539 | 823 | 1159 |
| 16k | 128 | 511 | — | — |
| 32k | 124 | 495 | — | — |
| 64k | 120 | 475 | — | — |
| 128k | 113 | 435 | — | — |
| ctx | tok/s |
|---|---|
| 8k | 12,614 |
| 16k | 11,850 |
| 32k | 11,375 |
| 64k | 10,150 |
| 128k | 7,943 |