model-config

Handle specific best parameter settings. Save, display, delete, try out and configure various models. To manage specific best parameters for different models,

Basic Usage
python -m wisent model-config SUBCOMMAND [OPTIONS]

Subcommands

  • save - Save optimal parameters for a model
  • list - List all saved model configurations
  • show - Show configuration for a specific model
  • remove - Remove configuration for a model
  • test - Test if saved configuration works

Save Configuration

Save optimal parameters for a model after optimization.

Save Config
python -m wisent model-config save \
  meta-llama/Llama-3.1-8B-Instruct \
  --classification-layer 15 \
  --steering-layer 15 \
  --token-aggregation average \
  --detection-threshold 0.6 \
  --optimization-method optuna
ArgumentRequiredDescription
modelYesModel name or path
--classification-layerYesOptimal layer for classification
--steering-layerNoOptimal layer for steering (defaults to classification layer)
--token-aggregationNoToken aggregation method (default: average)
--detection-thresholdNoDetection threshold (default: 0.6)
--optimization-methodNoHow parameters were determined (default: manual)
--metricsNoJSON string with optimization metrics

List Configurations

List All Configs
python -m wisent model-config list
List with Details
python -m wisent model-config list --detailed

Show Configuration

Show Config
python -m wisent model-config show \
  meta-llama/Llama-3.1-8B-Instruct
Show Task-Specific Config
python -m wisent model-config show \
  meta-llama/Llama-3.1-8B-Instruct \
  --task truthfulqa_mc1

Remove Configuration

Remove Config
python -m wisent model-config remove \
  meta-llama/Llama-3.1-8B-Instruct \
  --confirm

Test Configuration

Test Config
python -m wisent model-config test \
  meta-llama/Llama-3.1-8B-Instruct \
  --task truthfulqa_mc1 \
  --limit 5

Global Options

ArgumentDescription
--config-dirCustom directory for configuration files (default: ~/.wisent/model_configs/)
--verboseEnable verbose output

Related Commands

Stay in the loop. Never miss out.

Subscribe to our newsletter and unlock Wisent insights.