Updates on flax, jax and optax caused regressions in google-research projects
- Dominant language
- Jupyter Notebook
- Stars
- 7.3k
- Forks
- 833
- Avg merge
- 5h 11m
- Merged PRs (30d)
- 5
Description
Who is responsible for maintenance of deprecated code impact on other parts of your org?
Project https://github.com/google-research/google-research/tree/master/diffusion_distillation, a very nice paper from 2022, used `flax.optim` and a custom `TrainState` based on `@flax.struct.dataclass` which have since been replaced by `optax` and `flax.training.train_state.TrainState`. Im sure it is great but between `google colab` forcing numpy, jax, flax etc.. versions, as well as python 3.12 as well as jaxlib 0.4.1 no longer being in pypi and custom installation from wheel containg no cuda versions... it is impossible to recreate old projects. Especially if one (partly for this reason of deprecations) leans towards torch. * I do prefer jax in principle but I dont use it because "old" projects are broken (3 years old stuff that is very relevatn should not be "old")
I tried to fix the project but I only did it partially, something in either `flax.optim -> optax` or `Trainstate -> flax.training.train_state.TrainState` breaks my attempted fix.
https://github.com/google-research/google-research/issues/2976
Can someone quickly fix that? Or suggest what in these 2 files i gotta change. to make a pull request ?
https://github.com/xvdp/google-research/blob/fixflaxversion/diffusion_distillation/diffusion_distillation/model.py
https://github.com/xvdp/google-research/blob/fixflaxversion/diffusion_distillation/diffusion_distillation.ipynb
Contributor guide
Assessment
This issue has not been assessed yet.