pytorch / pytorch/vision

Let's avoid *.pth extension at least for newer models

Open
#4,794 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

needs discussion
Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

🐛 Describe the bug

pth is a special extension for Python related to module search paths

https://github.com/pytorch/pytorch/issues/14864

Versions

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked PyTorch issue and tracing where model artifacts receive the .pth extension. The payload names no files, tests, or entry points, so first identify the newer models in scope and the affected artifact-generation path. Done means the applicable newer models no longer use the problematic extension and existing behavior remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.