chiliu commited on
Commit
90450ac
1 Parent(s): 7ba0cd6
cfg.yaml ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ architecture:
2
+ backbone_dtype: float16
3
+ force_embedding_gradients: false
4
+ gradient_checkpointing: true
5
+ intermediate_dropout: 0.0
6
+ pretrained: true
7
+ pretrained_weights: ''
8
+ augmentation:
9
+ random_parent_probability: 0.0
10
+ skip_parent_probability: 0.0
11
+ token_mask_probability: 0.0
12
+ dataset:
13
+ add_eos_token_to_answer: true
14
+ add_eos_token_to_prompt: true
15
+ add_eos_token_to_system: true
16
+ answer_column: output
17
+ chatbot_author: H2O.ai
18
+ chatbot_name: h2oGPT
19
+ data_sample: 1.0
20
+ data_sample_choice:
21
+ - Train
22
+ - Validation
23
+ limit_chained_samples: false
24
+ mask_prompt_labels: true
25
+ parent_id_column: None
26
+ personalize: false
27
+ prompt_column:
28
+ - instruction
29
+ system_column: None
30
+ text_answer_separator: <|answer|>
31
+ text_prompt_start: <|prompt|>
32
+ text_system_start: <|system|>
33
+ train_dataframe: data/user/oasst/train_oasst_dolly_evol.csv
34
+ validation_dataframe: data/user/oasst/valid_oasst_dolly_evol.csv
35
+ validation_size: 0.01
36
+ validation_strategy: custom
37
+ environment:
38
+ compile_model: false
39
+ find_unused_parameters: false
40
+ gpus:
41
+ - '0'
42
+ huggingface_branch: main
43
+ mixed_precision: true
44
+ number_of_workers: 1
45
+ seed: -1
46
+ trust_remote_code: true
47
+ use_fsdp: false
48
+ experiment_name: blue-zebu
49
+ llm_backbone: openlm-research/open_llama_3b_v2
50
+ logging:
51
+ logger: None
52
+ neptune_project: ''
53
+ number_of_texts: 10
54
+ output_directory: /workspace/output/user/blue-zebu/
55
+ prediction:
56
+ batch_size_inference: 0
57
+ do_sample: true
58
+ max_length_inference: 256
59
+ metric: BLEU
60
+ metric_gpt_model: gpt-3.5-turbo-0301
61
+ min_length_inference: 2
62
+ num_beams: 1
63
+ num_history: 4
64
+ repetition_penalty: 1.2
65
+ stop_tokens: ''
66
+ temperature: 0.3
67
+ top_k: 40
68
+ top_p: 0.8
69
+ problem_type: text_causal_language_modeling
70
+ tokenizer:
71
+ add_prefix_space: false
72
+ add_prompt_answer_tokens: false
73
+ max_length: 2048
74
+ max_length_answer: 2048
75
+ max_length_prompt: 2048
76
+ padding_quantile: 1.0
77
+ use_fast: false
78
+ training:
79
+ adaptive_kl_control: true
80
+ advantages_gamma: 0.99
81
+ advantages_lambda: 0.95
82
+ batch_size: 3
83
+ differential_learning_rate: 1.0e-05
84
+ differential_learning_rate_layers: []
85
+ drop_last_batch: true
86
+ epochs: 3
87
+ evaluate_before_training: false
88
+ evaluation_epochs: 1.0
89
+ grad_accumulation: 1
90
+ gradient_clip: 0.0
91
+ initial_kl_coefficient: 0.2
92
+ kl_horizon: 10000
93
+ kl_target: 6.0
94
+ learning_rate: 5.0e-05
95
+ lora: true
96
+ lora_alpha: 16
97
+ lora_dropout: 0.1
98
+ lora_r: 256
99
+ lora_target_modules: ''
100
+ loss_function: TokenAveragedCrossEntropy
101
+ offload_reward_model: false
102
+ optimizer: AdamW
103
+ ppo_batch_size: 1
104
+ ppo_clip_policy: 0.2
105
+ ppo_clip_value: 0.2
106
+ ppo_epochs: 4
107
+ ppo_generate_temperature: 1.0
108
+ reward_model: OpenAssistant/reward-model-deberta-v3-large-v2
109
+ save_best_checkpoint: false
110
+ scaling_factor_value_loss: 0.1
111
+ schedule: Cosine
112
+ train_validation_data: false
113
+ use_rlhf: false
114
+ warmup_epochs: 0.0
115
+ weight_decay: 0.0
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openlm-research/open_llama_3b_v2",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 3200,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 8640,
14
+ "max_position_embeddings": 2048,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 32,
17
+ "num_hidden_layers": 26,
18
+ "num_key_value_heads": 32,
19
+ "pad_token_id": 0,
20
+ "pretraining_tp": 1,
21
+ "rms_norm_eps": 1e-06,
22
+ "rope_scaling": null,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "float16",
25
+ "transformers_version": "4.31.0",
26
+ "use_cache": true,
27
+ "vocab_size": 32000
28
+ }
flags.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"status": "finished", "info": "Runtime: 14:50:58"}
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.31.0"
7
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": "</s>",
10
+ "eos_token": {
11
+ "content": "</s>",
12
+ "lstrip": false,
13
+ "normalized": true,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ "pad_token": "<unk>",
18
+ "sep_token": "</s>",
19
+ "unk_token": {
20
+ "content": "<unk>",
21
+ "lstrip": false,
22
+ "normalized": true,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ }
26
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91b289e85fa20fd375d8b33dc12f77616f18abc6359804471d1fafcb425fecb8
3
+ size 511574
tokenizer_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": false,
5
+ "bos_token": {
6
+ "__type": "AddedToken",
7
+ "content": "<s>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "clean_up_tokenization_spaces": false,
14
+ "eos_token": {
15
+ "__type": "AddedToken",
16
+ "content": "</s>",
17
+ "lstrip": false,
18
+ "normalized": true,
19
+ "rstrip": false,
20
+ "single_word": false
21
+ },
22
+ "legacy": true,
23
+ "model_max_length": 2048,
24
+ "pad_token": null,
25
+ "sp_model_kwargs": {},
26
+ "tokenizer_class": "LlamaTokenizer",
27
+ "unk_token": {
28
+ "__type": "AddedToken",
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ }
35
+ }