IPostYellow commited on
Commit
0b032ed
·
verified ·
1 Parent(s): 0ffc3eb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md CHANGED
@@ -13,3 +13,27 @@ pipeline_tag: text-to-video
13
  convert TurboWan2.2-I2V-A14B-720P(https://modelscope.cn/models/TurboDiffusion/TurboWan2.2-I2V-A14B-720P/summary) to TurboWan2.2-I2V-A14B-Diffusers
14
  convert script https://github.com/IPostYellow/TurboWan_to_Diffusers/blob/main/convert_turbowan_to_diffusers.py
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  convert TurboWan2.2-I2V-A14B-720P(https://modelscope.cn/models/TurboDiffusion/TurboWan2.2-I2V-A14B-720P/summary) to TurboWan2.2-I2V-A14B-Diffusers
14
  convert script https://github.com/IPostYellow/TurboWan_to_Diffusers/blob/main/convert_turbowan_to_diffusers.py
15
 
16
+ To use in sglang<br>
17
+ bash server:
18
+ ```bash
19
+ sglang serve \
20
+ --model-path /home/admin/TurboWan2.2-I2V-A14B-Diffusers \
21
+ --dit-cpu-offload false \
22
+ --text-encoder-cpu-offload false \
23
+ --image-encoder-cpu-offload false \
24
+ --vae-cpu-offload false \
25
+ --pin-cpu-memory false \
26
+ --num-gpus 2 \
27
+ --tp-size 2
28
+ ```
29
+
30
+ send request:
31
+ ```python
32
+ import requests
33
+ prompt = "POV selfie video, ultra-messy and extremely fast. A white cat in sunglasses stands on a surfboard with a neutral look when the board suddenly whips sideways, throwing cat and camera into the water; the frame dives sharply downward, swallowed by violent bursts of bubbles, spinning turbulence, and smeared water streaks as the camera sinks. Shadows thicken, pressure ripples distort the edges, and loose bubbles rush upward past the lens, showing the camera is still sinking. Then the cat kicks upward with explosive speed, dragging the view through churning bubbles and rapidly brightening water as sunlight floods back in; the camera races upward, water streaming off the lens, and finally breaks the surface in a sudden blast of light and spray, snapping back into a crooked, frantic selfie as the cat resurfaces."
34
+ response = requests.post("http://localhost:30000/v1/videos",
35
+ files={'prompt': (None,prompt), 'size': (None,'720x1280'),'reference_url':(None,"https://raw.githubusercontent.com/IPostYellow/TurboWan_to_Diffusers/refs/heads/main/input_image/i2v_input_0.jpg"),'num_inference_steps':(None,"4"),'fps':(None,"16"),'num_frames':(None,"81"),'seed':(None,"0")})
36
+
37
+ print("Status Code:", response.status_code)
38
+ print("Response Body:", response.text)
39
+ ```