Skip to content

docs: align metadata tooling instructions - #18

Merged
jhinpan merged 7 commits into
amdpilot-org:mainfrom
jhinpan:docs/metadata-tooling
May 2, 2026
Merged

jhinpan merged 7 commits into
amdpilot-org:mainfrom
jhinpan:docs/metadata-tooling

Conversation

@jhinpan

@jhinpan jhinpan commented May 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove README references to missing metadata schema/template/validator files.
  • Point metadata review guidance at the current eval runner, registry tooling, validation tooling, and helper tests.

Test plan

  • PYTHONPATH=. python3 -m pytest tests -q

jhinpan added 7 commits April 22, 2026 01:07
8x MI355X Qwen3-30B-A3B MoE pretraining MFU optimization.
Built on ghcr.io/amdpilot-org/primus-mi355x-ready:v1.

Two task.yaml variants for A/B testing the Phase 1 baseline agent:
- task.yaml: phase1_baseline: true
- task_nophase1.yaml: phase1_baseline: false

Both pin the executor to Kimi-K2.6 at 10.235.24.154:30000.
The previous base (ghcr.io/amdpilot-org/primus-mi355x-ready:v1) was a
slimmed copy that did NOT include /workspace/primus_train/Primus.
Phase 1 spent its full max_turns budget trying to bootstrap from
scratch. Switch to primus-mi355x-flat:v1 (locally available, has
Primus + Primus-Turbo pre-installed and patched for triton 3.4.0).

Also install uv at /root/.local/bin in our Dockerfile so the
kimi-cli runtime's source $HOME/.local/bin/env succeeds — without
this, executor trials exit 137 immediately after image switch.

Tag the new image primus-qwen3-30b-mfu-base:v1 so amdpilot triggers
a build the first time it runs.
Two cumulative fixes for n08-09 (8x MI355X):

1. Without PYTORCH_ROCM_ARCH=gfx950 (and AITER_ROCM_ARCH,
   HSA_NO_SCRATCH_RECLAIM, HIP_FORCE_DEV_KERNARG, etc) the torch HIP
   runtime can't dispatch kernels and benchmarks die immediately with
   hipErrorInvalidDeviceFunction. These were set in xiao/baizhou's
   working containers but missing from amdpilot's docker run line.
   Add to both Dockerfile ENV and task.yaml container.env so they
   apply via either path.

2. Replace /workspace/detect_interface.sh with a /proc-based
   detector (the original needed `ip` from iproute2, unavailable in
   the slim base). bench_mfu.sh now auto-detects GLOO/NCCL socket
   IFNAME at runtime if bench_config.env doesn't pin one — without
   this, Megatron's distributed init fails fast (3-5s) before
   training starts.
Enables tag + push of the Phase 1 baseline image to
docker.io/jhinpan/primus-qwen3-30b-mfu-phase1 after a successful
phase1 commit. Template: {date}-{metric} (e.g. 20260422-278p80) +
:latest. Other nodes can then `docker pull` that tag and skip Phase 1
entirely.
Switch repository from docker.io/jhinpan to ghcr.io/amdpilot-org so
all nodes in the org can pull the verified phase1-baseline image
directly. Bump push timeout_s to 9000 (2.5h) to absorb the one-time
42 GB base-layer seed; subsequent pushes only upload the
phase1-commit delta (~500 MB - 1 GB) via GHCR cross-repo mount.
Remove references to missing metadata schema files and point reviewers at the current registry and validation helper tests.
Remove the inherited Primus eval bundle from the docs-only branch so the
PR only updates metadata tooling guidance.
@jhinpan
jhinpan merged commit d09d29c into amdpilot-org:main May 2, 2026
@jhinpan
jhinpan deleted the docs/metadata-tooling branch May 2, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant