Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/support_muon' into …
Browse files Browse the repository at this point in the history
…support_muon
  • Loading branch information
Jintao-Huang committed Feb 24, 2025
2 parents 4bf82b1 + a989331 commit e286c03
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions swift/plugin/optimizer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Copyright (c) Alibaba, Inc. and its affiliates.
import inspect
import math
import os
import sys
Expand Down Expand Up @@ -92,31 +91,6 @@ def create_muon_optimizers(args, model, dataset):
**optim_args,
), None

# muon_params = [
# {
# 'params': [
# p for n, p in model.named_parameters() if (n in decay_parameters and p.requires_grad and )
# ]
# }
# ]
# optimizer_grouped_parameters = [
# {
# "params": [
# p for n, p in model.named_parameters() if (n in decay_parameters and p.requires_grad)
# ],
# "weight_decay": args.weight_decay,
# },
# {
# "params": [
# p for n, p in model.named_parameters() if (n not in decay_parameters and p.requires_grad)
# ],
# "weight_decay": 0.0,
# },
# ]

# optimizer = optimizer_cls(optimizer_grouped_parameters, **optimizer_kwargs)
# return optimizer, None


# Add your own optimizers here, use --optimizer xxx to train
optimizers_map = {
Expand Down

0 comments on commit e286c03

Please sign in to comment.