File size: 1,249 Bytes
6c482f9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""
Example experiment configuration for Agent Tuning Optimization Framework

This configuration file defines parameters for running an experiment with the framework.
"""

{
  "name": "agent_tuning_experiment",
  "description": "Experiment to evaluate the effectiveness of negative and synthetic samples in agent tuning",
  
  "llm": {
    "model_name": "gpt2",
    "model_type": "causal",
    "device": "cpu",
    "max_length": 512,
    "temperature": 0.7
  },
  
  "dataset": {
    "name": "agent_tuning_dataset",
    "num_trajectories": 20
  },
  
  "negative_samples": {
    "enabled": true,
    "method": "response_degradation",
    "params": {
      "degradation_level": 0.6
    }
  },
  
  "synthetic_trajectories": {
    "enabled": true,
    "method": "template",
    "params": {
      "num_interactions": 3
    }
  },
  
  "tuning": {
    "method": "supervised",
    "params": {
      "num_train_epochs": 3,
      "learning_rate": 5e-5,
      "batch_size": 4,
      "gradient_accumulation_steps": 4,
      "positive_weight": 0.8
    }
  },
  
  "evaluation": {
    "method": "quality",
    "params": {
      "num_samples": 10
    },
    "comparative": {
      "enabled": true,
      "params": {
        "num_samples": 5
      }
    }
  }
}