Skip to main content
When you launch an inference server with vLLM on Hivenet, most users can rely on the default configuration. Advanced settings are available for those who need fine-grained control over performance, memory usage, or generation behavior. This page lists each advanced setting, what it does, and when you might want to adjust it.
These settings can impact performance and stability. Only change them if you’re familiar with how vLLM works or have specific workload requirements.

Memory management

SettingDescriptionDefaultWhen to adjust
GPU memory fractionFraction of GPU memory vLLM can use.0.9Lower if you want to reserve memory for other processes.
CPU offload (GB)Amount of memory offloaded to CPU when GPU is full.0 (disabled)Use if your model is too large for GPU memory. May reduce performance.
Max batched tokensTotal tokens across all concurrent requests.8192Increase for higher throughput if your GPU has enough memory.

Model loading and quantization

SettingDescriptionDefaultWhen to adjust
QuantizationReduces memory use by storing model weights at lower precision.NoneEnable to fit larger models on smaller GPUs, at some cost to accuracy.
KV cache DTypePrecision of key-value cache used for attention.autoChange if you want to experiment with performance vs. memory trade-offs.
Config formatHow model configs are parsed.autoRarely needs adjustment.
Load formatFormat for model weights when loaded.autoRarely needs adjustment.
Tokenizer modeHow tokenization is handled.autoKeep default unless testing custom tokenizers.

Context settings

SettingDescriptionDefaultWhen to adjust
Max tokens / Context lengthMaximum tokens processed per request.8192Increase for longer prompts and outputs, if your GPU can handle it.
Concurrent requestsMaximum clients handled at once.64Adjust based on your traffic. Higher values allow more users but may slow responses.
Tensor parallel sizeSplits model across multiple GPUs.autoUse only if your server setup supports multi-GPU parallelism.
Precision / DTypeData type used for calculations.autoOverride if you want specific precision (e.g., FP16).
Prefix cachingReuses prompt prefixes across requests.OffEnable for repeated prompts to improve speed.

Sampling controls

SettingDescriptionDefaultWhen to adjust
TemperatureControls randomness. 0 = deterministic, higher = more random.1.0Lower for predictable outputs, higher for creativity.
Top-p (nucleus sampling)Probability cutoff for token selection.0.9Lower to restrict randomness, higher to allow more diverse tokens.
Top-kLimits token selection to top-k candidates.40Adjust for finer control of diversity in responses.
Repetition penaltyPenalizes repeated tokens.1.2Increase to reduce repetition in outputs.

Optimization settings

SettingDescriptionDefaultWhen to adjust
Enforce eagerForces eager execution instead of graph mode.OffOnly enable if debugging or if your workload needs it.

Best practices

  • Stick with defaults unless you have a clear reason to change.
  • Increase context length carefully; it uses significantly more memory.
  • Use quantization to run larger models on smaller GPUs, but test accuracy.
  • Tune sampling parameters for your application (e.g., deterministic chatbots vs. creative writing).