Instructions to use Reza2kn/Cosmos3-Nano-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Reza2kn/Cosmos3-Nano-MLX-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Cosmos3-Nano-MLX-8bit Reza2kn/Cosmos3-Nano-MLX-8bit
- Cosmos
How to use Reza2kn/Cosmos3-Nano-MLX-8bit with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
LX audio branch working β text2image + text2video + audio on Apple Silicon
#1
by Bogomdanny73 - opened
Hi Reza,
I've ported the audio generation branch to MLX for your Cosmos3-Nano-MLX-8bit build.
The MLX weights already included audio_proj_in, audio_proj_out, and audio_modality_embed β just needed to wire them up in the forward pass.
Changes:
- Added pack_sound, unpack_sound, apply_timestep_to_noisy in mlx_cosmos3.py
- Updated mlx_pipeline.py to handle sound_tokens, sound_timesteps, sound_sequence_indexes
- Set sound_gen=True, sound_dim=64 in config
All modes working on Mac Studio (M-series):
- text2image β
- text2video (25 frames, 384Γ384, ~1 min) β
- text2video+audio (stereo 48kHz WAV) β
Full diff:
https://huggingface.co/Reza2kn/Cosmos3-Nano-MLX-8bit
Happy to open a PR if you'd like.
Best,
Bogdan