Spaces:
Sleeping
Sleeping
Download solar_eval/cli/commands/quickrun.py from dev-strender/proofread-demo: direct link, hf CLI and curl.
- Browser
- Download file 1.69 kB
-
https://huggingface.co/spaces/dev-strender/proofread-demo/resolve/main/solar_eval/cli/commands/quickrun.py
- Command line
-
hf download hf://spaces/dev-strender/proofread-demo/solar_eval/cli/commands/quickrun.py
-
curl -L -o quickrun.py https://huggingface.co/spaces/dev-strender/proofread-demo/resolve/main/solar_eval/cli/commands/quickrun.py
1.69 kB
| """Quick-run: run + evaluate + compare in one command.""" | |
| import click | |
| def quick_run(ctx, project, task, prompt_name, model, pipeline_name, reasoning_effort, max_workers): | |
| """Run evaluation and compare with previous runs for the same task.""" | |
| cfg = ctx.obj["config"] | |
| if cfg.is_remote: | |
| raise click.ClickException("Quick-run is local-mode only") | |
| # Run evaluation | |
| from solar_eval.cli.commands.runs import _start_local | |
| click.secho("\nRunning evaluation...", fg="blue") | |
| _start_local( | |
| cfg, | |
| project=project, | |
| task=task, | |
| prompt_name=prompt_name, | |
| model=model, | |
| pipeline_name=pipeline_name, | |
| reasoning_effort=reasoning_effort, | |
| temperature=0.0, | |
| max_tokens=4000, | |
| max_workers=max_workers, | |
| limit=None, | |
| ) | |
| # Compare with previous runs for same task | |
| from solar_eval.cli.commands.compare import compare_command | |
| click.secho("\nComparing with previous runs:", fg="blue", bold=True) | |
| ctx.invoke(compare_command, project=project, task=task, run_ids=None, last=5) | |