Views
No views yet


git clone https://github.com/kpsss34/walkyrie.git
1pip install git+https://github.com/huggingface/diffusers.git transformers accelerate torch torchvision ftfy
2git clone https://github.com/kpsss34/Walkyrie-1.3B.git
3cd Walkyrie-1.3B1import torch
2from pipeline_walkyrie import pipeline_walkyrie
3from diffusers import AutoencoderKLWan
4from PIL import Image
5
6
7device = "cuda" if torch.cuda.is_available() else "cpu"
8model_dtype = torch.bfloat16
9model_id = "kpsss34/Walkyrie-1.3B-v1.0"
10
11pipe = pipeline_walkyrie.from_pretrained(
12 model_id,
13 torch_dtype=model_dtype
14)
15pipe.enable_model_cpu_offload() #pipe.to(device)
16
17prompt = "a portrait of a young woman in a nightclub, cinematic film still, ultra wide aspect ratio, oval bokeh, soft highlight bloom, teal orange grading, film grain, moody lighting"
18
19negative_prompt = ""
20
21height = 1024
22width = 1024
23num_inference_steps = 20
24guidance_scale = 3.0
25
26generator = torch.Generator(device=device).manual_seed(0)
27output = pipe(
28 prompt=prompt,
29 negative_prompt=negative_prompt,
30 height=height,
31 width=width,
32 num_inference_steps=num_inference_steps,
33 guidance_scale=guidance_scale,
34 generator=generator,
35 output_type="pil"
36).frames[0]
37
38output.save("output.png")pipe.enable_model_cpu_offload()| Property | Value |
|---|---|
| Base model | Wan2.1-T2V-1.3B |
| Task | Text-to-Image |
| Text Encoder | UMT5 (pruned to ~1B) |
| VAE | AutoencoderKLWan |
| Scheduler | FlowMatchEulerDiscreteScheduler |
| Precision | bfloat16 |
| Resolution | 1024×768, 768x1024 (recommended) |
| VRAM | Setting |
|---|---|
| 16 GB+ | Full precision bfloat16 |
| 6–8 GB | enable_model_cpu_offload() |
Walkyrie 1.3B — Text-to-Image model derived from Wan2.1-T2V-1.3B
https://huggingface.co/kpsss34/Walkyrie-1.3B-v1.0
https://github.com/kpsss34
https://huggingface.co/kpsss34