Views
No views yet
ℹ️ This model is limited to Hopper and Blackwell 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
--max-model-len in VLLM and/or quantize the KV cache and/or use multiple GPUs with for example tensor-parallelism.export VLLM_USE_NVFP4_CT_EMULATIONS=1
otherwise use the alternative mratsim/Hearthfire-24B-NVFP4A16--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/Hearthfire-24B-NVFP4"
3MODELNAME="Hearthfire-24B"
4GPU_UTIL=0.95
5CONTEXT_SIZE=32768
6
7# Sampling configuration (Optional, if departing from `generation_config.json`)
8SAMPLER_OVERRIDE='{"temperature": 0.8, "min_p": 0.025, "top_p": 1, "repetition_penalty": 1.05}'
9
10# Prevent vLLM from using 100% CPU when idle (Very Recommended)
11export VLLM_SLEEP_WHEN_IDLE=1
12
13# Use FlashInfer backend (fastest, recommended, "instant" context reprocessing)
14export VLLM_ATTENTION_BACKEND=FLASHINFER
15
16vllm serve "${MODEL}" \
17 --served-model-name "${MODELNAME}" \
18 --gpu-memory-utilization ${GPU_UTIL} \
19 --max-model-len "${CONTEXT_SIZE}" \
20 --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