feat(studio): add model selector to Safe Synthesizer creation [ASTD-19]#874
Open
marcusds wants to merge 2 commits into
Open
feat(studio): add model selector to Safe Synthesizer creation [ASTD-19]#874marcusds wants to merge 2 commits into
marcusds wants to merge 2 commits into
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds pretrained-model constants and defaults, extends the Safe Synthesizer schema, renders a model selector in advanced parameters, and tests default, option-list, and selection-update behavior. ChangesPretrained Model Selection
Sequence Diagram(s)sequenceDiagram
participant User
participant AdvancedParameters
participant ControlledSelect
participant FormState
User->>AdvancedParameters: open Training Data Configuration
AdvancedParameters->>ControlledSelect: render supported model options
ControlledSelect->>FormState: initialize default pretrained_model
User->>ControlledSelect: select another model
ControlledSelect->>FormState: update pretrained_model
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/packages/studio/src/routes/SafeSynthesizerNewRoute/schema.ts`:
- Line 106: Update the pretrained_model field in the schema to validate against
the same supported-model tuple used by the selector, rather than accepting any
string. Reuse the existing PRETRAINED_MODEL_OPTIONS symbol from the
SafeSynthesizerNewRoute implementation and preserve optionality.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: d5be11d0-bd74-46ea-a012-4a9257b80158
📒 Files selected for processing (4)
web/packages/studio/src/routes/SafeSynthesizerNewRoute/components/AdvancedParameters.test.tsxweb/packages/studio/src/routes/SafeSynthesizerNewRoute/components/AdvancedParameters.tsxweb/packages/studio/src/routes/SafeSynthesizerNewRoute/constants.tsweb/packages/studio/src/routes/SafeSynthesizerNewRoute/schema.ts
Contributor
|
Add a model dropdown under Training Data Configuration in the Safe Synthesizer creation flow, bound to spec.config.training.pretrained_model. Options: SmolLM3-3B (default), Mistral-7B-Instruct-v0.3, TinyLlama-1.1B. ASTD-19 Signed-off-by: mschwab <[email protected]>
Validate against PRETRAINED_MODEL_OPTIONS instead of any string so programmatic form values cannot submit unsupported model IDs. Signed-off-by: mschwab <[email protected]>
marcusds
force-pushed
the
astd-19-add-model-selector-training-data-config/mschwab
branch
from
July 23, 2026 21:00
945529a to
1c6c2b6
Compare
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
Adds a model dropdown under Training Data Configuration in the Safe Synthesizer creation flow (ASTD-19). Bound to
spec.config.training.pretrained_model.Options (in ticket order):
HuggingFaceTB/SmolLM3-3B(default)mistralai/Mistral-7B-Instruct-v0.3TinyLlama/TinyLlama-1.1B-Chat-v1.0Info tooltip: "Model that gets fine-tuned to generate synthetic data."
Changes
constants.ts—PRETRAINED_MODEL_OPTIONS+DEFAULT_PRETRAINED_MODEL.schema.ts— addedpretrained_modelto the training config + default. Flows into the submitted job payload automatically.AdvancedParameters.tsx—ControlledSelectat the top of the Training Data Configuration section.AdvancedParameters.test.tsx— tests for render, default (SmolLM3), option order, and selection updating the config.Acceptance criteria
Note
Backend
pretrained_modelis a free-form string; only SmolLM3-3B is currently pre-provisioned as a model fileset (plugins/nemo-safe-synthesizer/scripts/setup_model_filesets.py). Mistral-7B and TinyLlama resolve via HF at job time and may require provisioning before they run reliably.Testing
pnpm --filter nemo-studio-ui test src/routes/SafeSynthesizerNewRoute→ 71 passed.Summary by CodeRabbit
New Features
Bug Fixes
Tests