Instructions to use sarvamaigc/Qwen-Image-2.1-Sarvam-Tez with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sarvamaigc/Qwen-Image-2.1-Sarvam-Tez with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("sarvamaigc/Qwen-Image-2.1-Sarvam-Tez") 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
Whoah, cool
It even handles fixing diffusion-model garbled text if you give it 3 steps instead of 2, in spite of a challenging prompt.
Seriously impressive! :- )
Well, the part that impressed me is that it could take four text boxes in sequence, all containing garbled nonsense text, and properly format them without errors with 'just' a prompt asking it toChange the text bubbles from left to right, "ooh", "ahh", "silly text in my prompt", "what secrets might they contain"
The output had some fuzzy letters with 2 steps, but quite clear with 3 steps.
The model combines well with a different model; https://huggingface.co/congruency/Qwen-Image-2.1-turbo-mfd/discussions/1
that particular workflow is quite a mess, though it does have some interesting bits to make the setup behave itself;
though the "flow shift" value is only relevant in so far as you desire a visually noisy output (lower is noisier, higher is cleaner, there is plenty to find between 1.5 and 4.0)
