Best practices: A forked repo vs new repo

I work with PyTorch and TorchAudio a lot and I create modules that I use in different projects. What are the following do you suggest?

  1. Add modules to the forked version of PyTorch and build from source in every project I am working.
  2. Create another repo as an add-on to PyTorch and install that separately.

I think it depends a bit on how you are planning to use these “modules” and if you are expecting other users to use them as well or if it’s mostly for your own use cases only.
Writing an extension would allow other users to easily use your modules by just rebuilding/installing them, but would also need some maintenance effort on your side.

1 Like