Use monotonic time for training time limits
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.8k
- Forks
- 726
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 5
Description
TimeLimit measures elapsed time using the wall clock. A clock synchronization or manual clock change can prematurely stop training or extend a configured training limit.
Reproduced against master 851c994eb741466c5b3e673b612657a28135f65e with Python 3.12 and CPU PyTorch 2.6.0. A regression test and focused fix are prepared.
This report was prepared with AI assistance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TimeLimit implementation and reviewing how it measures elapsed time. Use the prepared regression test as the guide, and confirm that training limits remain correct across wall-clock changes while the test passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100