Agent skill

Nemotron 3 Ultra Text2sql Lora

by NVIDIA-NeMo in NVIDIA-NeMo/Nemotron

Run the Nemotron-3 Ultra Text2SQL LoRA fine-tuning tutorial (NeMo Megatron-Bridge) end-to-end for the user on their SLURM cluster: data prep, distributed checkpoint conversion, and packed LoRA…

Apache-2.0Auto-check passedAI & LLM Engineering

Install Nemotron 3 Ultra Text2sql Lora

skills CLI
$ npx skills add NVIDIA-NeMo/Nemotron --skill nemotron-3-ultra-text2sql-lora -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install NVIDIA-NeMo/Nemotron nemotron-3-ultra-text2sql-lora --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/NVIDIA-NeMo/Nemotron.git skills-src && mkdir -p .claude/skills && cp -r skills-src/usage-cookbook/Nemotron-3-Ultra/lora-text2sql/nemo-megatron-bridge .claude/skills/nemotron-3-ultra-text2sql-lora && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nemotron-3-ultra-text2sql-lora
GitHub stars
2.1k
Token cost
~1.9k tokens
SKILL.md length
1,048 words
Files
12
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run the Nemotron-3 Ultra Text2SQL LoRA fine-tuning tutorial (NeMo Megatron-Bridge) end-to-end for the user on their SLURM cluster: data prep, distributed checkpoint conversion, and packed LoRA…

  • Works in 3 steps: Data prep — builds a BIRD Text2SQL… → Convert — distributed import of the… → LoRA fine-tune — packed-sequence LoRA…
  • The user wants to run this cookbook
  • SKILL.md covers What the tutorial does, What you must understand…, Information to gather from the… and How to run it, plus 3 more sections
  • Runs Python scripts from its folder

What it does

Nemotron 3 Ultra Text2sql Lora is an agent skill from NVIDIA-NeMo/Nemotron. Run the Nemotron-3 Ultra Text2SQL LoRA fine-tuning tutorial (NeMo Megatron-Bridge) end-to-end for the user on their SLURM cluster: data prep, distributed checkpoint conversion, and packed LoRA fine-tuning of the 550B hybrid Mamba-Transformer MoE, ending at a saved adapter. Use when the user wants to run this cookbook, fine-tune Nemotron-3 Ultra with LoRA, or adapt the notebook to their own cluster.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files (for example `README.md`, `TODO.md` and `base_sft_dataset.py`).

It sits in AI & LLM Engineering, covering Fine-tuning. It works with NVIDIA AI Platform. The repository describes itself as: Developer Asset Hub for NVIDIA Nemotron — A one-stop resource for training recipes, usage cookbooks, datasets, and full end-to-end reference examples to build with Nemotron models. The licence is Apache-2.0.

When your agent uses it

  • The user wants to run this cookbook
  • Fine-tune Nemotron-3 Ultra with LoRA
  • Adapt the notebook to their own cluster

Example prompts

  • “/nemotron-3-ultra-text2sql-lora”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Data prep — builds a BIRD Text2SQL training.jsonl from both the no-reasoning and reasoning
  2. Convert — distributed import of the Hugging Face base checkpoint into Megatron-Bridge format.
  3. LoRA fine-tune — packed-sequence LoRA training on the prepared data; saves a LoRA adapter.

What it can do on your machine

Read from SKILL.md and the folder at commit ca8c409. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nemotron 3 Ultra Text2sql Lora loads about 1.9k tokens when it runs. Until then it costs about 108 tokens; SKILL.md has 1,048 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from NVIDIA-NeMo/Nemotron at commit ca8c409, republished under its Apache-2.0 licence (© NVIDIA-NeMo). 1,048 words, ~1,894 tokens.

Download SKILL.mdSave it as .claude/skills/nemotron-3-ultra-text2sql-lora/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
nemotron-3-ultra-text2sql-lora
description
Run the Nemotron-3 Ultra Text2SQL LoRA fine-tuning tutorial (NeMo Megatron-Bridge) end-to-end for the user on their SLURM cluster: data prep, distributed checkpoint conversion, and packed LoRA fine-tuning of the 550B hybrid Mamba-Transformer MoE, ending at a saved adapter. Use when the user wants to run this cookbook, fine-tune Nemotron-3 Ultra with LoRA, or adapt the notebook to their own cluster.

Nemotron-3 Ultra Text2SQL LoRA — runbook for a coding agent

This skill helps you run the cookbook in this directory (mbridge_lora_cookbook.ipynb) on the user's behalf. The notebook is generic and ships with placeholders; your job is to gather the user's environment details, fill them in, launch the SLURM jobs, watch them, and report results.

What the tutorial does

Three steps, in order, each a SLURM job:

  1. Data prep — builds a BIRD Text2SQL training.jsonl from both the no-reasoning and reasoning splits, formatted with Ultra's tokenizer/chat template. Short CPU job.
  2. Convert — distributed import of the Hugging Face base checkpoint into Megatron-Bridge format. A multi-node GPU job (CPU import is not feasible for a 550B model).
  3. LoRA fine-tune — packed-sequence LoRA training on the prepared data; saves a LoRA adapter. A multi-node GPU job.

What you must understand before running

  • Ultra is a 550B-total / A55B-active hybrid Mamba-Transformer MoE. It does not fit on one node, so every heavy step is a multi-node SLURM job submitted with sbatch and run in a container via Pyxis/enroot. Run everything from a cluster login node where sbatch/squeue/ sacct are available.
  • Scale. At the shipped parallel settings, both convert and train need 48 GPUs. Node count is derived automatically as 48 / GPUS_PER_NODE (e.g. 12 nodes at 4 GPUs/node). The user's QOS must permit a job of that size — an interactive or small-node-capped QOS will not work.
  • Single config. Everything is driven by one file, config.env, which the notebook's setup cell generates from the values you fill in. Every step and every slurm/*.sbatch script sources it. You can run the notebook cell, or write config.env directly with the same keys.
  • One output root. WORKSPACE is the single output root; everything generated lands under $WORKSPACE/{base, dataprep, trained, cache/hf, logs}. The base checkpoint (HF_MODEL_PATH) is the only separate, read-only path.
  • The rhythm per step: a launch cell submits the job, a re-runnable check cell shows status (sacct/squeue), and a sanity cell confirms the expected output exists before you move on. Follow this loop; don't skip the sanity check.

Information to gather from the user

Before launching anything, ask the user for the following and confirm the prerequisites. Don't guess these — a wrong value wastes a large multi-node allocation. Prefer asking all of them up front in one batch.

How to reach the cluster

  • How do you connect to the login node where SLURM jobs are submitted (e.g. the ssh host)?
  • Is there a separate data-transfer host you prefer for large file moves?

SLURM settings

  • SLURM account to charge.
  • GPU partition and a QOS that allows a multi-node job of 48 / GPUS_PER_NODE nodes (not an interactive or small-node-capped QOS). Confirm the wall-clock limit is enough (convert is short; training is well under a couple of hours by default).
  • CPU partition and QOS for the short data-prep job.
  • GPUs per node on the target nodes (the tutorial targets GB200 at 4 GPUs/node; the node count derives from this).

Paths (all on a shared filesystem the compute nodes can mount)

  • WORKSPACE — the output root to create/use.
  • HF_MODEL_PATH — where the already-downloaded Ultra base checkpoint lives (read-only input). The tutorial does not download the base model; confirm it is present.
  • The shared-filesystem root to bind-mount into the container (must contain both WORKSPACE and HF_MODEL_PATH).

Container & credentials

  • The container image to use (path to a prepared image or a registry reference). The notebook ships a placeholder; this must be filled with a real Ultra-capable image.
  • A Hugging Face token so BIRD can be downloaded during data prep. The tutorial expects it at ${WORKSPACE}/cache/hf/token; ask the user to place it there (or provide it so you can), and reference it by path — never print or echo a token.

If the user has an environment-reference document for their cluster, ask for it first and pull these values from there instead of asking one by one.

Show full SKILL.md (411 more words)Show less

How to run it

  1. From the login node, cd into this cookbook directory (it must be on the shared filesystem).
  2. Fill the config: either edit the notebook's Environment & SLURM Setup cell and run it, or write config.env directly with the values gathered above. The setup cell has a guard that refuses to proceed while any placeholder (<...>) remains — make sure none are left.
  3. Run the three steps in order. For each: submit via the launch cell/sbatch, poll the check cell until the job reaches COMPLETED, then run the sanity cell.
  4. Poll, don't block. These are long-running multi-node jobs. Submit, then check back periodically with sacct/squeue — do not hold an interactive session open waiting, and do not stream logs live.

Verifying success per step

  • Data prep: $WORKSPACE/dataprep/training.jsonl exists and has many rows; a sampled record shows the Nemotron-3 chat template.
  • Convert: $WORKSPACE/base/latest_checkpointed_iteration.txt plus an iter_* checkpoint dir exist.
  • Train: under $WORKSPACE/trained/<experiment-name>/ there is a latest_checkpointed_iteration.txt and an iter_* adapter checkpoint; the training log shows the loss trending down and ends with a LORA_TRAIN_DONE marker.

Report per-step status and elapsed time (from sacct) and the final training loss.

Things already handled — do not change them

  • Synchronous checkpoint saving is set on purpose (async_save=False). Under some container runtimes the async-save path can hang; leave it as configured.
  • Parallelism / resharding. Convert uses one tensor-parallel layout and train uses another; only the tensor-parallel degree differs, so the converted checkpoint reshards cleanly on load. Don't retune these unless you change GPUS_PER_NODE, in which case keep the world size at 48 GPUs.
  • Packed sequences and the LoRA target modules (including the Mamba projections) come from the Ultra recipe — no need to configure them.
  • Steps are idempotent: data prep skips if training.jsonl exists; convert skips if the checkpoint already exists. Safe to re-run.

Expected friction (so you don't misread it)

  • The first training iteration is slow — graph capture and MoE warmup can take on the order of ~15 minutes with no log output and the GPUs at 100%. This is normal; do not cancel the job. Later iterations are fast.
  • A multi-node GPU job that, in the rare case, sits at "loading distributed checkpoint" with zero progress for far longer than the warmup window can be cancelled and resubmitted; a fresh allocation usually clears it.
  • Benign noise in the convert log (framework stack-trace fragments, bare NCCL version lines) is not a crash — judge success by the job state and the sanity check, not by log chatter.

© NVIDIA-NeMo, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files in usage-cookbook/Nemotron-3-Ultra/lora-text2sql/nemo-megatron-bridge of NVIDIA-NeMo/Nemotron.

  • SKILL.md
  • README.md
  • TODO.md
  • base_sft_dataset.py
  • dataprep.py
  • dataset_bird.py
  • dataset_bird_reasoning.py
  • mbridge_lora_cookbook.ipynb
  • slurm/convert.sbatch
  • slurm/dataprep.sbatch
  • slurm/train_lora.sbatch
  • train_lora.py

Open the folder on GitHubat commit ca8c409

Compare with similar skills

Nemotron 3 Ultra Text2sql Lora next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nemotron 3 Ultra Text2sql Lora compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nemotron 3 Ultra Text2sql Lora this skillNVIDIA-NeMo/Nemotron2.1k—~1.9kAutomated safety check: PassApache-2.0
Setup Workshop Nemoclawbrevdev/workshop-build-an-agent146—~5.2kAutomated safety check: PassApache-2.0
Defect Image Generation with Cosmos AnomalyGenNVIDIA/skills3.5k—~5kAutomated safety check: NotesApache-2.0
OpenVLA-OFT Fine-TuningOrchestra-Research/AI-Research-SKILLs13k—~3.7kAutomated safety check: PassMIT
Nemotron CustomizeNVIDIA/skills3.5k1 repos~4.1kAutomated safety check: PassApache-2.0
Nemo Mbridge Recipe RecommenderNVIDIA/skills3.5k—~4.1kAutomated safety check: PassApache-2.0

Similar skills

  • Setup Workshop Nemoclaw

    brevdev/workshop-build-an-agent

    Set up the NVIDIA "Build an Agent" DevX workshop as a working JupyterLab environment from INSIDE a locked-down OpenShell/NemoClaw sandbox, and hand the user the token URL + access commands.

    146 GitHub stars~5.2k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Orchestrates defect image generation for PCBA, metal surface and glass inspection with NVIDIA Cosmos AnomalyGen on OSMO, from cold-start Day 0 to real-photo Day 1 labeling.

    3.5k GitHub stars~5k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • OpenVLA-OFT Fine-Tuning

    Orchestra-Research/AI-Research-SKILLs

    Fine-tunes and evaluates OpenVLA-OFT and OFT+ robot policies with LoRA and continuous action heads on LIBERO simulation and ALOHA real-robot setups.

    13k GitHub stars~3.7k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Nemotron Customize

    NVIDIA/skills

    Official

    Plan, configure, and chain repo-native Nemotron customization steps into single-step or multi-step pipelines: curation, translation, SFT/PEFT (AutoModel or Megatron-Bridge), pretraining/CPT, RL…

    3.5k GitHub starsUsed in 1 repo~4.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Recommend and customize Megatron Bridge library and benchmark recipes for a user's model, GPU count, hardware, sequence length, and pretrain/SFT/PEFT goal.

    3.5k GitHub stars~4.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Official

    Masked Auto-Encoder (MAE) for self-supervised pretraining and fine-tuning.

    3.5k GitHub stars~2.9k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes

More from NVIDIA-NeMo/Nemotron

All 10 skills in this repo
  • Nemotron Add Model

    NVIDIA-NeMo/Nemotron

    Onboard a new model family (Nemotron or third-party) into skills/ — paper chunks, recipe summaries, context packs, and model card.

    2.1k GitHub stars~2.2k tokensUpdated 3 days ago
    Auto-check passed
  • Nemotron Add Pattern

    NVIDIA-NeMo/Nemotron

    Add a cross-cutting decision pattern under src/nemotron/steps/patterns/.

    2.1k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Nemotron Add Step

    NVIDIA-NeMo/Nemotron

    Add a new step under src/nemotron/steps/<category/<stepid/ — manifest (step.toml), runner glue, configs, and per-step README.md.

    2.1k GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • Nemotron Customizer Airgap

    NVIDIA-NeMo/Nemotron

    Prepare, validate, build, and use Nemotron Customizer airgap image bundles for offline clusters.

    2.1k GitHub stars~1.2k tokensUpdated 3 days ago
    Auto-check passed
  • Nemotron Nano3

    NVIDIA-NeMo/Nemotron

    Reference desk for Nemotron 3 Nano / Llama-Nemotron Nano 3 — architecture, training data, recipes, evaluation, quantization, deployment.

    2.1k GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed
  • Nemotron Super3

    NVIDIA-NeMo/Nemotron

    Reference desk for NVIDIA Nemotron 3 Super — architecture, training data, recipes (pretrain/SFT/RL/eval/quantization), and deployment notes.

    2.1k GitHub stars~2.4k tokensUpdated 3 days ago
    Auto-check passed

Questions about Nemotron 3 Ultra Text2sql Lora

What does Nemotron 3 Ultra Text2sql Lora do?

Run the Nemotron-3 Ultra Text2SQL LoRA fine-tuning tutorial (NeMo Megatron-Bridge) end-to-end for the user on their SLURM cluster: data prep, distributed checkpoint conversion, and packed LoRA…. Nemotron 3 Ultra Text2sql Lora is an agent skill from NVIDIA-NeMo/Nemotron. Run the Nemotron-3 Ultra Text2SQL LoRA fine-tuning tutorial (NeMo Megatron-Bridge) end-to-end for the user on their SLURM cluster: data prep, distributed checkpoint conversion, and packed LoRA fine-tuning of the 550B hybrid Mamba-Transformer MoE, ending at a saved adapter.

When should I use Nemotron 3 Ultra Text2sql Lora?

Nemotron 3 Ultra Text2sql Lora fits situations like: the user wants to run this cookbook; fine-tune Nemotron-3 Ultra with LoRA; adapt the notebook to their own cluster.

How do I install Nemotron 3 Ultra Text2sql Lora in Claude Code?

Run `npx skills add NVIDIA-NeMo/Nemotron --skill nemotron-3-ultra-text2sql-lora -a claude-code`. Or copy the skill folder (usage-cookbook/Nemotron-3-Ultra/lora-text2sql/nemo-megatron-bridge in NVIDIA-NeMo/Nemotron) into .claude/skills/nemotron-3-ultra-text2sql-lora in your project. Claude Code loads it when a task matches its description.

How do I install Nemotron 3 Ultra Text2sql Lora in Codex?

Run `npx skills add NVIDIA-NeMo/Nemotron --skill nemotron-3-ultra-text2sql-lora -a codex`. Or copy the skill folder (usage-cookbook/Nemotron-3-Ultra/lora-text2sql/nemo-megatron-bridge in NVIDIA-NeMo/Nemotron) into .agents/skills/nemotron-3-ultra-text2sql-lora in your project. Codex loads it when a task matches its description.

Can I use Nemotron 3 Ultra Text2sql Lora in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NVIDIA-NeMo/Nemotron --skill nemotron-3-ultra-text2sql-lora -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nemotron-3-ultra-text2sql-lora, .gemini/skills/nemotron-3-ultra-text2sql-lora, .github/skills/nemotron-3-ultra-text2sql-lora and .opencode/skills/nemotron-3-ultra-text2sql-lora in your project.

What does Nemotron 3 Ultra Text2sql Lora need to run?

Going by SKILL.md and its folder, Nemotron 3 Ultra Text2sql Lora needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Nemotron 3 Ultra Text2sql Lora access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Nemotron 3 Ultra Text2sql Lora safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Nemotron 3 Ultra Text2sql Lora use?

Nemotron 3 Ultra Text2sql Lora is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nemotron 3 Ultra Text2sql Lora use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Nemotron 3 Ultra Text2sql Lora?

Skills that share tags, products or a category with Nemotron 3 Ultra Text2sql Lora: Setup Workshop Nemoclaw (brevdev/workshop-build-an-agent, 146 stars), Defect Image Generation with Cosmos AnomalyGen (NVIDIA/skills, 3.5k stars), OpenVLA-OFT Fine-Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Nemotron Customize (NVIDIA/skills, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nemotron 3 Ultra Text2sql Lora?

NVIDIA-NeMo (a GitHub organization) maintains it in NVIDIA-NeMo/Nemotron, which has 2,139 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 6, 2026.

Source: NVIDIA-NeMo/Nemotron on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.