Agent skill · Audited from source
Update Golden Values
skill · NVIDIA/Megatron-LMNOASSERTION licenceAudited 6 Oct 2026 · source 8ca032502ee6
Is it safe? With care — CAUTION, grade B (89/100). We read this skill's source at commit 8ca032502ee6 and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 5 findings, 0 critical or high. What it does: Refresh golden values from a GitHub Actions workflow run (failing-only or all jobs), calculate signed per-model percentage changes, and produce a PR-ready summary. Use when the user asks to update goldens for a CI run,…
Cite
Cite this page
ModelsAtlas. “Update Golden Values (NVIDIA/Megatron-LM)”. Retrieved 6 Oct 2026. https://modelsatlas.com/skills/nvidia/update-golden-values
Trust audit
Audit 0.4.1 · source read 6 Oct 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 5 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (5)
MEDIUMInventory / provenanceinv.symlink · .agents/skills
.agents/skills
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · .claude/skills
.claude/skills
- Why
- link not followed
- Fix
- —
LOWInventory / provenanceinv.symlink · CLAUDE.md
CLAUDE.md
- Why
- link not followed
- Fix
- —
LOWInventory / provenanceinv.symlink · examples/post_training/modelopt/conf/nvidia/NVIDIA-Nemotron-Nano-9B-v2-Base.sh
examples/post_training/modelopt/conf/nvidia/NVIDIA-Nemotron-Nano-9B-v2-Base.sh
- Why
- link not followed
- Fix
- —
LOWInventory / provenanceinv.symlink · megatron/core/models/hybrid/CLAUDE.md
megatron/core/models/hybrid/CLAUDE.md
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha 8ca032502ee6 · 6 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherNVIDIA GitHub organizationOwner of the repository this skill is read from
- Source folderNVIDIA/Megatron-LM/skills/update-golden-valuesThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdict8ca032502ee6A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Refresh golden values from a GitHub Actions workflow run (failing-only or all jobs), calculate signed per-model percentage changes, and produce a PR-ready summary. Use when the user asks to update goldens for a CI run,…
---
name: update-golden-values
description: Refresh golden values from a GitHub Actions workflow run (failing-only or all jobs), calculate signed per-model percentage changes, and produce a PR-ready summary. Use when the user asks to update goldens for a CI run, refresh golden values from a workflow ID, or generate a golden-value diff summary for a PR description.
---
# Update golden values + signed per-model percentage summary
End-to-end workflow for refreshing golden values from a GitHub Actions workflow run, reporting signed percentage changes per test/model environment, and writing a PR-ready summary.
The skill orchestrates two scripts that already live in the repo:
- `tests/test_utils/python_scripts/download_golden_values.py` — pulls artifacts from a workflow run and overwrites `tests/functional_tests/test_cases/**/golden_values_*.json`.
- `tests/test_utils/python_scripts/compare_golden_values_kl.py` — diffs the working-tree goldens against `git HEAD` and reports per-metric `avg_rel_diff = mean((old − new) / old)`. (Filename keeps the legacy `_kl` suffix; the script no longer computes KL divergence.)
## Inputs to gather from the user
1. **GitHub Actions workflow run ID** (e.g. `25341543542`). It's the numeric ID in the run URL.
2. **Source**: should be `github` for this workflow. (`gitlab` is supported by the download script but uses a different env path.)
3. **Scope** — accept one of:
- `only-failing` → run with `--only-failing` (download from failing/cancelled jobs only). Use this for "fix the broken tests" workflows.
- `all` → run without `--only-failing` (download from every job that produced golden values). Use this when the user wants a full refresh.
If the user doesn't specify, ask. Don't silently default.
## Workflow
```
- [ ] Step 1: Set up env (token + venv with deps)
- [ ] Step 2: Reset prior golden-value edits
- [ ] Step 3: Download goldens (scope = only-failing | all)
- [ ] Step 4: Run relative-diff comparison + generate per-model percentage table
- [ ] Step 5: Produce PR-ready summary
```
### Step 1 — Environment
The download script needs `GITHUB_TOKEN`. If the user has the `gh` CLI authenticated, derive it; do NOT export the token into a long-lived shell or commit it.
```bash
# token (one-shot, scoped to the command)
export GITHUB_TOKEN="$(gh auth token)"
# python deps (the script imports click, gitlab, requests)
python3 -m venv /tmp/gv_venv
/tmp/gv_venv/bin/pip install --quiet click python-gitlab requests
```
Reuse `/tmp/gv_venv` if it already exists. The comparison script only depends on `click` (also in the venv).
### Step 2 — Reset prior edits (only if user re-runs)
If the working tree already has prior golden-value modifications you want to discard before re-downloading:
```bash
git checkout -- tests/functional_tests/test_cases/
git ls-files --others --exclude-standard tests/functional_tests/test_cases/ \
| while IFS= read -r f; do rm -f "$f"; done
```
Skip this step when the user explicitly wants to layer a new download on top of an in-progress branch.
### Step 3 — Download
Build the command from the user-provided scope:
```bash
# scope = only-failing (default for "fix broken tests")
/tmp/gv_venv/bin/python tests/test_utils/python_scripts/download_golden_values.py \
--source github --pipeline-id <WORKFLOW_RUN_ID> --only-failing
# scope = all (full refresh; omit the flag)
/tmp/gv_venv/bin/python tests/test_utils/python_scripts/download_golden_values.py \
--source github --pipeline-id <WORKFLOW_RUN_ID>
```
When `--only-failing` is set, the GitHub path filters at `_fetch_and_filter_artifacts` on `matched_job["conclusion"] == "success"`, so only failing/cancelled jobs contribute artifacts. Without the flag, every job's golden-value artifact is pulled.
Capture the final two log lines for the summary; they look like:
```
INFO:__main__:Total tests with golden values: <N>
INFO:__main__:Total golden values found: <M>
```
### Step 4 — Relative-diff comparison
```bash
/tmp/gv_venv/bin/python tests/test_utils/python_scripts/compare_golden_values_kl.py \
--top 20 --csv /tmp/reldiff_summary.csv
```
The CSV holds one row per `(file, metric)` with four columns:
`file, metric, n_steps, avg_rel_diff`
- `n_steps` — count of shared steps that contributed (steps where `|old| < 1e-12` are skipped to avoid div-by-zero; NaN/inf are dropped).
- `avg_rel_diff` — `mean((old − new) / old)`. **Signed**: positive = the new run is smaller than the old run at the typical step (e.g. loss decreased), negative = larger.
Convert the raw ratio to a percentage for the report:
`avg_rel_diff_pct = 100 × avg_rel_diff`
Always include the `%` symbol and preserve the sign. Do not take the absolute value, produce magnitude-only statistics, or combine models into magnitude buckets. Generate one row per test/model environment instead:
```python
import collections
import csv
from pathlib import Path
rows = list(csv.DictReader(open('/tmp/reldiff_summary.csv')))
for r in rows:
r['n_steps'] = int(r['n_steps'])
r['avg_rel_diff_pct'] = 100 * float(r['avg_rel_diff'])
by_file = collections.defaultdict(dict)
for r in rows:
by_file[r['file']][r['metric']] = {
'n_steps': r['n_steps'],
'pct': r['avg_rel_diff_pct'],
}
preferred_metrics = [
'lm loss',
'mtp_1 loss',
'num-zeros',
'iteration-time',
'mem-allocated-bytes',
'mem-max-allocated-bytes',
]
present_metrics = {r['metric'] for r in rows}
metrics = [m for m in preferred_metrics if m in present_metrics]
metrics.extend(sorted(present_metrics - set(metrics)))
print('| Test / environment | Steps | ' + ' | '.join(f'`{m}` (%)' for m in metrics) + ' |')
print('| --- | --: | ' + ' | '.join('--:' for _ in metrics) + ' |')
for file_name in sorted(by_file):
path = Path(file_name)
test_name = path.parent.name
environment = path.stem.removeprefix('golden_values_')
values = by_file[file_name]
steps = max(v['n_steps'] for v in values.values())
cellsExcerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 8ca0325
git clone https://github.com/NVIDIA/Megatron-LM git -C Megatron-LM checkout 8ca032502ee6
The author documents no install command, so this uses the repository directly. Our verdict covers commit 8ca032502ee6 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- !CAUTION B 89 / 100
first audit · source
8ca032502ee6
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/nvidia/update-golden-values/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
NVIDIA/Megatron-LM
Ongoing research training transformer models at scale
NVIDIA/Megatron-LM
Ongoing research training transformer models at scale
NVIDIA/Megatron-LM
Ongoing research training transformer models at scale
NVIDIA/Megatron-LM
Ongoing research training transformer models at scale
NVIDIA/Megatron-LM
Ongoing research training transformer models at scale
NVIDIA/Megatron-LM
Domain knowledge for the nightly main-to-dev sync workflow. Covers merge strategy, CI architecture, failure investigation, and known issues.
Add this badge to your README
[](https://modelsatlas.com/skills/nvidia/update-golden-values/)
<a href="https://modelsatlas.com/skills/nvidia/update-golden-values/"><img src="https://modelsatlas.com/skills/nvidia/update-golden-values/badge.svg" alt="ModelsAtlas: CAUTION B"></a>
Questions about Update Golden Values
What does the Update Golden Values skill do?
Is Update Golden Values safe to install?
What can Update Golden Values access on my machine?
What do I need installed to use Update Golden Values?
How current is this page?
Sources
- github.com/NVIDIA/Megatron-LM/tree/main/skills/update-golden-val — the audited source at commit 8ca032502ee6 and every finding aboveObserved · 6 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Update Golden Values skill do?
- Is Update Golden Values safe to install?
- What can Update Golden Values access on my machine?