Diffusers
Safetensors
WanPipeline
lianglv commited on
Commit
8588f48
·
verified ·
1 Parent(s): c957434

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -3
README.md CHANGED
@@ -1,3 +1,80 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - Wan-AI/Wan2.2-TI2V-5B-Diffusers
5
+ ---
6
+
7
+ ## Model Details
8
+
9
+ This model is an int4 model with group_size 128 and symmetric quantization of [Wan-AI/Wan2.2-TI2V-5B-Diffusers](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers) generated by [intel/auto-round](https://github.com/intel/auto-round). Please follow the license of the original model.
10
+
11
+ ## How to Use
12
+
13
+ ### Environment
14
+
15
+ ```bash
16
+ pip install pip install git+https://github.com/lvliang-intel/vllm-omni.git@feats/ar-w4a16-wan22
17
+ pip install transformers
18
+ ```
19
+
20
+ ### VLLM Usage
21
+
22
+ Serving:
23
+ ```bash
24
+ vllm serve Intel/Wan2.2-TI2V-5B-Diffusers-int4-AutoRound --omni --port 8091
25
+ ```
26
+
27
+ Access the service:
28
+ ```bash
29
+ wget https://vllm-public-assets.s3.us-west-2.amazonaws.com/vision_model_images/cherry_blossom.jpg
30
+ curl -X POST "http://127.0.0.1:8091/v1/videos/sync" \
31
+ -F 'prompt=Cherry blossoms swaying gently in the breeze, petals falling, smooth motion' \
32
+ -F 'negative_prompt=optional quality filter' \
33
+ -F 'input_reference=@./cherry_blossom.jpg' \
34
+ -F 'width=832' \
35
+ -F 'height=480' \
36
+ -F 'num_frames=48' \
37
+ -F 'fps=16' \
38
+ -F 'num_inference_steps=40' \
39
+ -F 'guidance_scale=5.0' \
40
+ -F 'guidance_scale_2=6.0' \
41
+ -F 'boundary_ratio=0.875' \
42
+ -F 'flow_shift=12.0' \
43
+ --output i2v_output.mp4
44
+ ```
45
+
46
+ ## Generate the Model
47
+
48
+ ```bash
49
+ auto-round --model_name Wan-AI/Wan2.2-TI2V-5B-Diffusers --format auto_round --scheme W4A16 --iters 100 --nsamples 32 --batch-size 1 --num-inference-steps 3 --guidance-scale 5.0 --dataset coco2014 --output_dir Wan-AI/Wan2.2-TI2V-5B-Diffusers-int4-AutoRound
50
+ ```
51
+
52
+ ## Ethical Considerations and Limitations
53
+
54
+ The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
55
+ Therefore, before deploying any applications of the model, developers should perform safety testing.
56
+
57
+ ## Caveats and Recommendations
58
+
59
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
60
+ Here are a couple of useful links to learn more about Intel's AI software:
61
+
62
+ - [Intel Neural Compressor](https://github.com/intel/neural-compressor)
63
+ - [AutoRound](https://github.com/intel/auto-round)
64
+
65
+ ## Disclaimer
66
+
67
+ The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.
68
+
69
+ ## Cite
70
+
71
+ ```
72
+ @article{cheng2023optimize,
73
+ title={Optimize weight rounding via signed gradient descent for the quantization of llms},
74
+ author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
75
+ journal={arXiv preprint arXiv:2309.05516},
76
+ year={2023}
77
+ }
78
+ ```
79
+
80
+ [arxiv](https://arxiv.org/abs/2309.05516) [github](https://github.com/intel/auto-round)