HF RL Explorer

Feature Request: %gpu timeit IPython Magic for GPU Timing

Feature Request: %gpu timeit IPython Magic for GPU Timing: a task in LegoFlow-SWE (Harbor dataset). The standard %timeit magic in IPython/Jupyter measures only CPU elapsed time, leading to confusion for new GPU users who expect it to reflect GPU execution time. We need a %gpu timeit magic that…

The task

The standard `%timeit` magic in IPython/Jupyter measures only CPU elapsed time, leading to confusion for new GPU users who expect it to reflect GPU execution time. We need a `%gpu_timeit` magic that properly measures GPU‑synchronized time using CuPy’s existing `cupyx.profiler.benchmark` infrastructure.

Part of Lego-X/LegoFlow-SWE.