Skip to content

Move config explorer into neuralnav package#146

Merged
jgchn merged 8 commits intollm-d-incubation:mainfrom
jgchn:ce1
Apr 1, 2026
Merged

Move config explorer into neuralnav package#146
jgchn merged 8 commits intollm-d-incubation:mainfrom
jgchn:ce1

Conversation

@jgchn
Copy link
Copy Markdown
Collaborator

@jgchn jgchn commented Mar 31, 2026

Fixes #131
Closes #132
Closes #133

jgchn added 5 commits March 31, 2026 19:52
Signed-off-by: Jing Chen <jing.chen2@ibm.com>
Signed-off-by: Jing Chen <jing.chen2@ibm.com>
Fix type annotation errors in capacity_planner.py, gpu_recommender.py,
planner_cli.py, and test_capacity_planner.py to pass mypy --warn_return_any
and ruff checks without suppression:

- capacity_planner: use Any for dynamic AutoConfig attributes (get_text_config,
  get_quantization_config, get_model_config_from_hf return Any); fix float/int
  annotation mismatches (precision_in_bytes, memory accumulator, bytes_to_gib
  signature, total_kv_blocks cast); add assert guards for MLA None fields;
  replace reduce(list.__add__) with set comprehension; fix missing return in
  get_quant_bytes; rename local vars to avoid AutoConfig re-assignment confusion
- gpu_recommender: annotate dict[str, Any] return types, wrap json.load() in
  dict(), cast float for cost calculation, init dicts as {} not None
- planner_cli: annotate result/error_groups dicts as dict[str, Any]
- test_capacity_planner: add noqa B017 for unknowable HF exception type

Assisted-by: Claude <noreply@anthropic.com>
Signed-off-by: Jing Chen <jing.chen2@ibm.com>
Assisted-by: Claude <noreply@anthropic.com>
Signed-off-by: Jing Chen <jing.chen2@ibm.com>
@jgchn jgchn requested review from anfredette and namasl April 1, 2026 13:21
Copy link
Copy Markdown
Collaborator

@anfredette anfredette left a comment

Choose a reason for hiding this comment

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

Overall, this looks good, but a few more changes are needed (mainly due to my pr #147 being merged) :

  1. Rebase on main, update all neuralnav → planner imports
  2. Capacity_Planner doesn't show up in the sidebar. To fix that, move ui/Capacity_Planner.py → ui/pages/1_Capacity_Planner.py (and fix the Path reference).
  3. Mention #132 in PR body (UI integration is addressed)
  4. Mention #133 in PR body (config_explorer directory is removed)
  5. Fix the pyproject.toml entry point module path
  6. Preserve config_explorer/README.md as docs/CONFIG_EXPLORER.md per #133 until we fully integrate it into the other docs
  7. Fix the monkeypatch.setattr string in test_capacity_planner.py

jgchn added 3 commits April 1, 2026 10:34
Signed-off-by: Jing Chen <jing.chen2@ibm.com>
Signed-off-by: Jing Chen <jing.chen2@ibm.com>
Signed-off-by: Jing Chen <jing.chen2@ibm.com>
@jgchn jgchn requested a review from anfredette April 1, 2026 15:26
Copy link
Copy Markdown
Collaborator

@anfredette anfredette left a comment

Choose a reason for hiding this comment

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

I tested this before your last commit. It all looks good to me now.

I'm approving it. Do we want @namasl to look at it before we merge it?

@jgchn jgchn merged commit e37bea2 into llm-d-incubation:main Apr 1, 2026
5 checks passed
@jgchn jgchn deleted the ce1 branch April 1, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants