-
Notifications
You must be signed in to change notification settings - Fork 4
docs: bootstrap first version of customizer plugin docs #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gabwow
wants to merge
2
commits into
main
Choose a base branch
from
aalgo-223/update-ft-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| --- | ||
| title: "Using the NeMo Customizer Skill" | ||
| description: "" | ||
| --- | ||
| <a id="ft-customizer-skill"></a> | ||
|
|
||
| The `nemo-customizer` skill fine-tunes models on NeMo Platform from the command line. It drives the `nemo customization` CLI, which submits **SFT + LoRA** (as well as full-weight and distillation) training as GPU container jobs on the platform's Jobs service — training runs on the platform, not in your shell. Two backends ship in the repo: **`automodel`** (default, multi-GPU capable) and **`unsloth`** (single-GPU 4-bit LoRA). Both are `submit`-only. | ||
|
|
||
| <Note> | ||
|
|
||
| This page documents the plugin CLI workflow (`nemo customization automodel|unsloth submit`). The job JSON shape shown here (`training.training_type`, `training.finetuning_type`) is specific to these backends. | ||
|
|
||
| </Note> | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - A NeMo Platform deployment with a GPU execution profile (check with `nemo jobs list-execution-profiles`). | ||
| - The `nemo-customizer` plugin and a backend (`nemo-automodel` or `nemo-unsloth`) installed. | ||
| - A base model (Hugging Face repo) and a training dataset in mind. | ||
|
|
||
| ## Example: Fine-tune with Automodel | ||
|
|
||
| Run these commands from the `nemo-platform` repository root. Substitute your own model, dataset, and names. | ||
|
|
||
| ### 1. Authenticate | ||
|
|
||
| ```bash | ||
| uv run nemo auth login --unsigned-token --email admin@example.com | ||
| ``` | ||
|
|
||
| ### 2. Upload the dataset as a fileset | ||
|
|
||
| ```bash | ||
| uv run nemo files filesets create commonsense_qa --workspace default --purpose dataset --exist-ok | ||
| uv run nemo files upload /tmp/train.jsonl commonsense_qa --workspace default --remote-path train.jsonl | ||
| ``` | ||
|
|
||
| See [Manage Files](/documentation/get-started/core-concepts/manage-files) for dataset upload details. | ||
|
|
||
| ### 3. Register the base model | ||
|
|
||
| ```bash | ||
| uv run nemo files filesets create qwen3-1.7b --workspace default --purpose model --exist-ok \ | ||
| --storage '{"type":"huggingface","repo_id":"Qwen/Qwen3-1.7B","repo_type":"model","revision":"main"}' | ||
| uv run nemo models create qwen3-1.7b --workspace default --exist-ok \ | ||
| --input-data '{"name":"qwen3-1.7b","fileset":"default/qwen3-1.7b"}' | ||
| ``` | ||
|
|
||
| ### 4. Define the job | ||
|
|
||
| Write `/tmp/job.json` describing an SFT + LoRA job: | ||
|
|
||
| ```json | ||
| { | ||
| "model": "default/qwen3-1.7b", | ||
| "dataset": { "training": "default/commonsense_qa" }, | ||
| "training": { | ||
| "training_type": "sft", | ||
| "finetuning_type": "lora", | ||
| "lora": { "rank": 16, "alpha": 32 }, | ||
| "max_seq_length": 2048 | ||
| }, | ||
| "schedule": { "epochs": 1 }, | ||
| "batch": { "global_batch_size": 4, "micro_batch_size": 1 }, | ||
| "optimizer": { "learning_rate": 5e-5 }, | ||
| "output": { "name": "qwen3-1.7b-commonsense-qa-lora" } | ||
| } | ||
| ``` | ||
|
|
||
| ### 5. Submit and poll | ||
|
|
||
| ```bash | ||
| uv run nemo customization automodel submit /tmp/job.json --workspace default | ||
| uv run nemo jobs get-status automodel-<job-id> | ||
| ``` | ||
|
|
||
| Read `<job-id>` from the `name` field in the submit output. The job is finished when its top-level `status` is `completed`, `error`, or `cancelled`. | ||
|
|
||
| ## Going Further | ||
|
|
||
| - Use the `unsloth` backend for single-GPU 4-bit LoRA: `uv run nemo customization unsloth submit /tmp/job.json --workspace default`. | ||
| - Print the live job schema: `uv run nemo customization automodel explain` (or `unsloth explain`). | ||
| - For hyperparameters, batch sizing, multi-GPU, and distillation, see [Training Configuration](/documentation/customizer-reference/manage-customization-jobs/training-configuration). | ||
| - The full skill, including dataset conversion and troubleshooting references, lives in the repository at `plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/SKILL.md`. |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace the relative tutorial link with a canonical Fern nav URL.
Line 289 links to
tutorials/optimize-throughput.ipynb, which is a relative source-style path and can fail Fern link checks/build. Use the canonical/documentation/...route for that tutorial instead. As per coding guidelines, "Internal links must use canonical nav URLs like/documentation/get-started/core-concepts/workspaces, not relative.md/source paths.make docs-broken-linksis the check."🤖 Prompt for AI Agents
Source: Coding guidelines