Skip to main content

Muon FSDP2 is a implementation of Muon optimizer for FSDP2

Project description

Muon FSDP2

muon implementation for FSDP2. Mainly copied this gist credits to @main-horse

Usage

from muon_fsdp2 import Muon


optimizer = Muon([
    dict(
        params=model.square_params(),
        lr=2e-2,
        use_muon=True
    ),
    dict(
        params=model.non_square_params(),
        lr=3e-4,
        use_muon=False
    )
])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muon_fsdp2-0.3.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

muon_fsdp2-0.3.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file muon_fsdp2-0.3.0.tar.gz.

File metadata

  • Download URL: muon_fsdp2-0.3.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for muon_fsdp2-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a230d86e9a839c43234cbc3b24fa3e4d5917787af5e670b0ab8dc95846b6efb3
MD5 b88ac56bff4f855fd0ddcbcd84d059d8
BLAKE2b-256 0d86ef76622d6a59a4dc48fa79d947464d91f225e07f9feb376a003f4d1d6f82

See more details on using hashes here.

Provenance

The following attestation bundles were made for muon_fsdp2-0.3.0.tar.gz:

Publisher: publish-pypi.yml on samsja/muon_fsdp_2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file muon_fsdp2-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: muon_fsdp2-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for muon_fsdp2-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55387a0ffbcd90cc204341e570a8be7d546af4c06432b3c962af262dd34170d2
MD5 77674da16ba5b358c9aef9edbbfccf1c
BLAKE2b-256 0e44b4b024332e7dbcbc65469a4ea60f9552172ea51a3ad004858dc79e1ee7f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for muon_fsdp2-0.3.0-py3-none-any.whl:

Publisher: publish-pypi.yml on samsja/muon_fsdp_2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page