rsm_rise_code / code_src /df_rise /_deps /PROVENANCE.txt
rli14's picture
rsm_rise code snapshot (HF_PUSH_ALL)
d18db74 verified
Raw History Blame Contribute Delete
1.63 kB
gen_q#274 (stream NEW_BASELINES) -- why this directory exists.
The Diffusion Forcing PLANNER runs inside the RISE eval process, i.e. under $ROOT/env (python 3.10,
torch 2.5.1), NOT under venv_df (python 3.12) where the DF trainer runs. The upstream import chain
code/diffusion_forcing/algorithms/diffusion_forcing/models/diffusion.py:8
-> models/unet3d.py:6 -> `from rotary_embedding_torch import RotaryEmbedding`
is unconditional, and $ROOT/env does not ship rotary_embedding_torch. That is exactly what killed
every DF eval cell in LSF 1880432 (ModuleNotFoundError, 3 retries per cell, all four slots).
Fix, chosen so that NO shared environment is mutated (the gen_q#273 stream trains in $ROOT/env and
venv_rsm; installing a package into either of them is not this stream's to do):
rotary_embedding_torch 0.9.1 -- PURE PYTHON, deps torch + einops only, both already in $ROOT/env
(torch 2.5.1 provides torch.amp.autocast; einops 0.8.2) -- copied verbatim from
venv_df/lib/python3.12/site-packages/rotary_embedding_torch
and put on sys.path ONLY inside eval.py's `if RR_DF_CKPT:` block, so a cell with RR_DF_CKPT unset
still takes a byte-identical code path. No file in code/diffusion_forcing is edited.
NOTE ON SCIENCE: unet3d is not used by our port (our bundle is 1-D and uses the transformer
backbone); the import is merely on the module path. Supplying the real package rather than stubbing
it keeps the vendored checkout honest -- if upstream code ever does reach RotaryEmbedding, it gets
the real implementation.
copied 2026-09-23, source venv_df (pip install rotary_embedding_torch==0.9.1).