Repository navigation
refactor: remove debug env switches from production code - #4396
Merged
Merged
Conversation
junmo-kim
added a commit
to junmo-kim/omlx
that referenced
this pull request
Oct 9, 2026
jundot#4396 removed debug env switches from production code. Remove the OMLX_MTP_COMMAND_BUFFER_CAPS override added here as well, so the raised caps follow only the target type and the GPU gate.
2 of 3 tasks
jason5545
added a commit
to jason5545/omlx
that referenced
this pull request
Oct 10, 2026
衝突:scheduler 的 packed prefill 保留 pre_pool_bytes;server 用上游 _merge_chat_template_kwargs 後再套 sub-key enable_thinking 覆寫; qwen4_exp 保留 float32 QSA 鍵庫、收上游批次 QSA 旗標並拿掉上游已移除的 三個 env 開關;moe_offload 與 QSA 測試兩邊都留。 上游 jundot#4396 移除 env 開關時一併刪掉 import os 與 moe_expert_offload._env_int, 本地開關仍在用:batch_generator、scheduler、process_memory_enforcer 補回 import os,_env_int 移進 deepseek_v4/moe_offload。test_server 的 jundot#4336 新測試 改為預期本地傳入的 request_policy。
3 tasks
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.
Production code read about 150
OMLX_*environment variables that only served A/B measurement, kill switches or tuning during development. This PR removes them and fixes each value at the default the code already used, so a server with none of them set behaves the same. Kernel choice now comes only from hardware gates, shape checks and model settings.Changes
moe_expert_offload_enabled,moe_gate_up_fusion_enabled,qwen35_ane_prefill_enabled). Only the env override is gone.OMLXConfigand its sub-configs inomlx/config.pywere not used by the server. Onlyparse_sizeremains.Still read from the environment
settings.py(OMLX_HOST,OMLX_PORT, ...) andOMLX_HEADLESS.OMLX_DECODE_BURST_*,OMLX_BASE_PATH,OMLX_MCP_CONFIG,OMLX_QWEN35_ANE_COMPILE_CACHE, ...).OMLX_MCDMA_RPCD_SOCKET,OMLX_MCDMA_RPC_LIBRARY,OMLX_DSH_*).OMLX_DISTRIBUTED_REQUEST_READ_TIMEOUT. Rank zero sends no keepalive for non-stream requests, so this is still the only way to allow one longer than 300s (Distributed request_read_timeout is hard-coded to 300s and prefill emits no heartbeats, so a long prefill gets killed #2712).Validation
Greedy smoke with Qwen3.6-35B-A3B-oQ4-mtp, main against this branch, an 8K-token prompt and a 1.6K-token code prompt, 256 tokens each, two rounds per arm:
With MTP on, the draft depth follows measured step times, so main's own greedy output changes between rounds. Speed is the same.