New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[discussion] Recommend a different file extension for models (.PTH is a special extension for Python) #14864
Comments
As far as I can tell, |
I think the downloadable torchvision models have pth extension |
e.g. Intel's distiller uses the strange |
I think this is especially pertinent with a new announcement of Torch Hub: https://pytorch.org/docs/master/hub.html and https://github.com/pytorch/vision/blob/master/hubconf.py both mention *.pth files |
sure, we can change our models to |
@soumith Sure! I'll find all occurences and paste the pointers here :) |
An incomplete yet list (so far searched on github pytorch, torchvision, examples):
|
If |
Hi, |
we can go with |
@soumith |
maybe |
One alternative more verbose option: |
i think that's too long |
@soumith Another option: |
Hi, any update on this? I don't recommend |
👍 for chained extensions not concealing the underlying format. Just |
*.pth files are used by Python to list additional package search paths: https://docs.python.org/3/library/site.html
The pth files will be loaded as text files by Python interpreter. At some point when I had some PyTorch model pth file placed along with the sources, it caused a hang of Python at startup (it was trying to parse the big binary file as a list of paths).
Maybe just *.pt?
The text was updated successfully, but these errors were encountered: