From 079ac237da88a61ea68d3643465fa5bca525c928 Mon Sep 17 00:00:00 2001 From: R0CKSTAR Date: Thu, 4 Dec 2025 22:05:38 +0800 Subject: [PATCH] [diffusion] fix: fix gen video doc (#14409) Signed-off-by: Xiaodong Ye Co-authored-by: Mick --- python/sglang/multimodal_gen/README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/python/sglang/multimodal_gen/README.md b/python/sglang/multimodal_gen/README.md index 68c9fb4b7..363251663 100644 --- a/python/sglang/multimodal_gen/README.md +++ b/python/sglang/multimodal_gen/README.md @@ -37,15 +37,14 @@ def main(): num_gpus=1, # Adjust based on your hardware ) - # Provide a prompt for your video - prompt = "A curious raccoon peers through a vibrant field of yellow sunflowers, its eyes wide with interest." - # Generate the video video = generator.generate( - prompt, - return_frames=True, # Also return frames from this call (defaults to False) - output_path="my_videos/", # Controls where videos are saved - save_output=True + sampling_params_kwargs=dict( + prompt="A curious raccoon peers through a vibrant field of yellow sunflowers, its eyes wide with interest.", + return_frames=True, # Also return frames from this call (defaults to False) + output_path="my_videos/", # Controls where videos are saved + save_output=True + ) ) if __name__ == '__main__':