file naming of cached models for `load_state_dict_from_url`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- devtools, machine-learning
Direzione di ricerca
The request concerns load_state_dict_from_url, which names cached checkpoints model-<sha256>.pth under ~/.cache/torch/checkpoints/, and it is called from a hubconf entrypoint. The issue itself suggests moving the discussion to PyTorch core, and the prefix semantics are not settled. Before writing code, a maintainer decision on whether the feature is wanted and where it belongs is needed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
- I am currently using a torch hub entrypoint for an unreleased model which is in a private github repository. Therefore the entrypoint is manually called using
hubconf.entrypoint().
The entrypoint then calls load_state_dict_from_url which takes care of the caching of a model by (default) storing downloaded models in ~/.cache/torch/checkpoints/.
Now I noticed, that the filenames are directly the model-<sha256>.pth filestaken from the url. I think it would be nicer if we could add a prefix (such as the entrypoint) to the downloaded checkpoints for better file organization.
maybe something like load_state_dict_from_url(..., prefix="XYZGAN-") would work?
Feel free to move this to pytorch core, if this issue is better suited there.
- Lingua principale
- Python
- Stelle
- 1.4k
- Fork
- 248
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pytorch/hub
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
-
Output is not segmentedAperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 8/100
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 8/100
Issue simili
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
trezor/trezor-user-env#421 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tangentcode/tangentswarm#167 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno