meta-pytorch / meta-pytorch/data

Replace portalocker with filelock to further reduce dependency

Open
#1,012 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Better Engineering
Dominant language
Python
Stars
1.3k
Forks
179
Avg merge
6d 1h
Merged PRs (30d)
2

Description

🚀 The feature

filelock module is added as a dependency for PyTorch when dynamo is introduced.
https://github.com/pytorch/pytorch/blob/a0d1dbc4466121f7aa0fa3754c5fbfe679c70c8e/requirements.txt#LL13-L13C9

We can re-use filelock module to do all file lock rather than portalocker.

Motivation, pitch

Reduce redundant dependency

Alternatives

No response

Additional context

No response

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 reviewing the PyTorch requirements.txt entry linked in the issue, then search the repository for portalocker usage and existing file-locking entry points. Replace the file-locking dependency consistently and confirm that portalocker is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.