Skip to content

ADOPT, MARS, Prodigy#1

Open
Andron00e wants to merge 10 commits intompagli:ademamixfrom
Andron00e:ademamix
Open

ADOPT, MARS, Prodigy#1
Andron00e wants to merge 10 commits intompagli:ademamixfrom
Andron00e:ademamix

Conversation

@Andron00e
Copy link

this pr brings three more methods.
i think there might be an issue with MARS (its mars-shampoo version), ill check today.

comment: for MARS, i changed train_step behaviour a bit: ref

since were using only approximate scheme of MARS, we should only track the past gradient in order to compute g_curr - g_prev, therefore i use this in the train_step:

if optimizer.__class__.__name__ == "MARS":
     optimizer.zero_grad(set_to_none=True) 
     optimizer.update_last_grad()
else:
    optimizer.zero_grad()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant