Wonder-Griffin commited on
Commit
73b145e
·
verified ·
1 Parent(s): c7fc29c

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +33 -21
config.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "architectures": [
3
- "JudgeModel"
 
 
 
4
  ],
5
  "inference_mode": true,
6
  "batch_size": 32,
@@ -41,29 +44,38 @@
41
  "vocab_size": 50257,
42
  "warmup_steps": 1000,
43
  "weight_decay": 0.01,
44
- "megatron_config": null,
45
- "megatron_core": "megatron.core",
46
- "modules_to_save": [
47
- "classifier",
48
- "score"
49
- ],
50
- "peft_type": "LORA",
51
- "r": 16,
52
- "rank_pattern": {},
53
- "revision": null,
54
- "target_modules": [
55
- "c_proj",
56
- "c_attn",
57
- "c_fc",
58
- "score"
59
- ],
 
 
 
 
 
 
60
  "task_specific_params": {
61
  "text-generation": {
62
  "do_sample": true,
63
  "max_length": 100
 
 
 
 
 
 
64
  }
65
- },
66
- "task_type": "SEQ_CLS",
67
- "use_dora": false,
68
- "use_rslora": false
69
  }
 
1
  {
2
  "architectures": [
3
+ "JudgeModel",
4
+ "JudgeCasualLMHead",
5
+ "JudgeWithQA",
6
+ "JudgeClassifier"
7
  ],
8
  "inference_mode": true,
9
  "batch_size": 32,
 
44
  "vocab_size": 50257,
45
  "warmup_steps": 1000,
46
  "weight_decay": 0.01,
47
+
48
+ "task_heads": {
49
+ "lm_head": {
50
+ "type": "JudgeCasualLMHead",
51
+ "params": {
52
+ "vocab_size": 50257
53
+ }
54
+ },
55
+ "qa_head": {
56
+ "type": "JudgeWithQA",
57
+ "params": {
58
+ "num_labels": 2
59
+ }
60
+ },
61
+ "classifier_head": {
62
+ "type": "JudgeClassifier",
63
+ "params": {
64
+ "num_labels": 5
65
+ }
66
+ }
67
+ },
68
+
69
  "task_specific_params": {
70
  "text-generation": {
71
  "do_sample": true,
72
  "max_length": 100
73
+ },
74
+ "question-answering": {
75
+ "max_answer_length": 30
76
+ },
77
+ "sequence-classification": {
78
+ "eval_steps": 500
79
  }
80
+ }
 
 
 
81
  }