Skip to content

feat: add DeepSpeed training worker - #51

Merged
Flink-ddd merged 1 commit into
RL-Align:mainfrom
inaniloquentee:issue-12-deepspeed-training-worker-v2
Jun 1, 2026
Merged

Flink-ddd merged 1 commit into
RL-Align:mainfrom
inaniloquentee:issue-12-deepspeed-training-worker-v2

Conversation

@inaniloquentee

Copy link
Copy Markdown
Collaborator

Summary

  • add a scheduler-neutral rollout/training contract
  • add DeepSpeedTrainingWorker with lazy DeepSpeed import
  • initialize a real DeepSpeedEngine and run forward/backward/step
  • consume rollout payload token ids when present, with synthetic fallback only when absent
  • add issue [FEAT][executors]: initialize DeepSpeed-based training worker framework #12 docs, benchmark evidence, and real-runtime smoke scripts

Validation

  • py -3.13 -m pytest tests/test_deepspeed_training_worker.py -q
  • py -3.13 -m compileall rl_engine tests task-workspace\issues\issue_12\runs
  • scoped pre-commit run --files ...

pre-commit run --all-files was also run and fails only on existing mkdocs.yaml Python-specific YAML tags, unrelated to this PR.

Real Runtime Evidence

  • WSL2 Python 3.12.3
  • torch 2.8.0+cu126
  • DeepSpeed 0.19.1
  • RTX 3050
  • user-local CUDA toolkit 12.0 via CUDA_HOME
  • DeepSpeed CUDA/NCCL smoke passed without DS_IGNORE_CUDA_DETECTION

Not Included

  • multi-node DeepSpeed deployment is not implemented in this PR
  • checkpoint/restart and ZeRO multi-rank validation remain follow-ups

@inaniloquentee
inaniloquentee force-pushed the issue-12-deepspeed-training-worker-v2 branch from 5554b0a to 1d41c36 Compare May 31, 2026 17:27
@Flink-ddd
Flink-ddd merged commit 1d41c36 into RL-Align:main Jun 1, 2026
1 check passed
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.

2 participants