testing
Skill1k starsChanged 20 days agoApache-2.0View on GitHub
Testing reference for NeMo AutoModel — unit and functional test layout, tier semantics (L0/L1/L2), running tests locally, adding or disabling tests, and pytest conventions. Use when adding, running, or disabling tests; debugging a test failure; choosing the right test tier; understanding L0 vs L1 vs L2; handling flaky tests; 'add a test', 'which tier', 'functional test layout'.
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 171 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
Place the file under tests/unit_tests/<domain>/test_<name>.py.
- Distinctive: line 61
Keep configs tiny: small hidden dims, 1-2 layers, short sequences.
- Very specific: line 64
No foreign
setattron config dataclasses in tests: When applying overrides via setattr(config_obj, key, value), always guard first: - Very specific: line 78
Place the test under tests/functional_tests/.
- Distinctive: line 84
Keep unit test configs tiny: small hidden dims, 1-2 layers, short sequences.
- Very specific: line 87
Use --master_port to avoid collisions.
“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Testing
Directory Layout
tests/
unit_tests/ # fast, isolated, no GPU required
functional_tests/ # GPU-required integration tests
ci_tests/ # executed in CI pipeline onlyUnit tests must be CPU-compatible. Functional tests require at least one GPU.
CI test scripts live in tests/ci_tests/ and should not be run locally
unless reproducing a CI failure.
Test Tiers
| Tier | Trigger | Blocking |
| L0 | Every PR | Yes — PR cannot merge if L0 fails |
| L1 | PRs with needs-more-tests label, scheduled | Yes |
| L2 | Scheduled only | Yes (when triggered) |
Prefer unit tests over functional tests. CI GPU resources are limited; every functional test slot has a real cost.
Running Tests Locally
Unit Tests (CPU)
pytest tests/unit_tests/ -vFunctional Tests (GPU Required)
pytest tests/functional_tests/ -vThese require at least one GPU. Mark GPU tests with:
@pytest.mark.gpuor:
@pytest.mark.skipif(not torch.cuda.is_available(), reason="requires GPU")Adding a Unit Test
- Place the file under
tests/unit_tests/<domain>/test_<name>.py. - Keep configs tiny: small hidden dims, 1-2 layers, short sequences.
- Run locally:
pytest tests/unit_tests/<your_test>.py -v
No foreign setattr on config dataclasses in tests. When applying
overrides via setattr(config_obj, key, value), always guard first:
if not hasattr(config_obj, key):
raise ValueError(f"Config has no field '{key}'")
setattr(config_obj, key, value)Setting a non-existent attribute silently creates a phantom field — the test passes but the recipe fails for a real user.
Adding a Functional Test
- Place the test under
tests/functional_tests/. - Functional tests are capped at 2 GPUs in CI.
- Set
CUDA_VISIBLE_DEVICESexplicitly for multi-GPU tests.
Tips
- Keep unit test configs tiny: small hidden dims, 1-2 layers, short sequences.
- Set
CUDA_VISIBLE_DEVICESexplicitly when running multi-GPU tests locally. - Watch for port conflicts when running multiple
torchrunprocesses. Use--master_portto avoid collisions.
Trending
More talk lately.about the whole repository
Who's talking about NVIDIA-NeMo/Automodel
- NVIDIA/Megatron-LM“DeepSeek-V4 training support”GitHub · Apr 24, 2026 · 27 reactions
- THUDM/slime“[Roadmap][Megatron, VLM] Support VLM”GitHub · Dec 12, 2025 · 6 reactions
- NVIDIA-NeMo/RL“Automodel bump up + Refactor to use the generic CP interface to be provided by Automodel”GitHub · Jul 23, 2026 · 1 reactions
- NVIDIA-NeMo/Megatron-Bridge“[model] Add verified Nemotron 3 Nano 4B CPT support”GitHub · Jul 20, 2026 · 1 reactions
- NVIDIA-NeMo/RL“chore: major version bump (torch 2.8, vllm 0.11, ray 2.49) & SP fixes”GitHub · Oct 10, 2025 · 1 reactions
The biggest 5 of 43 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 43
Talked about on GitHub (43 times).
On GitHub · 43
- Apr 24, 2026DeepSeek-V4 training support — NVIDIA/Megatron-LM27 reactions · 5 comments
- Dec 12, 2025[Roadmap][Megatron, VLM] Support VLM — THUDM/slime6 reactions · 2 comments
- Jul 23, 2026Automodel bump up + Refactor to use the generic CP interface to be provided by Automodel — NVIDIA-NeMo/RL1 reaction · 1 comment
- Jul 20, 2026[model] Add verified Nemotron 3 Nano 4B CPT support — NVIDIA-NeMo/Megatron-Bridge1 reaction · 1 comment
- Oct 10, 2025chore: major version bump (torch 2.8, vllm 0.11, ray 2.49) & SP fixes — NVIDIA-NeMo/RL1 reaction · 41 comments
38 more on GitHub
- Oct 16, 2026fix(automodel): release MoE dispatcher state before colocated offload — NVIDIA-NeMo/RL0 reactions · 4 comments
- Oct 15, 2026feat(speechlm): add native Automodel GSPO ASR recipe — NVIDIA-NeMo/RL0 reactions · 13 comments
- Oct 15, 2026feat(speechlm): support native RL checkpoints and frozen CTC export — NVIDIA-NeMo/Speech0 reactions · 20 comments
- Oct 15, 2026feat(audio): align ASR scoring and support explicit Ray launches — NVIDIA-NeMo/Skills0 reactions · 1 comment
- Oct 14, 2026fix(cutedsl): support CUTLASS DSL 4.4.2 and 4.6.2 — SandAI-org/MagiAttention0 reactions · 2 comments
- Oct 13, 2026An old, unused torchao install makes every LoRA/OFT injection fail with ImportError (e.g. on Colab and Kaggle) — huggingface/peft0 reactions · 6 comments
- Sep 28, 2026fix(build): use C++20 for PyTorch extensions — SandAI-org/MagiAttention0 reactions · 3 comments
- Sep 28, 2026Fix SpeechLM Automodel precision and vLLM audio handling — NVIDIA-NeMo/Speech0 reactions · 8 comments
- Sep 23, 2026chore(customizer): add magi_attention dependency in automodel — NVIDIA-NeMo/nemo-helix0 reactions · 2 comments
- Sep 16, 2026docs: reference NeMo AutoModel and bring the recipe notes up to date — mraad/feln-lora0 reactions · 5 comments
- Sep 16, 2026fix(customizer): install seed deps in grpo env + dtensor v2 ckpt crash — NVIDIA-NeMo/nemo-helix0 reactions · 2 comments
- Sep 16, 2026feat(speechlm2): add DFlash and DFlash2 training for SALM — NVIDIA-NeMo/Speech0 reactions · 9 comments
- Sep 9, 2026build(deps-dev): bump nvidia-modelopt from 0.44.0 to 0.46.0 — HuipengHuang/verl-baseline0 reactions
- Sep 1, 2026[Feature Request] Add text-only GRPO support for Qwen3.8-Flash-Next (qwen4_exp) — verl-project/verl0 reactions
- Aug 4, 2026Add training submodules for RunPod environment — witchking999/muramasaIII0 reactions
- Aug 1, 2026[feature] Support DSpark speculative decoding draft training — NVIDIA-NeMo/Megatron-Bridge0 reactions · 5 comments
- Jul 31, 2026[feature] DeepSeekV4 + FP8 RL — NVIDIA-NeMo/labs-molt0 reactions
- Jul 30, 2026Integrate NeMo Automodel Qwen3.5-35B-A3B recipe with MFSDP v2 — NVIDIA/Megatron-LM0 reactions
- Jul 17, 2026cuDNN fused-MHA SDPA backend intermittently fails with "mha_graph.execute(...).is_good() == false" during Qwen3-VL image+text inference on H200 / cuDNN 9.20 — pytorch/pytorch0 reactions · 5 comments
- Jul 16, 2026[DSpark] Add dspark dense draft model — sgl-project/sglang0 reactions · 2 comments
- Jun 11, 2026feat(speechlm2): add Multi-Token Prediction (MTP) training support to SALMAutomodel — NVIDIA-NeMo/Speech0 reactions · 2 comments
- May 14, 2026CUDA codegen LogFatals on `boolx8` from sparse-MLA bwd kernel on B300/sm_103 (TileLang 0.1.9) — tile-ai/tilelang0 reactions · 1 comment
- May 10, 2026fix(automodel): support combined projection tensor sync — NVIDIA-NeMo/RL0 reactions · 1 comment
- Apr 24, 2026Track DeepSeek V4 upstream dependency blockers — zpqiu/RL0 reactions · 3 comments
- Apr 24, 2026Support DSV4 Flash — NVIDIA-NeMo/RL0 reactions · 1 comment
- Apr 23, 2026Qwen3.5 Automodel path is slower than MCore because flash-linear-attention (FLA) is not installed by default — NVIDIA-NeMo/RL0 reactions · 5 comments
- Apr 23, 2026Qwen3.5 MoE Automodel path does not use FP32 master weights by default, causing slower convergence — NVIDIA-NeMo/RL0 reactions
- Apr 20, 2026fix(pre-commit): preserve matched filenames in `no-underscore-md` hook — NVIDIA-NeMo/FW-CI-templates0 reactions
- Apr 17, 2026Track Qwen3.5-related issues — NVIDIA-NeMo/RL0 reactions
- Feb 10, 2026Support transformers v5 — ByteDance-Seed/VeOmni0 reactions · 1 comment
- Jan 11, 2026feat: Add NVIDIA Embed Nemotron embedding model support — paiml/trueno-rag0 reactions · 1 comment
- Dec 25, 2025ImportError: cannot import name 'TransformersKwargs' from 'transformers.utils' — iqiancheng/llms-cookbook0 reactions · 1 comment
- Dec 25, 2025ImportError: /opt/hpcx/ucc/lib/libucc.so.1: undefined symbol: ucs_config_doc_nop — iqiancheng/llms-cookbook0 reactions · 1 comment
- Nov 12, 2025layer-by-layer comparison tool between policy/generation — NVIDIA-NeMo/RL0 reactions
- Sep 25, 2025Use scale and clip grads utilties from Automodel for DTensor v2 — NVIDIA-NeMo/RL0 reactions
- Sep 8, 2025gemma 27b slow on v2 — NVIDIA-NeMo/RL0 reactions · 1 comment
- Sep 5, 2025Gemma3 27B crashes on 8 nodes with Sequence Parallel — NVIDIA-NeMo/RL0 reactions
- Sep 5, 2025Gemma3 27B crashes on 16 nodes w/ FSDP — NVIDIA-NeMo/RL0 reactions · 1 comment
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- NVIDIA-NeMo/Megatron-Bridge★ 96020% same
Wrote their own version · 190
- modelcontextprotocol/servers★ 92ksame name
- lobehub/lobehub★ 84ksame name
- lobehub/lobe-chat★ 83ksame name
- penpot/penpot★ 62ksame name
- meteor/meteor★ 45ksame name
- iOfficeAI/AionUi★ 34ksame name
- garrytan/gbrain★ 31ksame name
- OpenZeppelin/openzeppelin-contracts★ 27ksame name
- tursodatabase/turso★ 25ksame name
- redis/go-redis★ 22ksame name
180 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use bundle-dependency-prs, update-library-template and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillbundle-dependency-prs
Fix broken dependency update PRs and aggregate the ones that work into one PR.
Also in 6 projects that use this
MicrosoftSkillupdate-library-template
Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.
Also in 6 projects that use this
zetaloopSkillassign-copilot
Assigns a GitHub issue to the Copilot coding agent, optionally specifying a custom agent. Use this when asked to assign an issue to Copilot or delegate an issue to CCA.
Also in 3 projects that use this
timmo001Skillchangeset-scope
Keep all scoped code work contained to the user-defined changeset. Use for implementation, fixes, diagnosis, refactoring, cleanup, and review when explicit instructions, named files, diffs, branches, pull requests, or injected work scopes define the boundary.
Also in 3 projects that use this
JetBrainsSkillmodule-dependencies
Add or modify IntelliJ module dependencies in `.iml` files.
Also in 3 projects that use this
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- build-and-dependencySkill
- cicdSkill
- fern-docsSkill
- linting-and-formattingSkill
- parity-testingSkill
- nemo-automodel-distributed-trainingSkill
- nemo-automodel-launcher-configSkill
- nemo-automodel-model-onboardingSkill
- nemo-automodel-recipe-developmentSkill
- pr-reviewSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

