qnguyen3 commited on
Commit
1365423
1 Parent(s): 3d4d151

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: qnguyen3/quan-1.8b-1e
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: qwen-1.8b-vi
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
14
+ <details><summary>See axolotl config</summary>
15
+
16
+ axolotl version: `0.3.0`
17
+ ```yaml
18
+ base_model: qnguyen3/quan-1.8b-1e
19
+ model_type: AutoModelForCausalLM
20
+ tokenizer_type: AutoTokenizer
21
+
22
+ trust_remote_code: false
23
+
24
+ load_in_8bit: false
25
+ load_in_4bit: false
26
+ strict: false
27
+
28
+ datasets:
29
+ - path: vilm/pretrained_baomoi_2023
30
+ type: completion
31
+ - path: vilm/pretrained_baomoi_2022_1
32
+ type: completion
33
+ dataset_prepared_path: ./qwen_prepared
34
+ val_set_size: 0.00
35
+ output_dir: ./qwen-1.8b-vi
36
+
37
+ sequence_len: 4096 # supports up to 8192
38
+ sample_packing: true
39
+ pad_to_sequence_len:
40
+ wandb_project: qwen-vi-pt
41
+ wandb_entity:
42
+ wandb_watch:
43
+ wandb_name:
44
+ wandb_log_model:
45
+
46
+ gradient_accumulation_steps: 4
47
+ micro_batch_size: 2
48
+ num_epochs: 1
49
+ optimizer: adamw_bnb_8bit
50
+ lr_scheduler: cosine
51
+ learning_rate: 0.00003
52
+
53
+ train_on_input: true
54
+ group_by_length: false
55
+ bf16: true
56
+ fp16: false
57
+ tf32: false
58
+
59
+ gradient_checkpointing: true
60
+ early_stopping_patience:
61
+ resume_from_checkpoint:
62
+ local_rank:
63
+ logging_steps: 1
64
+ xformers_attention:
65
+ flash_attention: true
66
+
67
+ warmup_steps: 100
68
+ evals_per_epoch: 0
69
+ eval_table_size:
70
+ eval_table_max_new_tokens:
71
+ saves_per_epoch: 4
72
+ debug:
73
+ deepspeed: deepspeed_configs/zero3_bf16.json
74
+ weight_decay: 0.0
75
+ fsdp:
76
+ special_tokens:
77
+ eos_token: "<|im_end|>"
78
+ pad_token: "<|im_end|>"
79
+
80
+ ```
81
+
82
+ </details><br>
83
+
84
+ # qwen-1.8b-vi
85
+
86
+ This model is a fine-tuned version of [qnguyen3/quan-1.8b-1e](https://huggingface.co/qnguyen3/quan-1.8b-1e) on the None dataset.
87
+
88
+ ## Model description
89
+
90
+ More information needed
91
+
92
+ ## Intended uses & limitations
93
+
94
+ More information needed
95
+
96
+ ## Training and evaluation data
97
+
98
+ More information needed
99
+
100
+ ## Training procedure
101
+
102
+ ### Training hyperparameters
103
+
104
+ The following hyperparameters were used during training:
105
+ - learning_rate: 3e-05
106
+ - train_batch_size: 2
107
+ - eval_batch_size: 2
108
+ - seed: 42
109
+ - distributed_type: multi-GPU
110
+ - num_devices: 4
111
+ - gradient_accumulation_steps: 4
112
+ - total_train_batch_size: 32
113
+ - total_eval_batch_size: 8
114
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
115
+ - lr_scheduler_type: cosine
116
+ - lr_scheduler_warmup_steps: 100
117
+ - num_epochs: 1
118
+
119
+ ### Training results
120
+
121
+
122
+
123
+ ### Framework versions
124
+
125
+ - Transformers 4.37.0
126
+ - Pytorch 2.0.1+cu118
127
+ - Datasets 2.16.1
128
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "qnguyen3/quan-1.8b-1e",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": true,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 128245,
9
+ "eos_token_id": 151645,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2048,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 5504,
14
+ "max_position_embeddings": 8192,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 24,
18
+ "num_key_value_heads": 16,
19
+ "pretraining_tp": 1,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 10000.0,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.37.0",
26
+ "use_cache": false,
27
+ "vocab_size": 151936
28
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chat_format": "chatml",
3
+ "do_sample": true,
4
+ "eos_token_id": 151643,
5
+ "max_new_tokens": 512,
6
+ "max_window_size": 6144,
7
+ "pad_token_id": 151643,
8
+ "repetition_penalty": 1.1,
9
+ "top_k": 0,
10
+ "top_p": 0.8,
11
+ "transformers_version": "4.37.0"
12
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec287aaa7db21c6b4e244f387b694b17bcc3aef14001fe253ed63721b2fa071a
3
+ size 3673791648
special_tokens_map.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": {
4
+ "content": "<|im_end|>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "pad_token": {
11
+ "content": "<|im_end|>",
12
+ "lstrip": false,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ "unk_token": "<unk>"
18
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "128244": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "128245": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "128247": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151643": {
30
+ "content": "<|endoftext|>",
31
+ "lstrip": false,
32
+ "normalized": true,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151644": {
38
+ "content": "<|im_start|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151645": {
46
+ "content": "<|im_end|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ }
53
+ },
54
+ "bos_token": "<s>",
55
+ "clean_up_tokenization_spaces": false,
56
+ "eos_token": "<|im_end|>",
57
+ "model_max_length": 1000000000000000019884624838656,
58
+ "pad_token": "<|im_end|>",
59
+ "tokenizer_class": "LlamaTokenizer",
60
+ "unk_token": "<unk>",
61
+ "use_default_system_prompt": false
62
+ }