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.2.1.tar.gz (10.7 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.2.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: muon_fsdp2-0.2.1.tar.gz
  • Upload date:
  • Size: 10.7 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.2.1.tar.gz
Algorithm Hash digest
SHA256 6821696462aa828b0db2e26db6891fedcac383b017b774fe429c3d33e5855ea8
MD5 7323f5e316dc43d69257cc627da59ba0
BLAKE2b-256 6f32b89f66c3759b3c28be3cd2698b0db661c0af64bac76618f9b0b2f5f85a07

See more details on using hashes here.

Provenance

The following attestation bundles were made for muon_fsdp2-0.2.1.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.2.1-py3-none-any.whl.

File metadata

  • Download URL: muon_fsdp2-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2d2ff79631023c926f5d69511f2c9136bff97361602110c6c1b5c4cddca6e67
MD5 1549ebea78306cb591103bdc64627bf2
BLAKE2b-256 715b626d84091225d15353195d147594d0c40ff611876ee29a81475ca9d98b87

See more details on using hashes here.

Provenance

The following attestation bundles were made for muon_fsdp2-0.2.1-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