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.0.tar.gz (5.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.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: muon_fsdp2-0.2.0.tar.gz
  • Upload date:
  • Size: 5.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.0.tar.gz
Algorithm Hash digest
SHA256 d0cc272cfbd67eb48ceea9333fc442c5b1478f2eec3acb42bd45173918d3c282
MD5 578cb2e6351fc48a74bb1c07d0c3b02c
BLAKE2b-256 17aa3bb3058cfd4b45c0abe87451a3fb9edc155e1c0683dd2a4fbb1ba1e057e4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: muon_fsdp2-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b8cfc5ab880cd5e916cba6370e0771c3f33ac6711c5259b4443e7b3846414f8
MD5 7ca14e5f37d97f81d36e59bd0dccd98b
BLAKE2b-256 22ca45fb17d55abb90dbf9e206958d10145c85abb8adb7b06470c40e99e38c7b

See more details on using hashes here.

Provenance

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