Views
No views yet
ℹ️ This model is limited to Hopper and Blackwell family of GPUs and will not work with RTX 3000s and RTX 4000s GPUs. Please use the NVFP4A16 model otherwise OR enable slow emulationexport VLLM_USE_NVFP4_CT_EMULATIONS=1
export VLLM_USE_NVFP4_CT_EMULATIONS=1
otherwise use the alternative [TBD]--override-generation-config "${SAMPLER_JSONCONFIG}" to override the sampler (which is a merge of generation_config.json and vLLM defaults)1# Model configuration (Mandatory)
2MODEL="mratsim/Behemoth-X-123B-v2-NVFP4"
3MODELNAME="Behemoth-X-123B-v2"
4CONTEXT_SIZE=32768
5GPU_UTIL=0.85
6
7# Sampling configuration (Optional, if departing from `generation_config.json`)
8# Using default vLLM values
9SAMPLER_OVERRIDE='{"temperature": 1, "min_p": 0, "top_p": 1, "repetition_penalty": 1}'
10
11# Prevent vLLM from using 100% CPU when idle (Very Recommended)
12export VLLM_SLEEP_WHEN_IDLE=1
13
14# Use FlashInfer backend (fastest, recommended, "instant" context reprocessing)
15export VLLM_ATTENTION_BACKEND=FLASHINFER
16
17vllm serve "${MODEL}" \
18 --served-model-name "${MODELNAME}" \
19 --gpu-memory-utilization ${GPU_UTIL} \
20 --max-model-len "${CONTEXT_SIZE}" \
21 --override-generation-config "${SAMPLER_OVERRIDE}"ℹ️ The FlashInfer backend may fail with an error similar toFailed to allocate memory for batch_prefill_tmp_v with size XYZ and alignment 16 in AlignedAllocator.A workaround is running a sed replacement command within vllm install to increase buffer spacesed -i 's/FLASHINFER_WORKSPACE_BUFFER_SIZE = 256 \* 1024 \* 1024/FLASHINFER_WORKSPACE_BUFFER_SIZE = 512 \* 1024 \* 1024/g' vllm/v1/attention/backends/flashinfer.pyThis will be fixed by PR https://github.com/vllm-project/vllm/pull/25344
1default_stage:
2 default_modifiers:
3 QuantizationModifier:
4 targets: [Linear]
5 ignore: [lm_head]
6 scheme: NVFP4