Move utils/seed.py
to training/seed.py
#1441
Labels
better engineering
Tasks which help improve eng productivity e.g. building tools, cleaning up code, writing docs
community help wanted
We would love the community's help completing this issue
We are splitting up the massive utils directory into a separate
training
directory for helpers used in recipes andutils
for all other miscellaneous utilities. The motivation for this is extensively discussed in #1421. We can do this move piece-wise to make it easier to do and review. I have done a few of them that you can use as a template to mimic: #1435, #1434This task is to simply move the
utils/seed.py
file to its new location,training/seed.py
and updating all callsites, docs, and configs that reference this.Here's how I would make the changes:
utils
totraining
utils/__init__.py
totraining/__init__.py
tests/torchtune/utils/
totests/torchtune/training/
docs/source/api_ref_utilities.rst
todocs/source/api_ref_training.rst
training
instead ofutils
. Most of these callsites are in the recipes asutils.function
, so you can get a lot of them by doing replaceutils.function
->training.function
. But there's usually a few more across the codebaseThe text was updated successfully, but these errors were encountered: