Files
project_6/computility-run.yaml
Claude ff971686d4 fix(CRITICAL): max_model_len 100000→80000 (KV cache only 88112) + NaN fix
Docker log proves two fatal issues:

1. max_model_len=100000 > KV cache capacity 88112 → ValueError crash
   'max seq len (100000) is larger than maximum number of tokens
    that can be stored in KV cache (88112)'
   Fix: set max_model_len=80000 (safe margin below 88112)

2. NaN in GatedDeltaNet layers 34,36,37,38 (frac=1.0000)
   Root cause: g.cumsum() → g.exp() overflow to inf → inf*0 = NaN
   Fix: clamp all g values to [-80,80] before exp() calls
   (max safe float32 exp input ~88, use 80 for margin)
   Applied to: cumsum result, k_cumdecay, attn_inter, last_state update

3. CoreX modules confirmed NOT in base image:
   'CoreX GDN module not found'
   'CoreX MoE module not found'
   → pure PyTorch is the only path, must be numerically stable
2026-08-08 15:08:00 +00:00

57 lines
1.5 KiB
YAML

concurrency: 1
command:
- python3
- -m
- vllm.entrypoints.openai.api_server
- --model
- /model
- --served-model-name
- llm
- --max-model-len
- '80000'
- --gpu-memory-utilization
- '0.9'
- --trust-remote-code
- -tp
- '4'
- --max-num-seqs
- '1'
- --disable-log-requests
- --disable-frontend-multiprocessing
- --enforce-eager
- --enable-auto-tool-choice
- --tool-call-parser
- qwen3_coder
- --reasoning-parser
- qwen3
- --enable-prefix-caching
- --max-seq-len-to-capture
- '8192'
- --dtype
- half
env:
- name: VLLM_ENGINE_ITERATION_TIMEOUT_S
value: '3600'
- name: VLLM_ATTENTION_BACKEND
value: XFORMERS
- name: ENABLE_CUSTOM_IPC
value: '1'
- name: PYTHONPATH
value: /usr/local/corex/lib/python3/dist-packages:/usr/local/corex/lib64/python3/dist-packages
- name: LD_LIBRARY_PATH
value: /usr/local/corex/lib64:/usr/local/openmpi/lib
- name: VLLM_COREX_FA2_LIBRARY
value: /usr/local/corex/lib64/libcorex_fa2.so
- name: VLLM_COREX_GDN_LIBRARY
value: /usr/local/corex/lib64/libcorex_gdn.so
- name: VLLM_COREX_MOE_LIBRARY
value: /usr/local/corex/lib64/libcorex_moe.so
- name: VLLM_REQUEST_METRICS_FILE
value: /tmp/vllm-request-metrics.jsonl
- name: VLLM_CACHE_BLOCK_SIZE
value: '16'
- name: PYTORCH_CUDA_ALLOC_CONF
value: max_split_size_mb:512
- name: OMP_NUM_THREADS
value: '1'