Instructions to use PNW-GM/witcher3-velen-z-image-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use PNW-GM/witcher3-velen-z-image-lora with PEFT:
Task type is invalid.
- Diffusers
How to use PNW-GM/witcher3-velen-z-image-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Tongyi-MAI/Z-Image", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("PNW-GM/witcher3-velen-z-image-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "Tongyi-MAI/Z-Image", | |
| "bias": "none", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": "gaussian", | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 128, | |
| "lora_dropout": 0.0, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 128, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "to_q", | |
| "to_k", | |
| "to_v", | |
| "to_out.0", | |
| "feed_forward.w1", | |
| "feed_forward.w2", | |
| "feed_forward.w3" | |
| ], | |
| "use_dora": false, | |
| "use_rslora": false | |
| } | |