[bug] icemix.py port: Optimizer not handling weight decay for cls_token

Aperta
#713 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, pytorch

Direzione di ricerca

Start by locating icemix.py and reading the DeepIce model’s no_weight_decay() method, then trace where training configures the optimizer. The issue says optimizer_grouped_parameters are not specified and suggests FastAI’s AdamW wrapper handled this in the original code. Confirm whether the current optimizer respects the exclusion for cls_token and add or update a focused training test; done when that parameter is excluded from weight decay.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

The DeepIce model contains a method called no_weight_decay() which is intended to specify that the cls_token parameter should not be subject to weight decay during training:

@torch.jit.ignore
def no_weight_decay(self) -> Set:
    """cls_tocken should not be subject to weight decay during training."""
    return {"cls_token"}

However, optimizer_grouped_parameters are not specified during training, so this method has no effect.
I believe that in the original 2nd place code, FastAI's wrapper around AdamW handled this automatically.

Lingua principale
Python
Stelle
117
Fork
115
Merge medio
2g 21h
PR unite (30g)
1

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di graphnet-team/graphnet

Tutte le issue di graphnet-team/graphnet

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.