Run this model with HF Jobs
Run mingyi456/Cosmos-Predict2-14B-Text2Image-DF11 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mingyi456/Cosmos-Predict2-14B-Text2Image-DF11. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mingyi456/Cosmos-Predict2-14B-Text2Image-DF11 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mingyi456/Cosmos-Predict2-14B-Text2Image-DF11 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mingyi456/Cosmos-Predict2-14B-Text2Image-DF11 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mingyi456/Cosmos-Predict2-14B-Text2Image-DF11", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files14 unmodified lines151617181819202114 unmodified lines
This is my first time using DF11 to compress a model outside the Flux architecture. The reason why the process for compressing Flux-based models is much easier is because the compression code requires a `pattern_dict` as input, but the original [example code](https://github.com/LeanModels/DFloat11/tree/master/examples/compress_flux1) only provides the correct `pattern_dict` for Flux, which means I have to learn the notation myself and modify it to fit other models. After a long wait, the compressed model seems to work fine on my RTX 4090, but do let me know if you run into any problems.
The `pattern_dict` I used to compress this model is here:This is the `pattern_dict` I used for compression:```pythonpattern_dict={ "transformer_blocks\.\d+": (README.md+1-1