import typer from commands import app @app.command() def benchmark( _ctx: typer.Context, model_path: str | None = typer.Option( None, "--model", "-m", help="Path to compressor model weights" ), ): from benchmarks import run_benchmark from configs import cfg_manager config = cfg_manager.get() benchmark_cfg = config.benchmark if model_path: config.model.compressor_path = model_path _ = run_benchmark( model=None, processor=None, config=benchmark_cfg, model_config=config.model, model_name="hash_compressor" if config.model.compressor_path else "dinov2", )