Skip to content

Split pin_memory benches into per-experiment folders - #1015

Open
sfc-gh-truwase wants to merge 1 commit into
deepspeedai:masterfrom
sfc-gh-truwase:tjruwase/pin-memory-experiments
Open

sfc-gh-truwase wants to merge 1 commit into
deepspeedai:masterfrom
sfc-gh-truwase:tjruwase/pin-memory-experiments

Conversation

@sfc-gh-truwase

Copy link
Copy Markdown
Contributor

Summary

  • Reorganize benchmarks/pin_memory into subfolders: model_tensor_offload, activation_offload, h2d_d2h, plus optional grad_offload, cpu_pin, deepcompile_activation.
  • Shared subprocess/JSON helpers in common.py. Root zero3_offload_bench.py still runs ZeRO-3 model-tensor offload.
  • H2D/D2H includes a pageable arm; --skip-native-register for XPU without register_host_memory.

Test plan

  • python model_tensor_offload/bench.py --hidden 256 --layers 2 --batch 1 --seq 32 --steps 1 --warmup 0 on CUDA
  • python activation_offload/bench.py --hidden 64 --layers 2 --seq 32 --steps 1 --warmup 0 on CUDA
  • python h2d_d2h/bench.py --sizes-mib 4 --warmup 1 --iters 2
  • python zero3_offload_bench.py --hidden 256 --layers 2 --batch 1 --seq 32 --steps 1 --warmup 0 (compat shim)

Made with Cursor

Keep ZeRO-3 offload as model_tensor_offload (with --zero-stage) and add
activation, H2D/D2H, and optional harnesses so one DSE tree covers the
pinned-offload blog matrix. Root zero3_offload_bench.py still delegates
to the ZeRO-3 path.

Signed-off-by: tunji-ruwase_snow <tunji.ruwase@snowflake.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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