cli
¶
Modules¶
fastvideo.entrypoints.cli.bench
¶
Runs benchmark against a running FastVideo OpenAI-compatible server.
Example usage
fastvideo bench --dataset vbench --num-prompts 20 --port 8000
fastvideo.entrypoints.cli.bench_serving
¶
Benchmark online serving for diffusion models (Image/Video Generation).
Example usage
launch a server and benchmark on it¶
T2V or T2I or any other multimodal generation model¶
fastvideo serve --model-path Wan-AI/Wan2.1-T2V-1.3B-Diffusers --port 8000
benchmark it and make sure the port is the same as the server's port¶
fastvideo bench --dataset vbench --num-prompts 20 --port 8000
fastvideo.entrypoints.cli.cli_types
¶
Classes¶
fastvideo.entrypoints.cli.cli_types.CLISubcommand
¶
Base class for CLI subcommands
Functions¶
fastvideo.entrypoints.cli.cli_types.CLISubcommand.subparser_init
¶subparser_init(subparsers: _SubParsersAction) -> FlexibleArgumentParser
fastvideo.entrypoints.cli.generate
¶
Classes¶
fastvideo.entrypoints.cli.generate.GenerateSubcommand
¶
Bases: CLISubcommand
The generate subcommand for the FastVideo CLI
Source code in fastvideo/entrypoints/cli/generate.py
Functions¶
fastvideo.entrypoints.cli.generate.GenerateSubcommand.validate
¶validate(args: Namespace) -> None
Validate the arguments for this command
Source code in fastvideo/entrypoints/cli/generate.py
Functions¶
fastvideo.entrypoints.cli.main
¶
Classes¶
Functions¶
fastvideo.entrypoints.cli.main.cmd_init
¶
cmd_init() -> list[CLISubcommand]
Initialize all commands from separate modules
fastvideo.entrypoints.cli.serve
¶
fastvideo.entrypoints.cli.utils
¶
Functions¶
fastvideo.entrypoints.cli.utils.launch_distributed
¶
Launch a distributed job with the given arguments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_gpus
|
int
|
Number of GPUs to use |
required |
args
|
list[str]
|
Arguments to pass to v1_fastvideo_inference.py (defaults to sys.argv[1:]) |
required |
master_port
|
int | None
|
Port for the master process (default: random) |
None
|