Repository navigation
ollama, llama-cpp, vllm: per-platform tuning in .env.example - #16
Merged
Merged
Conversation
- vllm: drop the VLLM_* assignments from config/entrypoint.sh. They were never exported, so vLLM never saw them, and three of the four no longer exist in vLLM (now --moe-backend / --linear-backend). They live in the Spark section of .env.example instead, where env_file delivers them. - Add tuned, commented-out settings for NVIDIA, DGX Spark, Jetson Thor, AMD Strix, Intel Arc and CPU to each runner's .env.example. - llama-cpp: stop forcing LLAMA_ARG_N_GPU_LAYERS=999 in the GPU overrides so llama.cpp's automatic --fit can size GPU layers to free memory; set ZES_ENABLE_SYSMAN=1 on Arc so SYCL reports free VRAM to --fit. - Keep inline comments off empty-value lines: Compose reads `VAR= # note` as VAR="# note". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
config/entrypoint.shsetVLLM_USE_FLASHINFER_MOE_FP4,VLLM_MOE_BACKEND,VLLM_FP4_BACKENDandVLLM_MLA_DISABLEwithoutexport, so vLLM never saw them. Three of the four also no longer exist in vLLM: they are now the--moe-backend/--linear-backendflags. The assignments are removed. The Spark section of.env.examplenow hasVLLM_MLA_DISABLE=1, aVLLM_ARGSline with--moe-backend marlin --linear-backend cutlass, and the old names for older builds, all commented out..env.examplenow has a commented-out block for NVIDIA discrete GPUs, DGX Spark, Jetson Thor, AMD Strix (Halo and Point), Intel Arc and CPU. Uncomment the block for your hardware. vLLM has oneVLLM_ARGSline per platform, because it is a single variable. Every variable and flag was checked against current ollamaenvconfig, llama.cppcommon/arg.cppand ggml backends, and vLLMenvs.py/arg_utils.py.--fit on,-ngl -1). TheLLAMA_ARG_N_GPU_LAYERS=999default that ollama, llama-cpp, vllm: add per-hardware compose overrides #15 added to the GPU overrides turned that off, so this removes it.arc.ymlsetsZES_ENABLE_SYSMAN=1so SYCL reports free VRAM to--fit.VAR= # noteasVAR="# note". Empty-value lines carry their comment on the line above instead.Testing
.env.exampleinto a temporary.envand randocker compose configfor every hardware override: no errors, and no values containing comment text.validate_compose.pyreports only the three!overrideerrors already on main.sh -npasses on the entrypoint.🤖 Generated with Claude Code
Note
Low Risk
Mostly documentation and example env; runtime impact is dropping llama-cpp's pinned GPU layers default and removing ineffective vLLM entrypoint env vars, which should improve defaults rather than break production configs that already set overrides in
.env.Overview
Adds commented, hardware-specific tuning blocks to
.env.examplefor llama-cpp, ollama, and vllm (NVIDIA discrete, DGX Spark, Jetson Thor, AMD Strix Halo/Point, Intel Arc, CPU). READMEs now point users to uncomment the block for their platform.llama-cpp: Drops the compose default
LLAMA_ARG_N_GPU_LAYERS=999from GPU override files so server memory fitting (--fit) can auto-size GPU layers and context; Intel Arc compose setsZES_ENABLE_SYSMAN=1so SYCL can report free VRAM for fitting. Example env documents fit-related vars and many server flags.vLLM: Removes unused/non-exported MoE/MLA assignments from
config/entrypoint.sh(Spark tuning moves to commented.env.exampleviaVLLM_ARGSand optional legacy env names). RestructuresVLLM_ARGSguidance with one suggested line per platform.Ollama: Reorganizes
.env.examplewith the same platform sections (context, parallel, KV cache, GPU overhead, etc.) without compose behavior changes beyond documentation.Reviewed by Cursor Bugbot for commit 2e44106. Bugbot is set up for automated code reviews on this repo. Configure here.