Skip to content

SWF(bug): return config errors for invalid nemotron/minimax schedules - #83

Merged
maplepaladin73 merged 1 commit into
mainfrom
devin/1795401162-config-schedule-errors
Nov 23, 2026
Merged

maplepaladin73 merged 1 commit into
mainfrom
devin/1795401162-config-schedule-errors

Conversation

@maplepaladin73

@maplepaladin73 maplepaladin73 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Malformed nemotron hybrid_override_pattern entries and MiniMax attn_type_list entries now return config errors through parse_config instead of panicking.

Root cause: parse_nemotron_h used panic! for an unknown schedule character, and parse_minimax_m2 used panic! for any numeric attn_type_list entry other than 1. 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_ -- --nocapture
  • Before: both new regression tests panicked through parse_config:
    • nemotron_h_rejects_unknown_hybrid_override_pattern_char panicked at dispatch_nemotron.rs:63 with Unknown hybrid_override_pattern char: 'X'.
    • minimax_m2_rejects_unknown_attn_type_list_entry panicked at minimax.rs:63 with minimax_m2: unexpected attn_type_list entry 2 — only 1 (full) is supported in M1.
  • After: rejects_unknown_ → 3 passed; full cargo test -p atlas-core --lib → 259 passed; 0 failed.
  • cargo fmt --all -- --check
  • ATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo clippy --workspace --tests
  • bash scripts/check-license-headers.sh, typos
  • Added regression tests through the public parse_config path.
  • Untested: live model load / GPU validation (parser-only CPU change).

Notes for reviewers

The fix only replaces the two confirmed panic paths with anyhow errors; 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


Software Factory opened this PR for Robert
Implemented in session Return errors for invalid nemotron/minimax schedules
Review with Devin · Open in Devin Desktop


Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@maplepaladin73
maplepaladin73 merged commit 44ec593 into main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant