Repository navigation
SWF(bug): return config errors for invalid nemotron/minimax schedules - #83
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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
Malformed nemotron
hybrid_override_patternentries and MiniMaxattn_type_listentries now return config errors throughparse_configinstead of panicking.Root cause:
parse_nemotron_husedpanic!for an unknown schedule character, andparse_minimax_m2usedpanic!for any numericattn_type_listentry other than1. Both paths are reachable from the normal config load path when a model config contains an unsupported schedule value.Test plan
Try it (CPU):
ATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo test -p atlas-core --lib rejects_unknown_ -- --nocaptureparse_config:nemotron_h_rejects_unknown_hybrid_override_pattern_charpanicked atdispatch_nemotron.rs:63withUnknown hybrid_override_pattern char: 'X'.minimax_m2_rejects_unknown_attn_type_list_entrypanicked atminimax.rs:63withminimax_m2: unexpected attn_type_list entry 2 — only 1 (full) is supported in M1.rejects_unknown_→3 passed; fullcargo test -p atlas-core --lib→259 passed; 0 failed.cargo fmt --all -- --checkATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo clippy --workspace --testsbash scripts/check-license-headers.sh,typosparse_configpath.Notes for reviewers
The fix only replaces the two confirmed panic paths with
anyhowerrors; valid nemotron/minimax schedules are unchanged. MiniMax's existing non-u64 fallback (unwrap_or(1)) is preserved, so this PR does not change handling for non-numeric entries.CLA
Implemented in session Return errors for invalid nemotron/minimax schedules
Review with Devin · Open in Devin Desktop