Skip to content

ci: Update unit tests to run on self-hosted runner - #6

Merged
terrykong merged 21 commits into
mainfrom
setup-ci
Mar 21, 2025
Merged

terrykong merged 21 commits into
mainfrom
setup-ci

Conversation

@chtruong814

Copy link
Copy Markdown
Contributor

What does this PR do ?

Update unit tests to run on self-hosted runner

Changelog

  • Update unit tests to run on self-hosted runner

Before your PR is "Ready for review"

Pre checks:

Checklist when contributing

  • TBD

Additional Information

  • Related to # (issue)

@github-actions github-actions Bot added the CI Relating to CI label Mar 20, 2025
SahilJain314 pushed a commit that referenced this pull request Mar 21, 2025
SahilJain314 pushed a commit that referenced this pull request Mar 21, 2025
#6 Add support for config inheritance

See merge request dl/JoC/nemo-reinforcer!40
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
@terrykong
terrykong merged commit 13b816c into main Mar 21, 2025
@terrykong
terrykong deleted the setup-ci branch March 21, 2025 07:25
KiddoZhu pushed a commit that referenced this pull request May 6, 2025
Signed-off-by: Charlie Truong <[email protected]>
Co-authored-by: Terry Kong <[email protected]>
copy-pr-bot Bot pushed a commit that referenced this pull request Apr 21, 2026
fix(gemma4): freeze unused modality towers via YAML freeze_config
ZhiyuLi-Nvidia added a commit that referenced this pull request May 15, 2026
Silent over-fetch was possible when callers omitted select_fields: the
noop adapter fetched every registered field via set intersection; the
TQ adapter forwarded None to the backend. Bulk schemas are wide and
fetching everything is the most expensive shape the wire can take.

select_fields is now a required list[str] on DataPlaneClient.kv_batch_get
and all concrete implementations. Callers must name what they read;
fetch-all is still possible by passing list(meta.fields) explicitly.

Also: worker_mixin internal call sites use list(meta.fields) directly
(fail-loud TypeError if meta.fields is None, rather than silently
producing an empty TensorDict).

Per yuki-97 PR review (#6).

Signed-off-by: Zhiyu Li <[email protected]>
ZhiyuLi-Nvidia added a commit that referenced this pull request May 19, 2026
Silent over-fetch was possible when callers omitted select_fields: the
noop adapter fetched every registered field via set intersection; the
TQ adapter forwarded None to the backend. Bulk schemas are wide and
fetching everything is the most expensive shape the wire can take.

select_fields is now a required list[str] on DataPlaneClient.kv_batch_get
and all concrete implementations. Callers must name what they read;
fetch-all is still possible by passing list(meta.fields) explicitly.

Also: worker_mixin internal call sites use list(meta.fields) directly
(fail-loud TypeError if meta.fields is None, rather than silently
producing an empty TensorDict).

Per yuki-97 PR review (#6).

Signed-off-by: Zhiyu Li <[email protected]>
ZhiyuLi-Nvidia added a commit that referenced this pull request May 19, 2026
Silent over-fetch was possible when callers omitted select_fields: the
noop adapter fetched every registered field via set intersection; the
TQ adapter forwarded None to the backend. Bulk schemas are wide and
fetching everything is the most expensive shape the wire can take.

select_fields is now a required list[str] on DataPlaneClient.kv_batch_get
and all concrete implementations. Callers must name what they read;
fetch-all is still possible by passing list(meta.fields) explicitly.

Also: worker_mixin internal call sites use list(meta.fields) directly
(fail-loud TypeError if meta.fields is None, rather than silently
producing an empty TensorDict).

Per yuki-97 PR review (#6).

Signed-off-by: Zhiyu Li <[email protected]>
ZhiyuLi-Nvidia added a commit that referenced this pull request May 22, 2026
Silent over-fetch was possible when callers omitted select_fields: the
noop adapter fetched every registered field via set intersection; the
TQ adapter forwarded None to the backend. Bulk schemas are wide and
fetching everything is the most expensive shape the wire can take.

select_fields is now a required list[str] on DataPlaneClient.kv_batch_get
and all concrete implementations. Callers must name what they read;
fetch-all is still possible by passing list(meta.fields) explicitly.

Also: worker_mixin internal call sites use list(meta.fields) directly
(fail-loud TypeError if meta.fields is None, rather than silently
producing an empty TensorDict).

Per yuki-97 PR review (#6).

Signed-off-by: Zhiyu Li <[email protected]>
ZhiyuLi-Nvidia added a commit that referenced this pull request May 23, 2026
Silent over-fetch was possible when callers omitted select_fields: the
noop adapter fetched every registered field via set intersection; the
TQ adapter forwarded None to the backend. Bulk schemas are wide and
fetching everything is the most expensive shape the wire can take.

select_fields is now a required list[str] on DataPlaneClient.kv_batch_get
and all concrete implementations. Callers must name what they read;
fetch-all is still possible by passing list(meta.fields) explicitly.

Also: worker_mixin internal call sites use list(meta.fields) directly
(fail-loud TypeError if meta.fields is None, rather than silently
producing an empty TensorDict).

Per yuki-97 PR review (#6).

Signed-off-by: Zhiyu Li <[email protected]>
anlthms added a commit to anlthms/RL that referenced this pull request Jul 9, 2026
Five uncommitted fixes from the earlier colo-vs-noncolo attempt, whose
issue ledger (RL.old examples/nemo_gym/colocated_vs_noncolocated.md)
documents a colocated run completing step 1 + checkpoint end-to-end:

- grpo.py: restart timeout iteration clock after initial buffer fill
  (fill was counted as iteration #1, tripping checkpoint_must_save_by)
- grpo.py: pause engine + collector around checkpoint save (world
  AllGather vs inference-thread reduce_scatter deadlock)
- megatron_worker._wake: barrier BEFORE waking the engine (early-woken
  ranks' inference collectives race the world barrier)
- megatron_worker.prepare_for_generation: disable DDP forward pre-hook
  (train() re-enables it; inference-thread param all-gathers on the DP
  group interleave per-rank and deadlock; param_sync=True also publishes
  post-step weights to the shared buffer)
- megatron_policy_worker: don't clobber saved param_sync_func when
  disable-until-next-train-step runs twice

Colo config: buffer 48->64GB per RL.old issue NVIDIA-NeMo#12 (graph pools + expert
padding workspaces OOM logprobs at 80GB); debug config seqlen 16384 to
avoid empty-completion crash (RL.old issue NVIDIA-NeMo#6).

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Anil Thomas <[email protected]>
zswerth added a commit to zswerth/RL that referenced this pull request Oct 31, 2026
- Restore the cuda-graph-trace=node default in the outer/policy nsight config
  (the key-set unit test passes unchanged); NRL_NSYS_EXTRA_OPTIONS now treats a
  JSON null as "remove this default" (review NVIDIA-NeMo#1, NVIDIA-NeMo#2).
- Remove the per-worker `nsys sessions list` / `nsys stop --session` sweep from
  VllmInternalWorkerExtension.stop_gpu_profiling and the 30 s post-stop sleep:
  the awaited cudaProfilerStop with capture-range-end=stop finalizes each inner
  report while the worker runs (review NVIDIA-NeMo#3, NVIDIA-NeMo#7, NVIDIA-NeMo#10).
- Build both inner TP-worker configs with one build_inner_nsight_config() in
  nemo_rl/utils/nsys.py (v1 keeps capture-range-end=repeat; the v2 plugin uses
  stop + wait=primary, documented), using the NRL_NSYS_PROFILE_STEP_RANGE
  constant and the validated NRL_NSYS_EXTRA_OPTIONS parser; the plugin imports
  the helper lazily and logs one line on install (review NVIDIA-NeMo#4, NVIDIA-NeMo#5).
- Import RayExecutorV2 directly in the plugin; drop the ImportError fallback so a
  moved executor fails loudly when profiling is requested (review NVIDIA-NeMo#11).
- Align the async start/stop_gpu_profiling with upstream NVIDIA-NeMo#4604 (already on main):
  await collective_rpc only, no outer cudaProfilerStart/Stop, so the outer async
  actor writes no near-empty report; adopt main's unit test verbatim (review NVIDIA-NeMo#8, NVIDIA-NeMo#9).
- Unit tests: plugin (entry point resolves, no-op, install once with one log line,
  call-through, overrides/null removal, fails loudly without RayExecutorV2, bad
  NRL_NSYS_EXTRA_OPTIONS raises at executor startup, vllm-marked contract test
  against the real RayExecutorV2), helper defaults/options, v1 call site, outer
  async profiler untouched; whitelist the plugin in pyrefly.toml (review NVIDIA-NeMo#6).
- Add an end-to-end nightly suite, grpo-llama3.2-1b-instruct-1n8g-megatron-nsys
  (Megatron recipe, vLLM TP=2, async engine): sets NRL_NSYS_*, passes a caller's
  NRL_NSYS_EXTRA_OPTIONS through, and asserts per-class report counts derived from
  the config (policy and inner vllm_tp_worker = engines x TP), no stock-config or
  unfinished captures, and CUDA activity in an inner report. The nightly GPU-hour
  cap is raised by this suite's budget (review NVIDIA-NeMo#12).
- Docs: null removal, the v2 plugin and when it is (not) loaded, failure modes.

Signed-off-by: zswerth <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Relating to CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants