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 --config serve.yaml
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
Methods:¶
fastvideo.entrypoints.cli.cli_types.CLISubcommand.subparser_init
¶subparser_init(subparsers: _SubParsersAction) -> FlexibleArgumentParser
fastvideo.entrypoints.cli.eval
¶
fastvideo eval CLI: list registered eval metrics and run them
against a set of videos.
This is a thin wrapper around :mod:fastvideo.eval. Heavy lifting
(metric loading, GPU handling, batching) lives in
:func:fastvideo.eval.create_evaluator.
Examples::
fastvideo eval list
fastvideo eval list --group vbench
fastvideo eval run --videos path/to/videos/*.mp4 \
--metrics common.ssim --reference path/to/refs/
fastvideo eval run --videos clip.mp4 --metrics vbench.aesthetic_quality \
--output scores.json
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
Methods:¶
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
Source code in fastvideo/entrypoints/cli/main.py
fastvideo.entrypoints.cli.router_serve
¶
fastvideo router-serve CLI subcommand.
Launches the streaming router from a YAML config. Separate from
fastvideo serve because the router is an orthogonal process: it
fronts one or more running servers rather than hosting a generator
itself.
Classes¶
fastvideo.entrypoints.cli.router_serve.RouterServeSubcommand
¶
Bases: CLISubcommand
Start the multi-replica WebSocket router.
Source code in fastvideo/entrypoints/cli/router_serve.py
Functions:¶
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
|