Manage cached optimization results from previous runs. This command allows you to list, view, delete, export, and import optimization results, as well as set default configurations for model/task combinations.
python -m wisent optimization-cache [list|show|delete|clear|set-default|get-default|export|import] [OPTIONS]
python -m wisent optimization-cache list
python -m wisent optimization-cache list --model meta-llama/Llama-3.1-8B-Instruct
python -m wisent optimization-cache show meta-llama/Llama-3.1-8B-Instruct refusal
python -m wisent optimization-cache set-default meta-llama/Llama-3.1-8B-Instruct refusal --method CAA
python -m wisent optimization-cache export ./optimization_cache_backup.json
python -m wisent optimization-cache import ./optimization_cache_backup.json --merge
python -m wisent optimization-cache clear --confirm
| Subcommand | Description |
|---|---|
| list | List cached optimization results (optionally filter by --model or --task) |
| show | Show details of a cached result (requires model and task positional args) |
| delete | Delete a specific cached result (requires model and task positional args) |
| clear | Clear all cached results (requires --confirm flag) |
| set-default | Set a cached result as default for a model/task |
| get-default | Get the default optimization result for a model/task |
| export | Export cache to a JSON file |
| import | Import cache from a JSON file (use --merge to combine with existing) |
| Option | Default | Description |
|---|---|---|
| --model | - | Filter by model name (for list) or model name (for show/delete) |
| --task | - | Filter by task name (for list) |
| --method | CAA | Steering method (for show/delete/set-default) |
| --confirm | false | Confirm clearing all cached results (for clear) |
| --merge | false | Merge with existing cache instead of replacing (for import) |
Stay in the loop. Never miss out.
Subscribe to our newsletter and unlock Wisent insights.