lyy14011305 commited on
Commit
d97772d
·
verified ·
1 Parent(s): 705d935

Upload 13 files

Browse files
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: Qwen/Qwen-7B-Chat
4
+ ---
5
+ ## Training procedure
6
+
7
+
8
+ The following `bitsandbytes` quantization config was used during training:
9
+ - quant_method: bitsandbytes
10
+ - _load_in_8bit: False
11
+ - _load_in_4bit: True
12
+ - llm_int8_threshold: 6.0
13
+ - llm_int8_skip_modules: None
14
+ - llm_int8_enable_fp32_cpu_offload: False
15
+ - llm_int8_has_fp16_weight: False
16
+ - bnb_4bit_quant_type: nf4
17
+ - bnb_4bit_use_double_quant: True
18
+ - bnb_4bit_compute_dtype: float16
19
+ - bnb_4bit_quant_storage: uint8
20
+ - load_in_4bit: True
21
+ - load_in_8bit: False
22
+
23
+ The following `bitsandbytes` quantization config was used during training:
24
+ - quant_method: bitsandbytes
25
+ - _load_in_8bit: False
26
+ - _load_in_4bit: True
27
+ - llm_int8_threshold: 6.0
28
+ - llm_int8_skip_modules: None
29
+ - llm_int8_enable_fp32_cpu_offload: False
30
+ - llm_int8_has_fp16_weight: False
31
+ - bnb_4bit_quant_type: nf4
32
+ - bnb_4bit_use_double_quant: True
33
+ - bnb_4bit_compute_dtype: float16
34
+ - bnb_4bit_quant_storage: uint8
35
+ - load_in_4bit: True
36
+ - load_in_8bit: False
37
+ ### Framework versions
38
+
39
+ - PEFT 0.10.0
40
+ - PEFT 0.4.0
41
+
42
+ - PEFT 0.4.0
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen-7B-Chat",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 64,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "c_attn",
24
+ "c_proj",
25
+ "w1",
26
+ "w2"
27
+ ],
28
+ "task_type": "CAUSAL_LM",
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28a0a588fd3bbdc025a5f0219a67e55dfc86b7c52ccf9d687691eb4530beebdf
3
+ size 572564296
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.97,
3
+ "total_flos": 1423859773341696.0,
4
+ "train_loss": 0.806224524974823,
5
+ "train_runtime": 27.1159,
6
+ "train_samples_per_second": 1.217,
7
+ "train_steps_per_second": 0.074
8
+ }
qwen.tiktoken ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>"
5
+ }
tokenization_qwen.py ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Alibaba Cloud.
2
+ #
3
+ # This source code is licensed under the license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ """Tokenization classes for QWen."""
7
+
8
+ import base64
9
+ import logging
10
+ import os
11
+ import unicodedata
12
+ from typing import Collection, Dict, List, Set, Tuple, Union
13
+
14
+ import tiktoken
15
+ from transformers import PreTrainedTokenizer, AddedToken
16
+
17
+ logger = logging.getLogger(__name__)
18
+
19
+
20
+ VOCAB_FILES_NAMES = {"vocab_file": "qwen.tiktoken"}
21
+
22
+ PAT_STR = r"""(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\p{L}\p{N}]?\p{L}+|\p{N}| ?[^\s\p{L}\p{N}]+[\r\n]*|\s*[\r\n]+|\s+(?!\S)|\s+"""
23
+ ENDOFTEXT = "<|endoftext|>"
24
+ IMSTART = "<|im_start|>"
25
+ IMEND = "<|im_end|>"
26
+ # as the default behavior is changed to allow special tokens in
27
+ # regular texts, the surface forms of special tokens need to be
28
+ # as different as possible to minimize the impact
29
+ EXTRAS = tuple((f"<|extra_{i}|>" for i in range(205)))
30
+ # changed to use actual index to avoid misconfiguration with vocabulary expansion
31
+ SPECIAL_START_ID = 151643
32
+ SPECIAL_TOKENS = tuple(
33
+ enumerate(
34
+ (
35
+ (
36
+ ENDOFTEXT,
37
+ IMSTART,
38
+ IMEND,
39
+ )
40
+ + EXTRAS
41
+ ),
42
+ start=SPECIAL_START_ID,
43
+ )
44
+ )
45
+ SPECIAL_TOKENS_SET = set(t for i, t in SPECIAL_TOKENS)
46
+
47
+
48
+ def _load_tiktoken_bpe(tiktoken_bpe_file: str) -> Dict[bytes, int]:
49
+ with open(tiktoken_bpe_file, "rb") as f:
50
+ contents = f.read()
51
+ return {
52
+ base64.b64decode(token): int(rank)
53
+ for token, rank in (line.split() for line in contents.splitlines() if line)
54
+ }
55
+
56
+
57
+ class QWenTokenizer(PreTrainedTokenizer):
58
+ """QWen tokenizer."""
59
+
60
+ vocab_files_names = VOCAB_FILES_NAMES
61
+
62
+ def __init__(
63
+ self,
64
+ vocab_file,
65
+ errors="replace",
66
+ extra_vocab_file=None,
67
+ **kwargs,
68
+ ):
69
+ super().__init__(**kwargs)
70
+
71
+ # how to handle errors in decoding UTF-8 byte sequences
72
+ # use ignore if you are in streaming inference
73
+ self.errors = errors
74
+
75
+ self.mergeable_ranks = _load_tiktoken_bpe(vocab_file) # type: Dict[bytes, int]
76
+ self.special_tokens = {
77
+ token: index
78
+ for index, token in SPECIAL_TOKENS
79
+ }
80
+
81
+ # try load extra vocab from file
82
+ if extra_vocab_file is not None:
83
+ used_ids = set(self.mergeable_ranks.values()) | set(self.special_tokens.values())
84
+ extra_mergeable_ranks = _load_tiktoken_bpe(extra_vocab_file)
85
+ for token, index in extra_mergeable_ranks.items():
86
+ if token in self.mergeable_ranks:
87
+ logger.info(f"extra token {token} exists, skipping")
88
+ continue
89
+ if index in used_ids:
90
+ logger.info(f'the index {index} for extra token {token} exists, skipping')
91
+ continue
92
+ self.mergeable_ranks[token] = index
93
+ # the index may be sparse after this, but don't worry tiktoken.Encoding will handle this
94
+
95
+ enc = tiktoken.Encoding(
96
+ "Qwen",
97
+ pat_str=PAT_STR,
98
+ mergeable_ranks=self.mergeable_ranks,
99
+ special_tokens=self.special_tokens,
100
+ )
101
+ assert (
102
+ len(self.mergeable_ranks) + len(self.special_tokens) == enc.n_vocab
103
+ ), f"{len(self.mergeable_ranks) + len(self.special_tokens)} != {enc.n_vocab} in encoding"
104
+
105
+ self.decoder = {
106
+ v: k for k, v in self.mergeable_ranks.items()
107
+ } # type: dict[int, bytes|str]
108
+ self.decoder.update({v: k for k, v in self.special_tokens.items()})
109
+
110
+ self.tokenizer = enc # type: tiktoken.Encoding
111
+
112
+ self.eod_id = self.tokenizer.eot_token
113
+ self.im_start_id = self.special_tokens[IMSTART]
114
+ self.im_end_id = self.special_tokens[IMEND]
115
+
116
+ def __getstate__(self):
117
+ # for pickle lovers
118
+ state = self.__dict__.copy()
119
+ del state["tokenizer"]
120
+ return state
121
+
122
+ def __setstate__(self, state):
123
+ # tokenizer is not python native; don't pass it; rebuild it
124
+ self.__dict__.update(state)
125
+ enc = tiktoken.Encoding(
126
+ "Qwen",
127
+ pat_str=PAT_STR,
128
+ mergeable_ranks=self.mergeable_ranks,
129
+ special_tokens=self.special_tokens,
130
+ )
131
+ self.tokenizer = enc
132
+
133
+ def __len__(self) -> int:
134
+ return self.tokenizer.n_vocab
135
+
136
+ def get_vocab(self) -> Dict[bytes, int]:
137
+ return self.mergeable_ranks
138
+
139
+ def convert_tokens_to_ids(
140
+ self, tokens: Union[bytes, str, List[Union[bytes, str]]]
141
+ ) -> List[int]:
142
+ ids = []
143
+ if isinstance(tokens, (str, bytes)):
144
+ if tokens in self.special_tokens:
145
+ return self.special_tokens[tokens]
146
+ else:
147
+ return self.mergeable_ranks.get(tokens)
148
+ for token in tokens:
149
+ if token in self.special_tokens:
150
+ ids.append(self.special_tokens[token])
151
+ else:
152
+ ids.append(self.mergeable_ranks.get(token))
153
+ return ids
154
+
155
+ def _add_tokens(
156
+ self,
157
+ new_tokens: Union[List[str], List[AddedToken]],
158
+ special_tokens: bool = False,
159
+ ) -> int:
160
+ if not special_tokens and new_tokens:
161
+ raise ValueError("Adding regular tokens is not supported")
162
+ for token in new_tokens:
163
+ surface_form = token.content if isinstance(token, AddedToken) else token
164
+ if surface_form not in SPECIAL_TOKENS_SET:
165
+ raise ValueError("Adding unknown special tokens is not supported")
166
+ return 0
167
+
168
+ def save_vocabulary(self, save_directory: str, **kwargs) -> Tuple[str]:
169
+ """
170
+ Save only the vocabulary of the tokenizer (vocabulary).
171
+
172
+ Returns:
173
+ `Tuple(str)`: Paths to the files saved.
174
+ """
175
+ file_path = os.path.join(save_directory, "qwen.tiktoken")
176
+ with open(file_path, "w", encoding="utf8") as w:
177
+ for k, v in self.mergeable_ranks.items():
178
+ line = base64.b64encode(k).decode("utf8") + " " + str(v) + "\n"
179
+ w.write(line)
180
+ return (file_path,)
181
+
182
+ def tokenize(
183
+ self,
184
+ text: str,
185
+ allowed_special: Union[Set, str] = "all",
186
+ disallowed_special: Union[Collection, str] = (),
187
+ **kwargs,
188
+ ) -> List[Union[bytes, str]]:
189
+ """
190
+ Converts a string in a sequence of tokens.
191
+
192
+ Args:
193
+ text (`str`):
194
+ The sequence to be encoded.
195
+ allowed_special (`Literal["all"]` or `set`):
196
+ The surface forms of the tokens to be encoded as special tokens in regular texts.
197
+ Default to "all".
198
+ disallowed_special (`Literal["all"]` or `Collection`):
199
+ The surface forms of the tokens that should not be in regular texts and trigger errors.
200
+ Default to an empty tuple.
201
+
202
+ kwargs (additional keyword arguments, *optional*):
203
+ Will be passed to the underlying model specific encode method.
204
+
205
+ Returns:
206
+ `List[bytes|str]`: The list of tokens.
207
+ """
208
+ tokens = []
209
+ text = unicodedata.normalize("NFC", text)
210
+
211
+ # this implementation takes a detour: text -> token id -> token surface forms
212
+ for t in self.tokenizer.encode(
213
+ text, allowed_special=allowed_special, disallowed_special=disallowed_special
214
+ ):
215
+ tokens.append(self.decoder[t])
216
+ return tokens
217
+
218
+ def convert_tokens_to_string(self, tokens: List[Union[bytes, str]]) -> str:
219
+ """
220
+ Converts a sequence of tokens in a single string.
221
+ """
222
+ text = ""
223
+ temp = b""
224
+ for t in tokens:
225
+ if isinstance(t, str):
226
+ if temp:
227
+ text += temp.decode("utf-8", errors=self.errors)
228
+ temp = b""
229
+ text += t
230
+ elif isinstance(t, bytes):
231
+ temp += t
232
+ else:
233
+ raise TypeError("token should only be of type types or str")
234
+ if temp:
235
+ text += temp.decode("utf-8", errors=self.errors)
236
+ return text
237
+
238
+ @property
239
+ def vocab_size(self):
240
+ return self.tokenizer.n_vocab
241
+
242
+ def _convert_id_to_token(self, index: int) -> Union[bytes, str]:
243
+ """Converts an id to a token, special tokens included"""
244
+ if index in self.decoder:
245
+ return self.decoder[index]
246
+ raise ValueError("unknown ids")
247
+
248
+ def _convert_token_to_id(self, token: Union[bytes, str]) -> int:
249
+ """Converts a token to an id using the vocab, special tokens included"""
250
+ if token in self.special_tokens:
251
+ return self.special_tokens[token]
252
+ if token in self.mergeable_ranks:
253
+ return self.mergeable_ranks[token]
254
+ raise ValueError("unknown token")
255
+
256
+ def _tokenize(self, text: str, **kwargs):
257
+ """
258
+ Converts a string in a sequence of tokens (string), using the tokenizer. Split in words for word-based
259
+ vocabulary or sub-words for sub-word-based vocabularies (BPE/SentencePieces/WordPieces).
260
+
261
+ Do NOT take care of added tokens.
262
+ """
263
+ raise NotImplementedError
264
+
265
+ def _decode(
266
+ self,
267
+ token_ids: Union[int, List[int]],
268
+ skip_special_tokens: bool = False,
269
+ errors: str = None,
270
+ **kwargs,
271
+ ) -> str:
272
+ if isinstance(token_ids, int):
273
+ token_ids = [token_ids]
274
+ if skip_special_tokens:
275
+ token_ids = [i for i in token_ids if i < self.eod_id]
276
+ return self.tokenizer.decode(token_ids, errors=errors or self.errors)
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {},
3
+ "auto_map": {
4
+ "AutoTokenizer": [
5
+ "tokenization_qwen.QWenTokenizer",
6
+ null
7
+ ]
8
+ },
9
+ "bos_token": "<|endoftext|>",
10
+ "clean_up_tokenization_spaces": true,
11
+ "eos_token": "<|endoftext|>",
12
+ "model_max_length": 32768,
13
+ "pad_token": "<|endoftext|>",
14
+ "tokenizer_class": "QWenTokenizer"
15
+ }
train.log ADDED
@@ -0,0 +1,2409 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2024-05-21 13:11:53.195 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
2
+ _n_gpu=1,
3
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
4
+ adafactor=False,
5
+ adam_beta1=0.9,
6
+ adam_beta2=0.999,
7
+ adam_epsilon=1e-08,
8
+ auto_find_batch_size=False,
9
+ bf16=False,
10
+ bf16_full_eval=False,
11
+ data_seed=None,
12
+ dataloader_drop_last=False,
13
+ dataloader_num_workers=0,
14
+ dataloader_persistent_workers=False,
15
+ dataloader_pin_memory=True,
16
+ dataloader_prefetch_factor=2,
17
+ ddp_backend=None,
18
+ ddp_broadcast_buffers=None,
19
+ ddp_bucket_cap_mb=None,
20
+ ddp_find_unused_parameters=None,
21
+ ddp_timeout=1800,
22
+ debug=[],
23
+ deepspeed=None,
24
+ disable_tqdm=False,
25
+ dispatch_batches=None,
26
+ do_eval=False,
27
+ do_predict=False,
28
+ do_train=False,
29
+ eval_accumulation_steps=None,
30
+ eval_delay=0,
31
+ eval_do_concat_batches=True,
32
+ eval_steps=None,
33
+ evaluation_strategy=no,
34
+ fp16=True,
35
+ fp16_backend=auto,
36
+ fp16_full_eval=False,
37
+ fp16_opt_level=O1,
38
+ fsdp=[],
39
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
40
+ fsdp_min_num_params=0,
41
+ fsdp_transformer_layer_cls_to_wrap=None,
42
+ full_determinism=False,
43
+ gradient_accumulation_steps=16,
44
+ gradient_checkpointing=True,
45
+ gradient_checkpointing_kwargs=None,
46
+ greater_is_better=None,
47
+ group_by_length=False,
48
+ half_precision_backend=auto,
49
+ hub_always_push=False,
50
+ hub_model_id=None,
51
+ hub_private_repo=False,
52
+ hub_strategy=every_save,
53
+ hub_token=<HUB_TOKEN>,
54
+ ignore_data_skip=False,
55
+ include_inputs_for_metrics=False,
56
+ include_num_input_tokens_seen=False,
57
+ include_tokens_per_second=False,
58
+ jit_mode_eval=False,
59
+ label_names=None,
60
+ label_smoothing_factor=0.0,
61
+ learning_rate=0.0002,
62
+ length_column_name=length,
63
+ load_best_model_at_end=False,
64
+ local_rank=0,
65
+ log_level=passive,
66
+ log_level_replica=warning,
67
+ log_on_each_node=True,
68
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_13-11-52_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
69
+ logging_first_step=False,
70
+ logging_nan_inf_filter=True,
71
+ logging_steps=100,
72
+ logging_strategy=steps,
73
+ lr_scheduler_kwargs={},
74
+ lr_scheduler_type=constant_with_warmup,
75
+ max_grad_norm=0.3,
76
+ max_steps=-1,
77
+ metric_for_best_model=None,
78
+ mp_parameters=,
79
+ neftune_noise_alpha=None,
80
+ no_cuda=False,
81
+ num_train_epochs=1,
82
+ optim=paged_adamw_32bit,
83
+ optim_args=None,
84
+ optim_target_modules=None,
85
+ output_dir=output/firefly-qwen-7b-sft-qlora,
86
+ overwrite_output_dir=False,
87
+ past_index=-1,
88
+ per_device_eval_batch_size=8,
89
+ per_device_train_batch_size=1,
90
+ prediction_loss_only=False,
91
+ push_to_hub=False,
92
+ push_to_hub_model_id=None,
93
+ push_to_hub_organization=None,
94
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
95
+ ray_scope=last,
96
+ remove_unused_columns=False,
97
+ report_to=['tensorboard'],
98
+ resume_from_checkpoint=None,
99
+ run_name=output/firefly-qwen-7b-sft-qlora,
100
+ save_on_each_node=False,
101
+ save_only_model=False,
102
+ save_safetensors=True,
103
+ save_steps=100,
104
+ save_strategy=steps,
105
+ save_total_limit=1,
106
+ seed=42,
107
+ skip_memory_metrics=True,
108
+ split_batches=None,
109
+ tf32=None,
110
+ torch_compile=False,
111
+ torch_compile_backend=None,
112
+ torch_compile_mode=None,
113
+ torchdynamo=None,
114
+ tpu_metrics_debug=False,
115
+ tpu_num_cores=None,
116
+ use_cpu=False,
117
+ use_ipex=False,
118
+ use_legacy_prediction_loop=False,
119
+ use_mps_device=False,
120
+ warmup_ratio=0.0,
121
+ warmup_steps=100,
122
+ weight_decay=0,
123
+ )
124
+ 2024-05-21 13:11:53.197 | INFO | __main__:init_components:333 - Initializing components...
125
+ 2024-05-21 13:12:44.163 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
126
+ _n_gpu=1,
127
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
128
+ adafactor=False,
129
+ adam_beta1=0.9,
130
+ adam_beta2=0.999,
131
+ adam_epsilon=1e-08,
132
+ auto_find_batch_size=False,
133
+ bf16=False,
134
+ bf16_full_eval=False,
135
+ data_seed=None,
136
+ dataloader_drop_last=False,
137
+ dataloader_num_workers=0,
138
+ dataloader_persistent_workers=False,
139
+ dataloader_pin_memory=True,
140
+ dataloader_prefetch_factor=2,
141
+ ddp_backend=None,
142
+ ddp_broadcast_buffers=None,
143
+ ddp_bucket_cap_mb=None,
144
+ ddp_find_unused_parameters=None,
145
+ ddp_timeout=1800,
146
+ debug=[],
147
+ deepspeed=None,
148
+ disable_tqdm=False,
149
+ dispatch_batches=None,
150
+ do_eval=False,
151
+ do_predict=False,
152
+ do_train=False,
153
+ eval_accumulation_steps=None,
154
+ eval_delay=0,
155
+ eval_do_concat_batches=True,
156
+ eval_steps=None,
157
+ evaluation_strategy=no,
158
+ fp16=True,
159
+ fp16_backend=auto,
160
+ fp16_full_eval=False,
161
+ fp16_opt_level=O1,
162
+ fsdp=[],
163
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
164
+ fsdp_min_num_params=0,
165
+ fsdp_transformer_layer_cls_to_wrap=None,
166
+ full_determinism=False,
167
+ gradient_accumulation_steps=16,
168
+ gradient_checkpointing=True,
169
+ gradient_checkpointing_kwargs=None,
170
+ greater_is_better=None,
171
+ group_by_length=False,
172
+ half_precision_backend=auto,
173
+ hub_always_push=False,
174
+ hub_model_id=None,
175
+ hub_private_repo=False,
176
+ hub_strategy=every_save,
177
+ hub_token=<HUB_TOKEN>,
178
+ ignore_data_skip=False,
179
+ include_inputs_for_metrics=False,
180
+ include_num_input_tokens_seen=False,
181
+ include_tokens_per_second=False,
182
+ jit_mode_eval=False,
183
+ label_names=None,
184
+ label_smoothing_factor=0.0,
185
+ learning_rate=0.0002,
186
+ length_column_name=length,
187
+ load_best_model_at_end=False,
188
+ local_rank=0,
189
+ log_level=passive,
190
+ log_level_replica=warning,
191
+ log_on_each_node=True,
192
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_13-12-43_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
193
+ logging_first_step=False,
194
+ logging_nan_inf_filter=True,
195
+ logging_steps=100,
196
+ logging_strategy=steps,
197
+ lr_scheduler_kwargs={},
198
+ lr_scheduler_type=constant_with_warmup,
199
+ max_grad_norm=0.3,
200
+ max_steps=-1,
201
+ metric_for_best_model=None,
202
+ mp_parameters=,
203
+ neftune_noise_alpha=None,
204
+ no_cuda=False,
205
+ num_train_epochs=1,
206
+ optim=paged_adamw_32bit,
207
+ optim_args=None,
208
+ optim_target_modules=None,
209
+ output_dir=output/firefly-qwen-7b-sft-qlora,
210
+ overwrite_output_dir=False,
211
+ past_index=-1,
212
+ per_device_eval_batch_size=8,
213
+ per_device_train_batch_size=1,
214
+ prediction_loss_only=False,
215
+ push_to_hub=False,
216
+ push_to_hub_model_id=None,
217
+ push_to_hub_organization=None,
218
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
219
+ ray_scope=last,
220
+ remove_unused_columns=False,
221
+ report_to=['tensorboard'],
222
+ resume_from_checkpoint=None,
223
+ run_name=output/firefly-qwen-7b-sft-qlora,
224
+ save_on_each_node=False,
225
+ save_only_model=False,
226
+ save_safetensors=True,
227
+ save_steps=100,
228
+ save_strategy=steps,
229
+ save_total_limit=1,
230
+ seed=42,
231
+ skip_memory_metrics=True,
232
+ split_batches=None,
233
+ tf32=None,
234
+ torch_compile=False,
235
+ torch_compile_backend=None,
236
+ torch_compile_mode=None,
237
+ torchdynamo=None,
238
+ tpu_metrics_debug=False,
239
+ tpu_num_cores=None,
240
+ use_cpu=False,
241
+ use_ipex=False,
242
+ use_legacy_prediction_loop=False,
243
+ use_mps_device=False,
244
+ warmup_ratio=0.0,
245
+ warmup_steps=100,
246
+ weight_decay=0,
247
+ )
248
+ 2024-05-21 13:12:44.166 | INFO | __main__:init_components:333 - Initializing components...
249
+ 2024-05-21 13:12:44.696 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
250
+ 2024-05-21 13:12:44.697 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
251
+ 2024-05-21 13:12:44.697 | INFO | __main__:load_model:221 - Train model with qlora
252
+ 2024-05-21 13:13:28.400 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
253
+ _n_gpu=1,
254
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
255
+ adafactor=False,
256
+ adam_beta1=0.9,
257
+ adam_beta2=0.999,
258
+ adam_epsilon=1e-08,
259
+ auto_find_batch_size=False,
260
+ bf16=False,
261
+ bf16_full_eval=False,
262
+ data_seed=None,
263
+ dataloader_drop_last=False,
264
+ dataloader_num_workers=0,
265
+ dataloader_persistent_workers=False,
266
+ dataloader_pin_memory=True,
267
+ dataloader_prefetch_factor=2,
268
+ ddp_backend=None,
269
+ ddp_broadcast_buffers=None,
270
+ ddp_bucket_cap_mb=None,
271
+ ddp_find_unused_parameters=None,
272
+ ddp_timeout=1800,
273
+ debug=[],
274
+ deepspeed=None,
275
+ disable_tqdm=False,
276
+ dispatch_batches=None,
277
+ do_eval=False,
278
+ do_predict=False,
279
+ do_train=False,
280
+ eval_accumulation_steps=None,
281
+ eval_delay=0,
282
+ eval_do_concat_batches=True,
283
+ eval_steps=None,
284
+ evaluation_strategy=no,
285
+ fp16=True,
286
+ fp16_backend=auto,
287
+ fp16_full_eval=False,
288
+ fp16_opt_level=O1,
289
+ fsdp=[],
290
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
291
+ fsdp_min_num_params=0,
292
+ fsdp_transformer_layer_cls_to_wrap=None,
293
+ full_determinism=False,
294
+ gradient_accumulation_steps=16,
295
+ gradient_checkpointing=True,
296
+ gradient_checkpointing_kwargs=None,
297
+ greater_is_better=None,
298
+ group_by_length=False,
299
+ half_precision_backend=auto,
300
+ hub_always_push=False,
301
+ hub_model_id=None,
302
+ hub_private_repo=False,
303
+ hub_strategy=every_save,
304
+ hub_token=<HUB_TOKEN>,
305
+ ignore_data_skip=False,
306
+ include_inputs_for_metrics=False,
307
+ include_num_input_tokens_seen=False,
308
+ include_tokens_per_second=False,
309
+ jit_mode_eval=False,
310
+ label_names=None,
311
+ label_smoothing_factor=0.0,
312
+ learning_rate=0.0002,
313
+ length_column_name=length,
314
+ load_best_model_at_end=False,
315
+ local_rank=0,
316
+ log_level=passive,
317
+ log_level_replica=warning,
318
+ log_on_each_node=True,
319
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_13-13-28_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
320
+ logging_first_step=False,
321
+ logging_nan_inf_filter=True,
322
+ logging_steps=100,
323
+ logging_strategy=steps,
324
+ lr_scheduler_kwargs={},
325
+ lr_scheduler_type=constant_with_warmup,
326
+ max_grad_norm=0.3,
327
+ max_steps=-1,
328
+ metric_for_best_model=None,
329
+ mp_parameters=,
330
+ neftune_noise_alpha=None,
331
+ no_cuda=False,
332
+ num_train_epochs=1,
333
+ optim=paged_adamw_32bit,
334
+ optim_args=None,
335
+ optim_target_modules=None,
336
+ output_dir=output/firefly-qwen-7b-sft-qlora,
337
+ overwrite_output_dir=False,
338
+ past_index=-1,
339
+ per_device_eval_batch_size=8,
340
+ per_device_train_batch_size=1,
341
+ prediction_loss_only=False,
342
+ push_to_hub=False,
343
+ push_to_hub_model_id=None,
344
+ push_to_hub_organization=None,
345
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
346
+ ray_scope=last,
347
+ remove_unused_columns=False,
348
+ report_to=['tensorboard'],
349
+ resume_from_checkpoint=None,
350
+ run_name=output/firefly-qwen-7b-sft-qlora,
351
+ save_on_each_node=False,
352
+ save_only_model=False,
353
+ save_safetensors=True,
354
+ save_steps=100,
355
+ save_strategy=steps,
356
+ save_total_limit=1,
357
+ seed=42,
358
+ skip_memory_metrics=True,
359
+ split_batches=None,
360
+ tf32=None,
361
+ torch_compile=False,
362
+ torch_compile_backend=None,
363
+ torch_compile_mode=None,
364
+ torchdynamo=None,
365
+ tpu_metrics_debug=False,
366
+ tpu_num_cores=None,
367
+ use_cpu=False,
368
+ use_ipex=False,
369
+ use_legacy_prediction_loop=False,
370
+ use_mps_device=False,
371
+ warmup_ratio=0.0,
372
+ warmup_steps=100,
373
+ weight_decay=0,
374
+ )
375
+ 2024-05-21 13:13:28.403 | INFO | __main__:init_components:333 - Initializing components...
376
+ 2024-05-21 13:13:28.848 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
377
+ 2024-05-21 13:13:28.849 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
378
+ 2024-05-21 13:13:28.849 | INFO | __main__:load_model:221 - Train model with qlora
379
+ 2024-05-21 13:13:57.006 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_proj', 'w1', 'c_attn', 'w2']
380
+ 2024-05-21 13:14:01.246 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
381
+ 2024-05-21 13:14:01.253 | INFO | __main__:load_model:295 - Total model params: 4626.45M
382
+ 2024-05-21 13:14:01.254 | INFO | __main__:init_components:349 - Train model with sft task
383
+ 2024-05-21 13:14:01.254 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
384
+ 2024-05-21 13:14:01.254 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
385
+ 2024-05-21 13:14:01.260 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
386
+ 2024-05-21 13:14:01.260 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
387
+ 2024-05-21 13:14:01.303 | INFO | __main__:main:387 - *** starting training ***
388
+ 2024-05-21 13:14:18.008 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
389
+ _n_gpu=1,
390
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
391
+ adafactor=False,
392
+ adam_beta1=0.9,
393
+ adam_beta2=0.999,
394
+ adam_epsilon=1e-08,
395
+ auto_find_batch_size=False,
396
+ bf16=False,
397
+ bf16_full_eval=False,
398
+ data_seed=None,
399
+ dataloader_drop_last=False,
400
+ dataloader_num_workers=0,
401
+ dataloader_persistent_workers=False,
402
+ dataloader_pin_memory=True,
403
+ dataloader_prefetch_factor=2,
404
+ ddp_backend=None,
405
+ ddp_broadcast_buffers=None,
406
+ ddp_bucket_cap_mb=None,
407
+ ddp_find_unused_parameters=None,
408
+ ddp_timeout=1800,
409
+ debug=[],
410
+ deepspeed=None,
411
+ disable_tqdm=False,
412
+ dispatch_batches=None,
413
+ do_eval=False,
414
+ do_predict=False,
415
+ do_train=False,
416
+ eval_accumulation_steps=None,
417
+ eval_delay=0,
418
+ eval_do_concat_batches=True,
419
+ eval_steps=None,
420
+ evaluation_strategy=no,
421
+ fp16=True,
422
+ fp16_backend=auto,
423
+ fp16_full_eval=False,
424
+ fp16_opt_level=O1,
425
+ fsdp=[],
426
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
427
+ fsdp_min_num_params=0,
428
+ fsdp_transformer_layer_cls_to_wrap=None,
429
+ full_determinism=False,
430
+ gradient_accumulation_steps=16,
431
+ gradient_checkpointing=True,
432
+ gradient_checkpointing_kwargs=None,
433
+ greater_is_better=None,
434
+ group_by_length=False,
435
+ half_precision_backend=auto,
436
+ hub_always_push=False,
437
+ hub_model_id=None,
438
+ hub_private_repo=False,
439
+ hub_strategy=every_save,
440
+ hub_token=<HUB_TOKEN>,
441
+ ignore_data_skip=False,
442
+ include_inputs_for_metrics=False,
443
+ include_num_input_tokens_seen=False,
444
+ include_tokens_per_second=False,
445
+ jit_mode_eval=False,
446
+ label_names=None,
447
+ label_smoothing_factor=0.0,
448
+ learning_rate=0.0002,
449
+ length_column_name=length,
450
+ load_best_model_at_end=False,
451
+ local_rank=0,
452
+ log_level=passive,
453
+ log_level_replica=warning,
454
+ log_on_each_node=True,
455
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_13-14-17_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
456
+ logging_first_step=False,
457
+ logging_nan_inf_filter=True,
458
+ logging_steps=100,
459
+ logging_strategy=steps,
460
+ lr_scheduler_kwargs={},
461
+ lr_scheduler_type=constant_with_warmup,
462
+ max_grad_norm=0.3,
463
+ max_steps=-1,
464
+ metric_for_best_model=None,
465
+ mp_parameters=,
466
+ neftune_noise_alpha=None,
467
+ no_cuda=False,
468
+ num_train_epochs=1,
469
+ optim=paged_adamw_32bit,
470
+ optim_args=None,
471
+ optim_target_modules=None,
472
+ output_dir=output/firefly-qwen-7b-sft-qlora,
473
+ overwrite_output_dir=False,
474
+ past_index=-1,
475
+ per_device_eval_batch_size=8,
476
+ per_device_train_batch_size=1,
477
+ prediction_loss_only=False,
478
+ push_to_hub=False,
479
+ push_to_hub_model_id=None,
480
+ push_to_hub_organization=None,
481
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
482
+ ray_scope=last,
483
+ remove_unused_columns=False,
484
+ report_to=['tensorboard'],
485
+ resume_from_checkpoint=None,
486
+ run_name=output/firefly-qwen-7b-sft-qlora,
487
+ save_on_each_node=False,
488
+ save_only_model=False,
489
+ save_safetensors=True,
490
+ save_steps=100,
491
+ save_strategy=steps,
492
+ save_total_limit=1,
493
+ seed=42,
494
+ skip_memory_metrics=True,
495
+ split_batches=None,
496
+ tf32=None,
497
+ torch_compile=False,
498
+ torch_compile_backend=None,
499
+ torch_compile_mode=None,
500
+ torchdynamo=None,
501
+ tpu_metrics_debug=False,
502
+ tpu_num_cores=None,
503
+ use_cpu=False,
504
+ use_ipex=False,
505
+ use_legacy_prediction_loop=False,
506
+ use_mps_device=False,
507
+ warmup_ratio=0.0,
508
+ warmup_steps=100,
509
+ weight_decay=0,
510
+ )
511
+ 2024-05-21 13:14:18.011 | INFO | __main__:init_components:333 - Initializing components...
512
+ 2024-05-21 13:14:18.461 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
513
+ 2024-05-21 13:14:18.461 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
514
+ 2024-05-21 13:14:18.462 | INFO | __main__:load_model:221 - Train model with qlora
515
+ 2024-05-21 13:14:30.427 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_proj', 'w2', 'w1', 'c_attn']
516
+ 2024-05-21 13:14:34.822 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
517
+ 2024-05-21 13:14:34.830 | INFO | __main__:load_model:295 - Total model params: 4626.45M
518
+ 2024-05-21 13:14:34.830 | INFO | __main__:init_components:349 - Train model with sft task
519
+ 2024-05-21 13:14:34.830 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
520
+ 2024-05-21 13:14:34.831 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
521
+ 2024-05-21 13:14:34.832 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
522
+ 2024-05-21 13:14:34.832 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
523
+ 2024-05-21 13:14:34.873 | INFO | __main__:main:387 - *** starting training ***
524
+ 2024-05-21 13:15:24.386 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
525
+ _n_gpu=1,
526
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
527
+ adafactor=False,
528
+ adam_beta1=0.9,
529
+ adam_beta2=0.999,
530
+ adam_epsilon=1e-08,
531
+ auto_find_batch_size=False,
532
+ bf16=False,
533
+ bf16_full_eval=False,
534
+ data_seed=None,
535
+ dataloader_drop_last=False,
536
+ dataloader_num_workers=0,
537
+ dataloader_persistent_workers=False,
538
+ dataloader_pin_memory=True,
539
+ dataloader_prefetch_factor=2,
540
+ ddp_backend=None,
541
+ ddp_broadcast_buffers=None,
542
+ ddp_bucket_cap_mb=None,
543
+ ddp_find_unused_parameters=None,
544
+ ddp_timeout=1800,
545
+ debug=[],
546
+ deepspeed=None,
547
+ disable_tqdm=False,
548
+ dispatch_batches=None,
549
+ do_eval=False,
550
+ do_predict=False,
551
+ do_train=False,
552
+ eval_accumulation_steps=None,
553
+ eval_delay=0,
554
+ eval_do_concat_batches=True,
555
+ eval_steps=None,
556
+ evaluation_strategy=no,
557
+ fp16=True,
558
+ fp16_backend=auto,
559
+ fp16_full_eval=False,
560
+ fp16_opt_level=O1,
561
+ fsdp=[],
562
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
563
+ fsdp_min_num_params=0,
564
+ fsdp_transformer_layer_cls_to_wrap=None,
565
+ full_determinism=False,
566
+ gradient_accumulation_steps=16,
567
+ gradient_checkpointing=True,
568
+ gradient_checkpointing_kwargs=None,
569
+ greater_is_better=None,
570
+ group_by_length=False,
571
+ half_precision_backend=auto,
572
+ hub_always_push=False,
573
+ hub_model_id=None,
574
+ hub_private_repo=False,
575
+ hub_strategy=every_save,
576
+ hub_token=<HUB_TOKEN>,
577
+ ignore_data_skip=False,
578
+ include_inputs_for_metrics=False,
579
+ include_num_input_tokens_seen=False,
580
+ include_tokens_per_second=False,
581
+ jit_mode_eval=False,
582
+ label_names=None,
583
+ label_smoothing_factor=0.0,
584
+ learning_rate=0.0002,
585
+ length_column_name=length,
586
+ load_best_model_at_end=False,
587
+ local_rank=0,
588
+ log_level=passive,
589
+ log_level_replica=warning,
590
+ log_on_each_node=True,
591
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_13-15-24_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
592
+ logging_first_step=False,
593
+ logging_nan_inf_filter=True,
594
+ logging_steps=100,
595
+ logging_strategy=steps,
596
+ lr_scheduler_kwargs={},
597
+ lr_scheduler_type=constant_with_warmup,
598
+ max_grad_norm=0.3,
599
+ max_steps=-1,
600
+ metric_for_best_model=None,
601
+ mp_parameters=,
602
+ neftune_noise_alpha=None,
603
+ no_cuda=False,
604
+ num_train_epochs=1,
605
+ optim=paged_adamw_32bit,
606
+ optim_args=None,
607
+ optim_target_modules=None,
608
+ output_dir=output/firefly-qwen-7b-sft-qlora,
609
+ overwrite_output_dir=False,
610
+ past_index=-1,
611
+ per_device_eval_batch_size=8,
612
+ per_device_train_batch_size=1,
613
+ prediction_loss_only=False,
614
+ push_to_hub=False,
615
+ push_to_hub_model_id=None,
616
+ push_to_hub_organization=None,
617
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
618
+ ray_scope=last,
619
+ remove_unused_columns=False,
620
+ report_to=['tensorboard'],
621
+ resume_from_checkpoint=None,
622
+ run_name=output/firefly-qwen-7b-sft-qlora,
623
+ save_on_each_node=False,
624
+ save_only_model=False,
625
+ save_safetensors=True,
626
+ save_steps=100,
627
+ save_strategy=steps,
628
+ save_total_limit=1,
629
+ seed=42,
630
+ skip_memory_metrics=True,
631
+ split_batches=None,
632
+ tf32=None,
633
+ torch_compile=False,
634
+ torch_compile_backend=None,
635
+ torch_compile_mode=None,
636
+ torchdynamo=None,
637
+ tpu_metrics_debug=False,
638
+ tpu_num_cores=None,
639
+ use_cpu=False,
640
+ use_ipex=False,
641
+ use_legacy_prediction_loop=False,
642
+ use_mps_device=False,
643
+ warmup_ratio=0.0,
644
+ warmup_steps=100,
645
+ weight_decay=0,
646
+ )
647
+ 2024-05-21 13:15:24.389 | INFO | __main__:init_components:333 - Initializing components...
648
+ 2024-05-21 13:15:24.833 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
649
+ 2024-05-21 13:15:24.833 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
650
+ 2024-05-21 13:15:24.834 | INFO | __main__:load_model:221 - Train model with qlora
651
+ 2024-05-21 13:15:36.611 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['w1', 'w2', 'c_proj', 'c_attn']
652
+ 2024-05-21 13:15:40.843 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
653
+ 2024-05-21 13:15:40.851 | INFO | __main__:load_model:295 - Total model params: 4626.45M
654
+ 2024-05-21 13:15:40.851 | INFO | __main__:init_components:349 - Train model with sft task
655
+ 2024-05-21 13:15:40.851 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
656
+ 2024-05-21 13:15:40.852 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
657
+ 2024-05-21 13:15:40.853 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
658
+ 2024-05-21 13:15:40.854 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
659
+ 2024-05-21 13:15:40.895 | INFO | __main__:main:387 - *** starting training ***
660
+ 2024-05-21 15:20:14.959 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
661
+ _n_gpu=1,
662
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
663
+ adafactor=False,
664
+ adam_beta1=0.9,
665
+ adam_beta2=0.999,
666
+ adam_epsilon=1e-08,
667
+ auto_find_batch_size=False,
668
+ bf16=False,
669
+ bf16_full_eval=False,
670
+ data_seed=None,
671
+ dataloader_drop_last=False,
672
+ dataloader_num_workers=0,
673
+ dataloader_persistent_workers=False,
674
+ dataloader_pin_memory=True,
675
+ dataloader_prefetch_factor=2,
676
+ ddp_backend=None,
677
+ ddp_broadcast_buffers=None,
678
+ ddp_bucket_cap_mb=None,
679
+ ddp_find_unused_parameters=None,
680
+ ddp_timeout=1800,
681
+ debug=[],
682
+ deepspeed=None,
683
+ disable_tqdm=False,
684
+ dispatch_batches=None,
685
+ do_eval=False,
686
+ do_predict=False,
687
+ do_train=False,
688
+ eval_accumulation_steps=None,
689
+ eval_delay=0,
690
+ eval_do_concat_batches=True,
691
+ eval_steps=None,
692
+ evaluation_strategy=no,
693
+ fp16=True,
694
+ fp16_backend=auto,
695
+ fp16_full_eval=False,
696
+ fp16_opt_level=O1,
697
+ fsdp=[],
698
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
699
+ fsdp_min_num_params=0,
700
+ fsdp_transformer_layer_cls_to_wrap=None,
701
+ full_determinism=False,
702
+ gradient_accumulation_steps=16,
703
+ gradient_checkpointing=True,
704
+ gradient_checkpointing_kwargs=None,
705
+ greater_is_better=None,
706
+ group_by_length=False,
707
+ half_precision_backend=auto,
708
+ hub_always_push=False,
709
+ hub_model_id=None,
710
+ hub_private_repo=False,
711
+ hub_strategy=every_save,
712
+ hub_token=<HUB_TOKEN>,
713
+ ignore_data_skip=False,
714
+ include_inputs_for_metrics=False,
715
+ include_num_input_tokens_seen=False,
716
+ include_tokens_per_second=False,
717
+ jit_mode_eval=False,
718
+ label_names=None,
719
+ label_smoothing_factor=0.0,
720
+ learning_rate=0.0002,
721
+ length_column_name=length,
722
+ load_best_model_at_end=False,
723
+ local_rank=0,
724
+ log_level=passive,
725
+ log_level_replica=warning,
726
+ log_on_each_node=True,
727
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_15-20-14_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
728
+ logging_first_step=False,
729
+ logging_nan_inf_filter=True,
730
+ logging_steps=100,
731
+ logging_strategy=steps,
732
+ lr_scheduler_kwargs={},
733
+ lr_scheduler_type=constant_with_warmup,
734
+ max_grad_norm=0.3,
735
+ max_steps=-1,
736
+ metric_for_best_model=None,
737
+ mp_parameters=,
738
+ neftune_noise_alpha=None,
739
+ no_cuda=False,
740
+ num_train_epochs=1,
741
+ optim=paged_adamw_32bit,
742
+ optim_args=None,
743
+ optim_target_modules=None,
744
+ output_dir=output/firefly-qwen-7b-sft-qlora,
745
+ overwrite_output_dir=False,
746
+ past_index=-1,
747
+ per_device_eval_batch_size=8,
748
+ per_device_train_batch_size=1,
749
+ prediction_loss_only=False,
750
+ push_to_hub=False,
751
+ push_to_hub_model_id=None,
752
+ push_to_hub_organization=None,
753
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
754
+ ray_scope=last,
755
+ remove_unused_columns=False,
756
+ report_to=['tensorboard'],
757
+ resume_from_checkpoint=None,
758
+ run_name=output/firefly-qwen-7b-sft-qlora,
759
+ save_on_each_node=False,
760
+ save_only_model=False,
761
+ save_safetensors=True,
762
+ save_steps=100,
763
+ save_strategy=steps,
764
+ save_total_limit=1,
765
+ seed=42,
766
+ skip_memory_metrics=True,
767
+ split_batches=None,
768
+ tf32=None,
769
+ torch_compile=False,
770
+ torch_compile_backend=None,
771
+ torch_compile_mode=None,
772
+ torchdynamo=None,
773
+ tpu_metrics_debug=False,
774
+ tpu_num_cores=None,
775
+ use_cpu=False,
776
+ use_ipex=False,
777
+ use_legacy_prediction_loop=False,
778
+ use_mps_device=False,
779
+ warmup_ratio=0.0,
780
+ warmup_steps=100,
781
+ weight_decay=0,
782
+ )
783
+ 2024-05-21 15:20:14.962 | INFO | __main__:init_components:333 - Initializing components...
784
+ 2024-05-21 15:20:15.449 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
785
+ 2024-05-21 15:20:15.450 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
786
+ 2024-05-21 15:20:15.450 | INFO | __main__:load_model:221 - Train model with qlora
787
+ 2024-05-21 15:20:42.755 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_proj', 'w1', 'c_attn', 'w2']
788
+ 2024-05-21 15:20:47.021 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
789
+ 2024-05-21 15:20:47.029 | INFO | __main__:load_model:295 - Total model params: 4626.45M
790
+ 2024-05-21 15:20:47.029 | INFO | __main__:init_components:349 - Train model with sft task
791
+ 2024-05-21 15:20:47.029 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
792
+ 2024-05-21 15:20:47.029 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
793
+ 2024-05-21 15:20:47.034 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
794
+ 2024-05-21 15:20:47.034 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
795
+ 2024-05-21 15:20:47.077 | INFO | __main__:main:387 - *** starting training ***
796
+ 2024-05-21 15:37:02.692 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
797
+ _n_gpu=1,
798
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
799
+ adafactor=False,
800
+ adam_beta1=0.9,
801
+ adam_beta2=0.999,
802
+ adam_epsilon=1e-08,
803
+ auto_find_batch_size=False,
804
+ bf16=False,
805
+ bf16_full_eval=False,
806
+ data_seed=None,
807
+ dataloader_drop_last=False,
808
+ dataloader_num_workers=0,
809
+ dataloader_persistent_workers=False,
810
+ dataloader_pin_memory=True,
811
+ dataloader_prefetch_factor=2,
812
+ ddp_backend=None,
813
+ ddp_broadcast_buffers=None,
814
+ ddp_bucket_cap_mb=None,
815
+ ddp_find_unused_parameters=None,
816
+ ddp_timeout=1800,
817
+ debug=[],
818
+ deepspeed=None,
819
+ disable_tqdm=False,
820
+ dispatch_batches=None,
821
+ do_eval=False,
822
+ do_predict=False,
823
+ do_train=False,
824
+ eval_accumulation_steps=None,
825
+ eval_delay=0,
826
+ eval_do_concat_batches=True,
827
+ eval_steps=None,
828
+ evaluation_strategy=no,
829
+ fp16=True,
830
+ fp16_backend=auto,
831
+ fp16_full_eval=False,
832
+ fp16_opt_level=O1,
833
+ fsdp=[],
834
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
835
+ fsdp_min_num_params=0,
836
+ fsdp_transformer_layer_cls_to_wrap=None,
837
+ full_determinism=False,
838
+ gradient_accumulation_steps=16,
839
+ gradient_checkpointing=True,
840
+ gradient_checkpointing_kwargs=None,
841
+ greater_is_better=None,
842
+ group_by_length=False,
843
+ half_precision_backend=auto,
844
+ hub_always_push=False,
845
+ hub_model_id=None,
846
+ hub_private_repo=False,
847
+ hub_strategy=every_save,
848
+ hub_token=<HUB_TOKEN>,
849
+ ignore_data_skip=False,
850
+ include_inputs_for_metrics=False,
851
+ include_num_input_tokens_seen=False,
852
+ include_tokens_per_second=False,
853
+ jit_mode_eval=False,
854
+ label_names=None,
855
+ label_smoothing_factor=0.0,
856
+ learning_rate=0.0002,
857
+ length_column_name=length,
858
+ load_best_model_at_end=False,
859
+ local_rank=0,
860
+ log_level=passive,
861
+ log_level_replica=warning,
862
+ log_on_each_node=True,
863
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_15-37-02_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
864
+ logging_first_step=False,
865
+ logging_nan_inf_filter=True,
866
+ logging_steps=100,
867
+ logging_strategy=steps,
868
+ lr_scheduler_kwargs={},
869
+ lr_scheduler_type=constant_with_warmup,
870
+ max_grad_norm=0.3,
871
+ max_steps=-1,
872
+ metric_for_best_model=None,
873
+ mp_parameters=,
874
+ neftune_noise_alpha=None,
875
+ no_cuda=False,
876
+ num_train_epochs=1,
877
+ optim=paged_adamw_32bit,
878
+ optim_args=None,
879
+ optim_target_modules=None,
880
+ output_dir=output/firefly-qwen-7b-sft-qlora,
881
+ overwrite_output_dir=False,
882
+ past_index=-1,
883
+ per_device_eval_batch_size=8,
884
+ per_device_train_batch_size=1,
885
+ prediction_loss_only=False,
886
+ push_to_hub=False,
887
+ push_to_hub_model_id=None,
888
+ push_to_hub_organization=None,
889
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
890
+ ray_scope=last,
891
+ remove_unused_columns=False,
892
+ report_to=['tensorboard'],
893
+ resume_from_checkpoint=None,
894
+ run_name=output/firefly-qwen-7b-sft-qlora,
895
+ save_on_each_node=False,
896
+ save_only_model=False,
897
+ save_safetensors=True,
898
+ save_steps=100,
899
+ save_strategy=steps,
900
+ save_total_limit=1,
901
+ seed=42,
902
+ skip_memory_metrics=True,
903
+ split_batches=None,
904
+ tf32=None,
905
+ torch_compile=False,
906
+ torch_compile_backend=None,
907
+ torch_compile_mode=None,
908
+ torchdynamo=None,
909
+ tpu_metrics_debug=False,
910
+ tpu_num_cores=None,
911
+ use_cpu=False,
912
+ use_ipex=False,
913
+ use_legacy_prediction_loop=False,
914
+ use_mps_device=False,
915
+ warmup_ratio=0.0,
916
+ warmup_steps=100,
917
+ weight_decay=0,
918
+ )
919
+ 2024-05-21 15:37:02.695 | INFO | __main__:init_components:333 - Initializing components...
920
+ 2024-05-21 15:37:03.274 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
921
+ 2024-05-21 15:37:03.274 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
922
+ 2024-05-21 15:37:03.275 | INFO | __main__:load_model:221 - Train model with qlora
923
+ 2024-05-21 15:37:31.115 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['w2', 'w1', 'c_proj', 'c_attn']
924
+ 2024-05-21 15:38:12.051 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
925
+ 2024-05-21 15:38:12.058 | INFO | __main__:load_model:295 - Total model params: 4626.45M
926
+ 2024-05-21 15:38:12.059 | INFO | __main__:init_components:349 - Train model with sft task
927
+ 2024-05-21 15:38:12.059 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
928
+ 2024-05-21 15:38:12.059 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
929
+ 2024-05-21 15:38:12.063 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
930
+ 2024-05-21 15:38:12.063 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
931
+ 2024-05-21 15:38:12.105 | INFO | __main__:main:387 - *** starting training ***
932
+ 2024-05-21 15:48:05.000 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
933
+ _n_gpu=1,
934
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
935
+ adafactor=False,
936
+ adam_beta1=0.9,
937
+ adam_beta2=0.999,
938
+ adam_epsilon=1e-08,
939
+ auto_find_batch_size=False,
940
+ bf16=False,
941
+ bf16_full_eval=False,
942
+ data_seed=None,
943
+ dataloader_drop_last=False,
944
+ dataloader_num_workers=0,
945
+ dataloader_persistent_workers=False,
946
+ dataloader_pin_memory=True,
947
+ dataloader_prefetch_factor=2,
948
+ ddp_backend=None,
949
+ ddp_broadcast_buffers=None,
950
+ ddp_bucket_cap_mb=None,
951
+ ddp_find_unused_parameters=None,
952
+ ddp_timeout=1800,
953
+ debug=[],
954
+ deepspeed=None,
955
+ disable_tqdm=False,
956
+ dispatch_batches=None,
957
+ do_eval=False,
958
+ do_predict=False,
959
+ do_train=False,
960
+ eval_accumulation_steps=None,
961
+ eval_delay=0,
962
+ eval_do_concat_batches=True,
963
+ eval_steps=None,
964
+ evaluation_strategy=no,
965
+ fp16=True,
966
+ fp16_backend=auto,
967
+ fp16_full_eval=False,
968
+ fp16_opt_level=O1,
969
+ fsdp=[],
970
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
971
+ fsdp_min_num_params=0,
972
+ fsdp_transformer_layer_cls_to_wrap=None,
973
+ full_determinism=False,
974
+ gradient_accumulation_steps=16,
975
+ gradient_checkpointing=True,
976
+ gradient_checkpointing_kwargs=None,
977
+ greater_is_better=None,
978
+ group_by_length=False,
979
+ half_precision_backend=auto,
980
+ hub_always_push=False,
981
+ hub_model_id=None,
982
+ hub_private_repo=False,
983
+ hub_strategy=every_save,
984
+ hub_token=<HUB_TOKEN>,
985
+ ignore_data_skip=False,
986
+ include_inputs_for_metrics=False,
987
+ include_num_input_tokens_seen=False,
988
+ include_tokens_per_second=False,
989
+ jit_mode_eval=False,
990
+ label_names=None,
991
+ label_smoothing_factor=0.0,
992
+ learning_rate=0.0002,
993
+ length_column_name=length,
994
+ load_best_model_at_end=False,
995
+ local_rank=0,
996
+ log_level=passive,
997
+ log_level_replica=warning,
998
+ log_on_each_node=True,
999
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_15-48-04_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
1000
+ logging_first_step=False,
1001
+ logging_nan_inf_filter=True,
1002
+ logging_steps=100,
1003
+ logging_strategy=steps,
1004
+ lr_scheduler_kwargs={},
1005
+ lr_scheduler_type=constant_with_warmup,
1006
+ max_grad_norm=0.3,
1007
+ max_steps=-1,
1008
+ metric_for_best_model=None,
1009
+ mp_parameters=,
1010
+ neftune_noise_alpha=None,
1011
+ no_cuda=False,
1012
+ num_train_epochs=1,
1013
+ optim=paged_adamw_32bit,
1014
+ optim_args=None,
1015
+ optim_target_modules=None,
1016
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1017
+ overwrite_output_dir=False,
1018
+ past_index=-1,
1019
+ per_device_eval_batch_size=8,
1020
+ per_device_train_batch_size=1,
1021
+ prediction_loss_only=False,
1022
+ push_to_hub=False,
1023
+ push_to_hub_model_id=None,
1024
+ push_to_hub_organization=None,
1025
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1026
+ ray_scope=last,
1027
+ remove_unused_columns=False,
1028
+ report_to=['tensorboard'],
1029
+ resume_from_checkpoint=None,
1030
+ run_name=output/firefly-qwen-7b-sft-qlora,
1031
+ save_on_each_node=False,
1032
+ save_only_model=False,
1033
+ save_safetensors=True,
1034
+ save_steps=100,
1035
+ save_strategy=steps,
1036
+ save_total_limit=1,
1037
+ seed=42,
1038
+ skip_memory_metrics=True,
1039
+ split_batches=None,
1040
+ tf32=None,
1041
+ torch_compile=False,
1042
+ torch_compile_backend=None,
1043
+ torch_compile_mode=None,
1044
+ torchdynamo=None,
1045
+ tpu_metrics_debug=False,
1046
+ tpu_num_cores=None,
1047
+ use_cpu=False,
1048
+ use_ipex=False,
1049
+ use_legacy_prediction_loop=False,
1050
+ use_mps_device=False,
1051
+ warmup_ratio=0.0,
1052
+ warmup_steps=100,
1053
+ weight_decay=0,
1054
+ )
1055
+ 2024-05-21 15:48:05.004 | INFO | __main__:init_components:333 - Initializing components...
1056
+ 2024-05-21 15:48:05.571 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1057
+ 2024-05-21 15:48:05.572 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1058
+ 2024-05-21 15:48:05.572 | INFO | __main__:load_model:221 - Train model with qlora
1059
+ 2024-05-21 15:48:32.241 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_attn', 'w2', 'c_proj', 'w1']
1060
+ 2024-05-21 15:49:13.600 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
1061
+ 2024-05-21 15:49:13.607 | INFO | __main__:load_model:295 - Total model params: 4626.45M
1062
+ 2024-05-21 15:49:13.607 | INFO | __main__:init_components:349 - Train model with sft task
1063
+ 2024-05-21 15:49:13.607 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
1064
+ 2024-05-21 15:49:13.608 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
1065
+ 2024-05-21 15:49:13.611 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
1066
+ 2024-05-21 15:49:13.612 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
1067
+ 2024-05-21 15:49:13.654 | INFO | __main__:main:387 - *** starting training ***
1068
+ 2024-05-21 15:57:36.477 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
1069
+ _n_gpu=1,
1070
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'gradient_accumulation_kwargs': None},
1071
+ adafactor=False,
1072
+ adam_beta1=0.9,
1073
+ adam_beta2=0.999,
1074
+ adam_epsilon=1e-08,
1075
+ auto_find_batch_size=False,
1076
+ bf16=False,
1077
+ bf16_full_eval=False,
1078
+ data_seed=None,
1079
+ dataloader_drop_last=False,
1080
+ dataloader_num_workers=0,
1081
+ dataloader_persistent_workers=False,
1082
+ dataloader_pin_memory=True,
1083
+ dataloader_prefetch_factor=2,
1084
+ ddp_backend=None,
1085
+ ddp_broadcast_buffers=None,
1086
+ ddp_bucket_cap_mb=None,
1087
+ ddp_find_unused_parameters=None,
1088
+ ddp_timeout=1800,
1089
+ debug=[],
1090
+ deepspeed=None,
1091
+ disable_tqdm=False,
1092
+ dispatch_batches=None,
1093
+ do_eval=False,
1094
+ do_predict=False,
1095
+ do_train=False,
1096
+ eval_accumulation_steps=None,
1097
+ eval_delay=0,
1098
+ eval_do_concat_batches=True,
1099
+ eval_steps=None,
1100
+ evaluation_strategy=no,
1101
+ fp16=True,
1102
+ fp16_backend=auto,
1103
+ fp16_full_eval=False,
1104
+ fp16_opt_level=O1,
1105
+ fsdp=[],
1106
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
1107
+ fsdp_min_num_params=0,
1108
+ fsdp_transformer_layer_cls_to_wrap=None,
1109
+ full_determinism=False,
1110
+ gradient_accumulation_steps=16,
1111
+ gradient_checkpointing=True,
1112
+ gradient_checkpointing_kwargs=None,
1113
+ greater_is_better=None,
1114
+ group_by_length=False,
1115
+ half_precision_backend=auto,
1116
+ hub_always_push=False,
1117
+ hub_model_id=None,
1118
+ hub_private_repo=False,
1119
+ hub_strategy=every_save,
1120
+ hub_token=<HUB_TOKEN>,
1121
+ ignore_data_skip=False,
1122
+ include_inputs_for_metrics=False,
1123
+ include_num_input_tokens_seen=False,
1124
+ include_tokens_per_second=False,
1125
+ jit_mode_eval=False,
1126
+ label_names=None,
1127
+ label_smoothing_factor=0.0,
1128
+ learning_rate=0.0002,
1129
+ length_column_name=length,
1130
+ load_best_model_at_end=False,
1131
+ local_rank=0,
1132
+ log_level=passive,
1133
+ log_level_replica=warning,
1134
+ log_on_each_node=True,
1135
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May21_15-57-36_ts-ccabdee9f774458487b5dd0f562f0b70-launcher,
1136
+ logging_first_step=False,
1137
+ logging_nan_inf_filter=True,
1138
+ logging_steps=100,
1139
+ logging_strategy=steps,
1140
+ lr_scheduler_kwargs={},
1141
+ lr_scheduler_type=constant_with_warmup,
1142
+ max_grad_norm=0.3,
1143
+ max_steps=-1,
1144
+ metric_for_best_model=None,
1145
+ mp_parameters=,
1146
+ neftune_noise_alpha=None,
1147
+ no_cuda=False,
1148
+ num_train_epochs=1,
1149
+ optim=paged_adamw_32bit,
1150
+ optim_args=None,
1151
+ optim_target_modules=None,
1152
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1153
+ overwrite_output_dir=False,
1154
+ past_index=-1,
1155
+ per_device_eval_batch_size=8,
1156
+ per_device_train_batch_size=1,
1157
+ prediction_loss_only=False,
1158
+ push_to_hub=False,
1159
+ push_to_hub_model_id=None,
1160
+ push_to_hub_organization=None,
1161
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1162
+ ray_scope=last,
1163
+ remove_unused_columns=False,
1164
+ report_to=['tensorboard'],
1165
+ resume_from_checkpoint=None,
1166
+ run_name=output/firefly-qwen-7b-sft-qlora,
1167
+ save_on_each_node=False,
1168
+ save_only_model=False,
1169
+ save_safetensors=True,
1170
+ save_steps=100,
1171
+ save_strategy=steps,
1172
+ save_total_limit=1,
1173
+ seed=42,
1174
+ skip_memory_metrics=True,
1175
+ split_batches=None,
1176
+ tf32=None,
1177
+ torch_compile=False,
1178
+ torch_compile_backend=None,
1179
+ torch_compile_mode=None,
1180
+ torchdynamo=None,
1181
+ tpu_metrics_debug=False,
1182
+ tpu_num_cores=None,
1183
+ use_cpu=False,
1184
+ use_ipex=False,
1185
+ use_legacy_prediction_loop=False,
1186
+ use_mps_device=False,
1187
+ warmup_ratio=0.0,
1188
+ warmup_steps=100,
1189
+ weight_decay=0,
1190
+ )
1191
+ 2024-05-21 15:57:36.480 | INFO | __main__:init_components:333 - Initializing components...
1192
+ 2024-05-21 15:57:37.043 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1193
+ 2024-05-21 15:57:37.043 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1194
+ 2024-05-21 15:57:37.044 | INFO | __main__:load_model:221 - Train model with qlora
1195
+ 2024-05-21 15:58:02.666 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['w2', 'w1', 'c_proj', 'c_attn']
1196
+ 2024-05-21 15:58:45.333 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
1197
+ 2024-05-21 15:58:45.341 | INFO | __main__:load_model:295 - Total model params: 4626.45M
1198
+ 2024-05-21 15:58:45.341 | INFO | __main__:init_components:349 - Train model with sft task
1199
+ 2024-05-21 15:58:45.341 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
1200
+ 2024-05-21 15:58:45.341 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
1201
+ 2024-05-21 15:58:45.346 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
1202
+ 2024-05-21 15:58:45.346 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
1203
+ 2024-05-21 15:58:45.387 | INFO | __main__:main:387 - *** starting training ***
1204
+ 2024-05-23 10:33:52.253 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
1205
+ _n_gpu=1,
1206
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
1207
+ adafactor=False,
1208
+ adam_beta1=0.9,
1209
+ adam_beta2=0.999,
1210
+ adam_epsilon=1e-08,
1211
+ auto_find_batch_size=False,
1212
+ bf16=False,
1213
+ bf16_full_eval=False,
1214
+ data_seed=None,
1215
+ dataloader_drop_last=False,
1216
+ dataloader_num_workers=0,
1217
+ dataloader_persistent_workers=False,
1218
+ dataloader_pin_memory=True,
1219
+ dataloader_prefetch_factor=None,
1220
+ ddp_backend=None,
1221
+ ddp_broadcast_buffers=None,
1222
+ ddp_bucket_cap_mb=None,
1223
+ ddp_find_unused_parameters=None,
1224
+ ddp_timeout=1800,
1225
+ debug=[],
1226
+ deepspeed=None,
1227
+ disable_tqdm=False,
1228
+ dispatch_batches=None,
1229
+ do_eval=False,
1230
+ do_predict=False,
1231
+ do_train=False,
1232
+ eval_accumulation_steps=None,
1233
+ eval_delay=0,
1234
+ eval_steps=None,
1235
+ evaluation_strategy=no,
1236
+ fp16=True,
1237
+ fp16_backend=auto,
1238
+ fp16_full_eval=False,
1239
+ fp16_opt_level=O1,
1240
+ fsdp=[],
1241
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
1242
+ fsdp_min_num_params=0,
1243
+ fsdp_transformer_layer_cls_to_wrap=None,
1244
+ full_determinism=False,
1245
+ gradient_accumulation_steps=16,
1246
+ gradient_checkpointing=True,
1247
+ gradient_checkpointing_kwargs=None,
1248
+ greater_is_better=None,
1249
+ group_by_length=False,
1250
+ half_precision_backend=auto,
1251
+ hub_always_push=False,
1252
+ hub_model_id=None,
1253
+ hub_private_repo=False,
1254
+ hub_strategy=every_save,
1255
+ hub_token=<HUB_TOKEN>,
1256
+ ignore_data_skip=False,
1257
+ include_inputs_for_metrics=False,
1258
+ include_num_input_tokens_seen=False,
1259
+ include_tokens_per_second=False,
1260
+ jit_mode_eval=False,
1261
+ label_names=None,
1262
+ label_smoothing_factor=0.0,
1263
+ learning_rate=0.0002,
1264
+ length_column_name=length,
1265
+ load_best_model_at_end=False,
1266
+ local_rank=0,
1267
+ log_level=passive,
1268
+ log_level_replica=warning,
1269
+ log_on_each_node=True,
1270
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_10-33-52_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
1271
+ logging_first_step=False,
1272
+ logging_nan_inf_filter=True,
1273
+ logging_steps=100,
1274
+ logging_strategy=steps,
1275
+ lr_scheduler_kwargs={},
1276
+ lr_scheduler_type=constant_with_warmup,
1277
+ max_grad_norm=0.3,
1278
+ max_steps=-1,
1279
+ metric_for_best_model=None,
1280
+ mp_parameters=,
1281
+ neftune_noise_alpha=None,
1282
+ no_cuda=False,
1283
+ num_train_epochs=1,
1284
+ optim=paged_adamw_32bit,
1285
+ optim_args=None,
1286
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1287
+ overwrite_output_dir=False,
1288
+ past_index=-1,
1289
+ per_device_eval_batch_size=8,
1290
+ per_device_train_batch_size=1,
1291
+ prediction_loss_only=False,
1292
+ push_to_hub=False,
1293
+ push_to_hub_model_id=None,
1294
+ push_to_hub_organization=None,
1295
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1296
+ ray_scope=last,
1297
+ remove_unused_columns=False,
1298
+ report_to=['tensorboard'],
1299
+ resume_from_checkpoint=None,
1300
+ run_name=output/firefly-qwen-7b-sft-qlora,
1301
+ save_on_each_node=False,
1302
+ save_only_model=False,
1303
+ save_safetensors=True,
1304
+ save_steps=100,
1305
+ save_strategy=steps,
1306
+ save_total_limit=1,
1307
+ seed=42,
1308
+ skip_memory_metrics=True,
1309
+ split_batches=None,
1310
+ tf32=None,
1311
+ torch_compile=False,
1312
+ torch_compile_backend=None,
1313
+ torch_compile_mode=None,
1314
+ torchdynamo=None,
1315
+ tpu_metrics_debug=False,
1316
+ tpu_num_cores=None,
1317
+ use_cpu=False,
1318
+ use_ipex=False,
1319
+ use_legacy_prediction_loop=False,
1320
+ use_mps_device=False,
1321
+ warmup_ratio=0.0,
1322
+ warmup_steps=100,
1323
+ weight_decay=0,
1324
+ )
1325
+ 2024-05-23 10:33:52.256 | INFO | __main__:init_components:333 - Initializing components...
1326
+ 2024-05-23 10:33:52.746 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1327
+ 2024-05-23 10:33:52.747 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1328
+ 2024-05-23 10:33:52.747 | INFO | __main__:load_model:221 - Train model with qlora
1329
+ 2024-05-23 10:34:24.498 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['w1', 'w2', 'c_proj', 'c_attn']
1330
+ 2024-05-23 10:34:28.849 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
1331
+ 2024-05-23 10:34:28.856 | INFO | __main__:load_model:295 - Total model params: 4626.45M
1332
+ 2024-05-23 10:34:28.857 | INFO | __main__:init_components:349 - Train model with sft task
1333
+ 2024-05-23 10:34:28.857 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
1334
+ 2024-05-23 10:34:28.857 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
1335
+ 2024-05-23 10:34:28.862 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
1336
+ 2024-05-23 10:34:28.862 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
1337
+ 2024-05-23 10:34:28.908 | INFO | __main__:main:387 - *** starting training ***
1338
+ 2024-05-23 10:46:55.771 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
1339
+ _n_gpu=1,
1340
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
1341
+ adafactor=False,
1342
+ adam_beta1=0.9,
1343
+ adam_beta2=0.999,
1344
+ adam_epsilon=1e-08,
1345
+ auto_find_batch_size=False,
1346
+ bf16=False,
1347
+ bf16_full_eval=False,
1348
+ data_seed=None,
1349
+ dataloader_drop_last=False,
1350
+ dataloader_num_workers=0,
1351
+ dataloader_persistent_workers=False,
1352
+ dataloader_pin_memory=True,
1353
+ dataloader_prefetch_factor=None,
1354
+ ddp_backend=None,
1355
+ ddp_broadcast_buffers=None,
1356
+ ddp_bucket_cap_mb=None,
1357
+ ddp_find_unused_parameters=None,
1358
+ ddp_timeout=1800,
1359
+ debug=[],
1360
+ deepspeed=None,
1361
+ disable_tqdm=False,
1362
+ dispatch_batches=None,
1363
+ do_eval=False,
1364
+ do_predict=False,
1365
+ do_train=False,
1366
+ eval_accumulation_steps=None,
1367
+ eval_delay=0,
1368
+ eval_steps=None,
1369
+ evaluation_strategy=no,
1370
+ fp16=True,
1371
+ fp16_backend=auto,
1372
+ fp16_full_eval=False,
1373
+ fp16_opt_level=O1,
1374
+ fsdp=[],
1375
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
1376
+ fsdp_min_num_params=0,
1377
+ fsdp_transformer_layer_cls_to_wrap=None,
1378
+ full_determinism=False,
1379
+ gradient_accumulation_steps=16,
1380
+ gradient_checkpointing=True,
1381
+ gradient_checkpointing_kwargs=None,
1382
+ greater_is_better=None,
1383
+ group_by_length=False,
1384
+ half_precision_backend=auto,
1385
+ hub_always_push=False,
1386
+ hub_model_id=None,
1387
+ hub_private_repo=False,
1388
+ hub_strategy=every_save,
1389
+ hub_token=<HUB_TOKEN>,
1390
+ ignore_data_skip=False,
1391
+ include_inputs_for_metrics=False,
1392
+ include_num_input_tokens_seen=False,
1393
+ include_tokens_per_second=False,
1394
+ jit_mode_eval=False,
1395
+ label_names=None,
1396
+ label_smoothing_factor=0.0,
1397
+ learning_rate=0.0002,
1398
+ length_column_name=length,
1399
+ load_best_model_at_end=False,
1400
+ local_rank=0,
1401
+ log_level=passive,
1402
+ log_level_replica=warning,
1403
+ log_on_each_node=True,
1404
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_10-46-55_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
1405
+ logging_first_step=False,
1406
+ logging_nan_inf_filter=True,
1407
+ logging_steps=100,
1408
+ logging_strategy=steps,
1409
+ lr_scheduler_kwargs={},
1410
+ lr_scheduler_type=constant_with_warmup,
1411
+ max_grad_norm=0.3,
1412
+ max_steps=-1,
1413
+ metric_for_best_model=None,
1414
+ mp_parameters=,
1415
+ neftune_noise_alpha=None,
1416
+ no_cuda=False,
1417
+ num_train_epochs=1,
1418
+ optim=paged_adamw_32bit,
1419
+ optim_args=None,
1420
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1421
+ overwrite_output_dir=False,
1422
+ past_index=-1,
1423
+ per_device_eval_batch_size=8,
1424
+ per_device_train_batch_size=1,
1425
+ prediction_loss_only=False,
1426
+ push_to_hub=False,
1427
+ push_to_hub_model_id=None,
1428
+ push_to_hub_organization=None,
1429
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1430
+ ray_scope=last,
1431
+ remove_unused_columns=False,
1432
+ report_to=['tensorboard'],
1433
+ resume_from_checkpoint=None,
1434
+ run_name=output/firefly-qwen-7b-sft-qlora,
1435
+ save_on_each_node=False,
1436
+ save_only_model=False,
1437
+ save_safetensors=True,
1438
+ save_steps=100,
1439
+ save_strategy=steps,
1440
+ save_total_limit=1,
1441
+ seed=42,
1442
+ skip_memory_metrics=True,
1443
+ split_batches=None,
1444
+ tf32=None,
1445
+ torch_compile=False,
1446
+ torch_compile_backend=None,
1447
+ torch_compile_mode=None,
1448
+ torchdynamo=None,
1449
+ tpu_metrics_debug=False,
1450
+ tpu_num_cores=None,
1451
+ use_cpu=False,
1452
+ use_ipex=False,
1453
+ use_legacy_prediction_loop=False,
1454
+ use_mps_device=False,
1455
+ warmup_ratio=0.0,
1456
+ warmup_steps=100,
1457
+ weight_decay=0,
1458
+ )
1459
+ 2024-05-23 10:46:55.774 | INFO | __main__:init_components:333 - Initializing components...
1460
+ 2024-05-23 10:46:56.246 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1461
+ 2024-05-23 10:46:56.246 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1462
+ 2024-05-23 10:46:56.247 | INFO | __main__:load_model:221 - Train model with qlora
1463
+ 2024-05-23 10:47:29.916 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['w2', 'w1', 'c_attn', 'c_proj']
1464
+ 2024-05-23 10:47:34.339 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
1465
+ 2024-05-23 10:47:34.404 | INFO | __main__:load_model:295 - Total model params: 4626.45M
1466
+ 2024-05-23 10:47:34.405 | INFO | __main__:init_components:349 - Train model with sft task
1467
+ 2024-05-23 10:47:34.405 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
1468
+ 2024-05-23 10:47:34.405 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
1469
+ 2024-05-23 10:47:34.411 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
1470
+ 2024-05-23 10:47:34.411 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
1471
+ 2024-05-23 10:47:34.456 | INFO | __main__:main:387 - *** starting training ***
1472
+ 2024-05-23 11:03:38.908 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
1473
+ _n_gpu=1,
1474
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
1475
+ adafactor=False,
1476
+ adam_beta1=0.9,
1477
+ adam_beta2=0.999,
1478
+ adam_epsilon=1e-08,
1479
+ auto_find_batch_size=False,
1480
+ bf16=False,
1481
+ bf16_full_eval=False,
1482
+ data_seed=None,
1483
+ dataloader_drop_last=False,
1484
+ dataloader_num_workers=0,
1485
+ dataloader_persistent_workers=False,
1486
+ dataloader_pin_memory=True,
1487
+ dataloader_prefetch_factor=None,
1488
+ ddp_backend=None,
1489
+ ddp_broadcast_buffers=None,
1490
+ ddp_bucket_cap_mb=None,
1491
+ ddp_find_unused_parameters=None,
1492
+ ddp_timeout=1800,
1493
+ debug=[],
1494
+ deepspeed=None,
1495
+ disable_tqdm=False,
1496
+ dispatch_batches=None,
1497
+ do_eval=False,
1498
+ do_predict=False,
1499
+ do_train=False,
1500
+ eval_accumulation_steps=None,
1501
+ eval_delay=0,
1502
+ eval_steps=None,
1503
+ evaluation_strategy=no,
1504
+ fp16=True,
1505
+ fp16_backend=auto,
1506
+ fp16_full_eval=False,
1507
+ fp16_opt_level=O1,
1508
+ fsdp=[],
1509
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
1510
+ fsdp_min_num_params=0,
1511
+ fsdp_transformer_layer_cls_to_wrap=None,
1512
+ full_determinism=False,
1513
+ gradient_accumulation_steps=16,
1514
+ gradient_checkpointing=True,
1515
+ gradient_checkpointing_kwargs=None,
1516
+ greater_is_better=None,
1517
+ group_by_length=False,
1518
+ half_precision_backend=auto,
1519
+ hub_always_push=False,
1520
+ hub_model_id=None,
1521
+ hub_private_repo=False,
1522
+ hub_strategy=every_save,
1523
+ hub_token=<HUB_TOKEN>,
1524
+ ignore_data_skip=False,
1525
+ include_inputs_for_metrics=False,
1526
+ include_num_input_tokens_seen=False,
1527
+ include_tokens_per_second=False,
1528
+ jit_mode_eval=False,
1529
+ label_names=None,
1530
+ label_smoothing_factor=0.0,
1531
+ learning_rate=0.0002,
1532
+ length_column_name=length,
1533
+ load_best_model_at_end=False,
1534
+ local_rank=0,
1535
+ log_level=passive,
1536
+ log_level_replica=warning,
1537
+ log_on_each_node=True,
1538
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_11-03-38_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
1539
+ logging_first_step=False,
1540
+ logging_nan_inf_filter=True,
1541
+ logging_steps=100,
1542
+ logging_strategy=steps,
1543
+ lr_scheduler_kwargs={},
1544
+ lr_scheduler_type=constant_with_warmup,
1545
+ max_grad_norm=0.3,
1546
+ max_steps=-1,
1547
+ metric_for_best_model=None,
1548
+ mp_parameters=,
1549
+ neftune_noise_alpha=None,
1550
+ no_cuda=False,
1551
+ num_train_epochs=1,
1552
+ optim=paged_adamw_32bit,
1553
+ optim_args=None,
1554
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1555
+ overwrite_output_dir=False,
1556
+ past_index=-1,
1557
+ per_device_eval_batch_size=8,
1558
+ per_device_train_batch_size=1,
1559
+ prediction_loss_only=False,
1560
+ push_to_hub=False,
1561
+ push_to_hub_model_id=None,
1562
+ push_to_hub_organization=None,
1563
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1564
+ ray_scope=last,
1565
+ remove_unused_columns=False,
1566
+ report_to=['tensorboard'],
1567
+ resume_from_checkpoint=None,
1568
+ run_name=output/firefly-qwen-7b-sft-qlora,
1569
+ save_on_each_node=False,
1570
+ save_only_model=False,
1571
+ save_safetensors=True,
1572
+ save_steps=100,
1573
+ save_strategy=steps,
1574
+ save_total_limit=1,
1575
+ seed=42,
1576
+ skip_memory_metrics=True,
1577
+ split_batches=None,
1578
+ tf32=None,
1579
+ torch_compile=False,
1580
+ torch_compile_backend=None,
1581
+ torch_compile_mode=None,
1582
+ torchdynamo=None,
1583
+ tpu_metrics_debug=False,
1584
+ tpu_num_cores=None,
1585
+ use_cpu=False,
1586
+ use_ipex=False,
1587
+ use_legacy_prediction_loop=False,
1588
+ use_mps_device=False,
1589
+ warmup_ratio=0.0,
1590
+ warmup_steps=100,
1591
+ weight_decay=0,
1592
+ )
1593
+ 2024-05-23 11:03:38.911 | INFO | __main__:init_components:333 - Initializing components...
1594
+ 2024-05-23 11:03:39.404 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1595
+ 2024-05-23 11:03:39.405 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1596
+ 2024-05-23 11:03:39.405 | INFO | __main__:load_model:221 - Train model with qlora
1597
+ 2024-05-23 11:04:06.829 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_proj', 'c_attn', 'w1', 'w2']
1598
+ 2024-05-23 11:04:11.229 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
1599
+ 2024-05-23 11:04:11.237 | INFO | __main__:load_model:295 - Total model params: 4626.45M
1600
+ 2024-05-23 11:04:11.237 | INFO | __main__:init_components:349 - Train model with sft task
1601
+ 2024-05-23 11:04:11.238 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
1602
+ 2024-05-23 11:04:11.238 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
1603
+ 2024-05-23 11:04:11.242 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
1604
+ 2024-05-23 11:04:11.242 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
1605
+ 2024-05-23 11:04:11.282 | INFO | __main__:main:387 - *** starting training ***
1606
+ 2024-05-23 11:09:34.482 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
1607
+ _n_gpu=1,
1608
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
1609
+ adafactor=False,
1610
+ adam_beta1=0.9,
1611
+ adam_beta2=0.999,
1612
+ adam_epsilon=1e-08,
1613
+ auto_find_batch_size=False,
1614
+ bf16=False,
1615
+ bf16_full_eval=False,
1616
+ data_seed=None,
1617
+ dataloader_drop_last=False,
1618
+ dataloader_num_workers=0,
1619
+ dataloader_persistent_workers=False,
1620
+ dataloader_pin_memory=True,
1621
+ dataloader_prefetch_factor=None,
1622
+ ddp_backend=None,
1623
+ ddp_broadcast_buffers=None,
1624
+ ddp_bucket_cap_mb=None,
1625
+ ddp_find_unused_parameters=None,
1626
+ ddp_timeout=1800,
1627
+ debug=[],
1628
+ deepspeed=None,
1629
+ disable_tqdm=False,
1630
+ dispatch_batches=None,
1631
+ do_eval=False,
1632
+ do_predict=False,
1633
+ do_train=False,
1634
+ eval_accumulation_steps=None,
1635
+ eval_delay=0,
1636
+ eval_steps=None,
1637
+ evaluation_strategy=no,
1638
+ fp16=True,
1639
+ fp16_backend=auto,
1640
+ fp16_full_eval=False,
1641
+ fp16_opt_level=O1,
1642
+ fsdp=[],
1643
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
1644
+ fsdp_min_num_params=0,
1645
+ fsdp_transformer_layer_cls_to_wrap=None,
1646
+ full_determinism=False,
1647
+ gradient_accumulation_steps=16,
1648
+ gradient_checkpointing=True,
1649
+ gradient_checkpointing_kwargs=None,
1650
+ greater_is_better=None,
1651
+ group_by_length=False,
1652
+ half_precision_backend=auto,
1653
+ hub_always_push=False,
1654
+ hub_model_id=None,
1655
+ hub_private_repo=False,
1656
+ hub_strategy=every_save,
1657
+ hub_token=<HUB_TOKEN>,
1658
+ ignore_data_skip=False,
1659
+ include_inputs_for_metrics=False,
1660
+ include_num_input_tokens_seen=False,
1661
+ include_tokens_per_second=False,
1662
+ jit_mode_eval=False,
1663
+ label_names=None,
1664
+ label_smoothing_factor=0.0,
1665
+ learning_rate=0.0002,
1666
+ length_column_name=length,
1667
+ load_best_model_at_end=False,
1668
+ local_rank=0,
1669
+ log_level=passive,
1670
+ log_level_replica=warning,
1671
+ log_on_each_node=True,
1672
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_11-09-34_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
1673
+ logging_first_step=False,
1674
+ logging_nan_inf_filter=True,
1675
+ logging_steps=100,
1676
+ logging_strategy=steps,
1677
+ lr_scheduler_kwargs={},
1678
+ lr_scheduler_type=constant_with_warmup,
1679
+ max_grad_norm=0.3,
1680
+ max_steps=-1,
1681
+ metric_for_best_model=None,
1682
+ mp_parameters=,
1683
+ neftune_noise_alpha=None,
1684
+ no_cuda=False,
1685
+ num_train_epochs=1,
1686
+ optim=paged_adamw_32bit,
1687
+ optim_args=None,
1688
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1689
+ overwrite_output_dir=False,
1690
+ past_index=-1,
1691
+ per_device_eval_batch_size=8,
1692
+ per_device_train_batch_size=1,
1693
+ prediction_loss_only=False,
1694
+ push_to_hub=False,
1695
+ push_to_hub_model_id=None,
1696
+ push_to_hub_organization=None,
1697
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1698
+ ray_scope=last,
1699
+ remove_unused_columns=False,
1700
+ report_to=['tensorboard'],
1701
+ resume_from_checkpoint=None,
1702
+ run_name=output/firefly-qwen-7b-sft-qlora,
1703
+ save_on_each_node=False,
1704
+ save_only_model=False,
1705
+ save_safetensors=True,
1706
+ save_steps=100,
1707
+ save_strategy=steps,
1708
+ save_total_limit=1,
1709
+ seed=42,
1710
+ skip_memory_metrics=True,
1711
+ split_batches=None,
1712
+ tf32=None,
1713
+ torch_compile=False,
1714
+ torch_compile_backend=None,
1715
+ torch_compile_mode=None,
1716
+ torchdynamo=None,
1717
+ tpu_metrics_debug=False,
1718
+ tpu_num_cores=None,
1719
+ use_cpu=False,
1720
+ use_ipex=False,
1721
+ use_legacy_prediction_loop=False,
1722
+ use_mps_device=False,
1723
+ warmup_ratio=0.0,
1724
+ warmup_steps=100,
1725
+ weight_decay=0,
1726
+ )
1727
+ 2024-05-23 11:09:34.485 | INFO | __main__:init_components:333 - Initializing components...
1728
+ 2024-05-23 11:09:34.949 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1729
+ 2024-05-23 11:09:34.949 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1730
+ 2024-05-23 11:09:34.950 | INFO | __main__:load_model:221 - Train model with qlora
1731
+ 2024-05-23 11:10:02.282 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_proj', 'c_attn', 'w2', 'w1']
1732
+ 2024-05-23 11:10:07.418 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
1733
+ 2024-05-23 11:10:07.426 | INFO | __main__:load_model:295 - Total model params: 4626.45M
1734
+ 2024-05-23 11:10:07.427 | INFO | __main__:init_components:349 - Train model with sft task
1735
+ 2024-05-23 11:10:07.427 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
1736
+ 2024-05-23 11:10:07.427 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
1737
+ 2024-05-23 11:10:07.431 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
1738
+ 2024-05-23 11:10:07.431 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
1739
+ 2024-05-23 11:10:07.479 | INFO | __main__:main:387 - *** starting training ***
1740
+ 2024-05-23 11:18:23.072 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
1741
+ _n_gpu=1,
1742
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
1743
+ adafactor=False,
1744
+ adam_beta1=0.9,
1745
+ adam_beta2=0.999,
1746
+ adam_epsilon=1e-08,
1747
+ auto_find_batch_size=False,
1748
+ bf16=False,
1749
+ bf16_full_eval=False,
1750
+ data_seed=None,
1751
+ dataloader_drop_last=False,
1752
+ dataloader_num_workers=0,
1753
+ dataloader_persistent_workers=False,
1754
+ dataloader_pin_memory=True,
1755
+ dataloader_prefetch_factor=None,
1756
+ ddp_backend=None,
1757
+ ddp_broadcast_buffers=None,
1758
+ ddp_bucket_cap_mb=None,
1759
+ ddp_find_unused_parameters=None,
1760
+ ddp_timeout=1800,
1761
+ debug=[],
1762
+ deepspeed=None,
1763
+ disable_tqdm=False,
1764
+ dispatch_batches=None,
1765
+ do_eval=False,
1766
+ do_predict=False,
1767
+ do_train=False,
1768
+ eval_accumulation_steps=None,
1769
+ eval_delay=0,
1770
+ eval_steps=None,
1771
+ evaluation_strategy=no,
1772
+ fp16=True,
1773
+ fp16_backend=auto,
1774
+ fp16_full_eval=False,
1775
+ fp16_opt_level=O1,
1776
+ fsdp=[],
1777
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
1778
+ fsdp_min_num_params=0,
1779
+ fsdp_transformer_layer_cls_to_wrap=None,
1780
+ full_determinism=False,
1781
+ gradient_accumulation_steps=16,
1782
+ gradient_checkpointing=True,
1783
+ gradient_checkpointing_kwargs=None,
1784
+ greater_is_better=None,
1785
+ group_by_length=False,
1786
+ half_precision_backend=auto,
1787
+ hub_always_push=False,
1788
+ hub_model_id=None,
1789
+ hub_private_repo=False,
1790
+ hub_strategy=every_save,
1791
+ hub_token=<HUB_TOKEN>,
1792
+ ignore_data_skip=False,
1793
+ include_inputs_for_metrics=False,
1794
+ include_num_input_tokens_seen=False,
1795
+ include_tokens_per_second=False,
1796
+ jit_mode_eval=False,
1797
+ label_names=None,
1798
+ label_smoothing_factor=0.0,
1799
+ learning_rate=0.0002,
1800
+ length_column_name=length,
1801
+ load_best_model_at_end=False,
1802
+ local_rank=0,
1803
+ log_level=passive,
1804
+ log_level_replica=warning,
1805
+ log_on_each_node=True,
1806
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_11-18-23_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
1807
+ logging_first_step=False,
1808
+ logging_nan_inf_filter=True,
1809
+ logging_steps=100,
1810
+ logging_strategy=steps,
1811
+ lr_scheduler_kwargs={},
1812
+ lr_scheduler_type=constant_with_warmup,
1813
+ max_grad_norm=0.3,
1814
+ max_steps=-1,
1815
+ metric_for_best_model=None,
1816
+ mp_parameters=,
1817
+ neftune_noise_alpha=None,
1818
+ no_cuda=False,
1819
+ num_train_epochs=1,
1820
+ optim=paged_adamw_32bit,
1821
+ optim_args=None,
1822
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1823
+ overwrite_output_dir=False,
1824
+ past_index=-1,
1825
+ per_device_eval_batch_size=8,
1826
+ per_device_train_batch_size=1,
1827
+ prediction_loss_only=False,
1828
+ push_to_hub=False,
1829
+ push_to_hub_model_id=None,
1830
+ push_to_hub_organization=None,
1831
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1832
+ ray_scope=last,
1833
+ remove_unused_columns=False,
1834
+ report_to=['tensorboard'],
1835
+ resume_from_checkpoint=None,
1836
+ run_name=output/firefly-qwen-7b-sft-qlora,
1837
+ save_on_each_node=False,
1838
+ save_only_model=False,
1839
+ save_safetensors=True,
1840
+ save_steps=100,
1841
+ save_strategy=steps,
1842
+ save_total_limit=1,
1843
+ seed=42,
1844
+ skip_memory_metrics=True,
1845
+ split_batches=None,
1846
+ tf32=None,
1847
+ torch_compile=False,
1848
+ torch_compile_backend=None,
1849
+ torch_compile_mode=None,
1850
+ torchdynamo=None,
1851
+ tpu_metrics_debug=False,
1852
+ tpu_num_cores=None,
1853
+ use_cpu=False,
1854
+ use_ipex=False,
1855
+ use_legacy_prediction_loop=False,
1856
+ use_mps_device=False,
1857
+ warmup_ratio=0.0,
1858
+ warmup_steps=100,
1859
+ weight_decay=0,
1860
+ )
1861
+ 2024-05-23 11:18:23.076 | INFO | __main__:init_components:333 - Initializing components...
1862
+ 2024-05-23 11:18:23.596 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1863
+ 2024-05-23 11:18:23.597 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1864
+ 2024-05-23 11:18:23.597 | INFO | __main__:load_model:221 - Train model with qlora
1865
+ 2024-05-23 11:18:50.129 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_proj', 'w2', 'c_attn', 'w1']
1866
+ 2024-05-23 11:18:54.414 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
1867
+ 2024-05-23 11:18:54.422 | INFO | __main__:load_model:295 - Total model params: 4626.45M
1868
+ 2024-05-23 11:18:54.422 | INFO | __main__:init_components:349 - Train model with sft task
1869
+ 2024-05-23 11:18:54.422 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
1870
+ 2024-05-23 11:18:54.423 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
1871
+ 2024-05-23 11:18:54.428 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
1872
+ 2024-05-23 11:18:54.428 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
1873
+ 2024-05-23 11:18:54.469 | INFO | __main__:main:387 - *** starting training ***
1874
+ 2024-05-23 11:23:01.591 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
1875
+ _n_gpu=1,
1876
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
1877
+ adafactor=False,
1878
+ adam_beta1=0.9,
1879
+ adam_beta2=0.999,
1880
+ adam_epsilon=1e-08,
1881
+ auto_find_batch_size=False,
1882
+ bf16=False,
1883
+ bf16_full_eval=False,
1884
+ data_seed=None,
1885
+ dataloader_drop_last=False,
1886
+ dataloader_num_workers=0,
1887
+ dataloader_persistent_workers=False,
1888
+ dataloader_pin_memory=True,
1889
+ dataloader_prefetch_factor=None,
1890
+ ddp_backend=None,
1891
+ ddp_broadcast_buffers=None,
1892
+ ddp_bucket_cap_mb=None,
1893
+ ddp_find_unused_parameters=None,
1894
+ ddp_timeout=1800,
1895
+ debug=[],
1896
+ deepspeed=None,
1897
+ disable_tqdm=False,
1898
+ dispatch_batches=None,
1899
+ do_eval=False,
1900
+ do_predict=False,
1901
+ do_train=False,
1902
+ eval_accumulation_steps=None,
1903
+ eval_delay=0,
1904
+ eval_steps=None,
1905
+ evaluation_strategy=no,
1906
+ fp16=True,
1907
+ fp16_backend=auto,
1908
+ fp16_full_eval=False,
1909
+ fp16_opt_level=O1,
1910
+ fsdp=[],
1911
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
1912
+ fsdp_min_num_params=0,
1913
+ fsdp_transformer_layer_cls_to_wrap=None,
1914
+ full_determinism=False,
1915
+ gradient_accumulation_steps=16,
1916
+ gradient_checkpointing=True,
1917
+ gradient_checkpointing_kwargs=None,
1918
+ greater_is_better=None,
1919
+ group_by_length=False,
1920
+ half_precision_backend=auto,
1921
+ hub_always_push=False,
1922
+ hub_model_id=None,
1923
+ hub_private_repo=False,
1924
+ hub_strategy=every_save,
1925
+ hub_token=<HUB_TOKEN>,
1926
+ ignore_data_skip=False,
1927
+ include_inputs_for_metrics=False,
1928
+ include_num_input_tokens_seen=False,
1929
+ include_tokens_per_second=False,
1930
+ jit_mode_eval=False,
1931
+ label_names=None,
1932
+ label_smoothing_factor=0.0,
1933
+ learning_rate=0.0002,
1934
+ length_column_name=length,
1935
+ load_best_model_at_end=False,
1936
+ local_rank=0,
1937
+ log_level=passive,
1938
+ log_level_replica=warning,
1939
+ log_on_each_node=True,
1940
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_11-23-01_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
1941
+ logging_first_step=False,
1942
+ logging_nan_inf_filter=True,
1943
+ logging_steps=100,
1944
+ logging_strategy=steps,
1945
+ lr_scheduler_kwargs={},
1946
+ lr_scheduler_type=constant_with_warmup,
1947
+ max_grad_norm=0.3,
1948
+ max_steps=-1,
1949
+ metric_for_best_model=None,
1950
+ mp_parameters=,
1951
+ neftune_noise_alpha=None,
1952
+ no_cuda=False,
1953
+ num_train_epochs=1,
1954
+ optim=paged_adamw_32bit,
1955
+ optim_args=None,
1956
+ output_dir=output/firefly-qwen-7b-sft-qlora,
1957
+ overwrite_output_dir=False,
1958
+ past_index=-1,
1959
+ per_device_eval_batch_size=8,
1960
+ per_device_train_batch_size=1,
1961
+ prediction_loss_only=False,
1962
+ push_to_hub=False,
1963
+ push_to_hub_model_id=None,
1964
+ push_to_hub_organization=None,
1965
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
1966
+ ray_scope=last,
1967
+ remove_unused_columns=False,
1968
+ report_to=['tensorboard'],
1969
+ resume_from_checkpoint=None,
1970
+ run_name=output/firefly-qwen-7b-sft-qlora,
1971
+ save_on_each_node=False,
1972
+ save_only_model=False,
1973
+ save_safetensors=True,
1974
+ save_steps=100,
1975
+ save_strategy=steps,
1976
+ save_total_limit=1,
1977
+ seed=42,
1978
+ skip_memory_metrics=True,
1979
+ split_batches=None,
1980
+ tf32=None,
1981
+ torch_compile=False,
1982
+ torch_compile_backend=None,
1983
+ torch_compile_mode=None,
1984
+ torchdynamo=None,
1985
+ tpu_metrics_debug=False,
1986
+ tpu_num_cores=None,
1987
+ use_cpu=False,
1988
+ use_ipex=False,
1989
+ use_legacy_prediction_loop=False,
1990
+ use_mps_device=False,
1991
+ warmup_ratio=0.0,
1992
+ warmup_steps=100,
1993
+ weight_decay=0,
1994
+ )
1995
+ 2024-05-23 11:23:01.594 | INFO | __main__:init_components:333 - Initializing components...
1996
+ 2024-05-23 11:23:02.063 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
1997
+ 2024-05-23 11:23:02.064 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
1998
+ 2024-05-23 11:23:02.064 | INFO | __main__:load_model:221 - Train model with qlora
1999
+ 2024-05-23 11:23:29.599 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_attn', 'c_proj', 'w2', 'w1']
2000
+ 2024-05-23 11:23:33.944 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
2001
+ 2024-05-23 11:23:33.951 | INFO | __main__:load_model:295 - Total model params: 4626.45M
2002
+ 2024-05-23 11:23:33.952 | INFO | __main__:init_components:349 - Train model with sft task
2003
+ 2024-05-23 11:23:33.952 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
2004
+ 2024-05-23 11:23:33.952 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
2005
+ 2024-05-23 11:23:33.957 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
2006
+ 2024-05-23 11:23:33.957 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
2007
+ 2024-05-23 11:23:34.049 | INFO | __main__:main:387 - *** starting training ***
2008
+ 2024-05-23 11:24:24.214 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
2009
+ _n_gpu=1,
2010
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
2011
+ adafactor=False,
2012
+ adam_beta1=0.9,
2013
+ adam_beta2=0.999,
2014
+ adam_epsilon=1e-08,
2015
+ auto_find_batch_size=False,
2016
+ bf16=False,
2017
+ bf16_full_eval=False,
2018
+ data_seed=None,
2019
+ dataloader_drop_last=False,
2020
+ dataloader_num_workers=0,
2021
+ dataloader_persistent_workers=False,
2022
+ dataloader_pin_memory=True,
2023
+ dataloader_prefetch_factor=None,
2024
+ ddp_backend=None,
2025
+ ddp_broadcast_buffers=None,
2026
+ ddp_bucket_cap_mb=None,
2027
+ ddp_find_unused_parameters=None,
2028
+ ddp_timeout=1800,
2029
+ debug=[],
2030
+ deepspeed=None,
2031
+ disable_tqdm=False,
2032
+ dispatch_batches=None,
2033
+ do_eval=False,
2034
+ do_predict=False,
2035
+ do_train=False,
2036
+ eval_accumulation_steps=None,
2037
+ eval_delay=0,
2038
+ eval_steps=None,
2039
+ evaluation_strategy=no,
2040
+ fp16=True,
2041
+ fp16_backend=auto,
2042
+ fp16_full_eval=False,
2043
+ fp16_opt_level=O1,
2044
+ fsdp=[],
2045
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
2046
+ fsdp_min_num_params=0,
2047
+ fsdp_transformer_layer_cls_to_wrap=None,
2048
+ full_determinism=False,
2049
+ gradient_accumulation_steps=16,
2050
+ gradient_checkpointing=True,
2051
+ gradient_checkpointing_kwargs=None,
2052
+ greater_is_better=None,
2053
+ group_by_length=False,
2054
+ half_precision_backend=auto,
2055
+ hub_always_push=False,
2056
+ hub_model_id=None,
2057
+ hub_private_repo=False,
2058
+ hub_strategy=every_save,
2059
+ hub_token=<HUB_TOKEN>,
2060
+ ignore_data_skip=False,
2061
+ include_inputs_for_metrics=False,
2062
+ include_num_input_tokens_seen=False,
2063
+ include_tokens_per_second=False,
2064
+ jit_mode_eval=False,
2065
+ label_names=None,
2066
+ label_smoothing_factor=0.0,
2067
+ learning_rate=0.0002,
2068
+ length_column_name=length,
2069
+ load_best_model_at_end=False,
2070
+ local_rank=0,
2071
+ log_level=passive,
2072
+ log_level_replica=warning,
2073
+ log_on_each_node=True,
2074
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_11-24-24_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
2075
+ logging_first_step=False,
2076
+ logging_nan_inf_filter=True,
2077
+ logging_steps=100,
2078
+ logging_strategy=steps,
2079
+ lr_scheduler_kwargs={},
2080
+ lr_scheduler_type=constant_with_warmup,
2081
+ max_grad_norm=0.3,
2082
+ max_steps=-1,
2083
+ metric_for_best_model=None,
2084
+ mp_parameters=,
2085
+ neftune_noise_alpha=None,
2086
+ no_cuda=False,
2087
+ num_train_epochs=1,
2088
+ optim=paged_adamw_32bit,
2089
+ optim_args=None,
2090
+ output_dir=output/firefly-qwen-7b-sft-qlora,
2091
+ overwrite_output_dir=False,
2092
+ past_index=-1,
2093
+ per_device_eval_batch_size=8,
2094
+ per_device_train_batch_size=1,
2095
+ prediction_loss_only=False,
2096
+ push_to_hub=False,
2097
+ push_to_hub_model_id=None,
2098
+ push_to_hub_organization=None,
2099
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
2100
+ ray_scope=last,
2101
+ remove_unused_columns=False,
2102
+ report_to=['tensorboard'],
2103
+ resume_from_checkpoint=None,
2104
+ run_name=output/firefly-qwen-7b-sft-qlora,
2105
+ save_on_each_node=False,
2106
+ save_only_model=False,
2107
+ save_safetensors=True,
2108
+ save_steps=100,
2109
+ save_strategy=steps,
2110
+ save_total_limit=1,
2111
+ seed=42,
2112
+ skip_memory_metrics=True,
2113
+ split_batches=None,
2114
+ tf32=None,
2115
+ torch_compile=False,
2116
+ torch_compile_backend=None,
2117
+ torch_compile_mode=None,
2118
+ torchdynamo=None,
2119
+ tpu_metrics_debug=False,
2120
+ tpu_num_cores=None,
2121
+ use_cpu=False,
2122
+ use_ipex=False,
2123
+ use_legacy_prediction_loop=False,
2124
+ use_mps_device=False,
2125
+ warmup_ratio=0.0,
2126
+ warmup_steps=100,
2127
+ weight_decay=0,
2128
+ )
2129
+ 2024-05-23 11:24:24.217 | INFO | __main__:init_components:333 - Initializing components...
2130
+ 2024-05-23 11:24:24.676 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
2131
+ 2024-05-23 11:24:24.677 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
2132
+ 2024-05-23 11:24:24.677 | INFO | __main__:load_model:221 - Train model with qlora
2133
+ 2024-05-23 11:24:36.170 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_proj', 'w1', 'c_attn', 'w2']
2134
+ 2024-05-23 11:24:40.516 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
2135
+ 2024-05-23 11:24:40.524 | INFO | __main__:load_model:295 - Total model params: 4626.45M
2136
+ 2024-05-23 11:24:40.524 | INFO | __main__:init_components:349 - Train model with sft task
2137
+ 2024-05-23 11:24:40.524 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
2138
+ 2024-05-23 11:24:40.524 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
2139
+ 2024-05-23 11:24:40.526 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
2140
+ 2024-05-23 11:24:40.526 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
2141
+ 2024-05-23 11:24:40.570 | INFO | __main__:main:387 - *** starting training ***
2142
+ 2024-05-23 11:30:05.839 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
2143
+ _n_gpu=1,
2144
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
2145
+ adafactor=False,
2146
+ adam_beta1=0.9,
2147
+ adam_beta2=0.999,
2148
+ adam_epsilon=1e-08,
2149
+ auto_find_batch_size=False,
2150
+ bf16=False,
2151
+ bf16_full_eval=False,
2152
+ data_seed=None,
2153
+ dataloader_drop_last=False,
2154
+ dataloader_num_workers=0,
2155
+ dataloader_persistent_workers=False,
2156
+ dataloader_pin_memory=True,
2157
+ dataloader_prefetch_factor=None,
2158
+ ddp_backend=None,
2159
+ ddp_broadcast_buffers=None,
2160
+ ddp_bucket_cap_mb=None,
2161
+ ddp_find_unused_parameters=None,
2162
+ ddp_timeout=1800,
2163
+ debug=[],
2164
+ deepspeed=None,
2165
+ disable_tqdm=False,
2166
+ dispatch_batches=None,
2167
+ do_eval=False,
2168
+ do_predict=False,
2169
+ do_train=False,
2170
+ eval_accumulation_steps=None,
2171
+ eval_delay=0,
2172
+ eval_steps=None,
2173
+ evaluation_strategy=no,
2174
+ fp16=True,
2175
+ fp16_backend=auto,
2176
+ fp16_full_eval=False,
2177
+ fp16_opt_level=O1,
2178
+ fsdp=[],
2179
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
2180
+ fsdp_min_num_params=0,
2181
+ fsdp_transformer_layer_cls_to_wrap=None,
2182
+ full_determinism=False,
2183
+ gradient_accumulation_steps=16,
2184
+ gradient_checkpointing=True,
2185
+ gradient_checkpointing_kwargs=None,
2186
+ greater_is_better=None,
2187
+ group_by_length=False,
2188
+ half_precision_backend=auto,
2189
+ hub_always_push=False,
2190
+ hub_model_id=None,
2191
+ hub_private_repo=False,
2192
+ hub_strategy=every_save,
2193
+ hub_token=<HUB_TOKEN>,
2194
+ ignore_data_skip=False,
2195
+ include_inputs_for_metrics=False,
2196
+ include_num_input_tokens_seen=False,
2197
+ include_tokens_per_second=False,
2198
+ jit_mode_eval=False,
2199
+ label_names=None,
2200
+ label_smoothing_factor=0.0,
2201
+ learning_rate=0.0002,
2202
+ length_column_name=length,
2203
+ load_best_model_at_end=False,
2204
+ local_rank=0,
2205
+ log_level=passive,
2206
+ log_level_replica=warning,
2207
+ log_on_each_node=True,
2208
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_11-30-05_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
2209
+ logging_first_step=False,
2210
+ logging_nan_inf_filter=True,
2211
+ logging_steps=100,
2212
+ logging_strategy=steps,
2213
+ lr_scheduler_kwargs={},
2214
+ lr_scheduler_type=constant_with_warmup,
2215
+ max_grad_norm=0.3,
2216
+ max_steps=-1,
2217
+ metric_for_best_model=None,
2218
+ mp_parameters=,
2219
+ neftune_noise_alpha=None,
2220
+ no_cuda=False,
2221
+ num_train_epochs=1,
2222
+ optim=paged_adamw_32bit,
2223
+ optim_args=None,
2224
+ output_dir=output/firefly-qwen-7b-sft-qlora,
2225
+ overwrite_output_dir=False,
2226
+ past_index=-1,
2227
+ per_device_eval_batch_size=8,
2228
+ per_device_train_batch_size=1,
2229
+ prediction_loss_only=False,
2230
+ push_to_hub=False,
2231
+ push_to_hub_model_id=None,
2232
+ push_to_hub_organization=None,
2233
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
2234
+ ray_scope=last,
2235
+ remove_unused_columns=False,
2236
+ report_to=['tensorboard'],
2237
+ resume_from_checkpoint=None,
2238
+ run_name=output/firefly-qwen-7b-sft-qlora,
2239
+ save_on_each_node=False,
2240
+ save_only_model=False,
2241
+ save_safetensors=True,
2242
+ save_steps=100,
2243
+ save_strategy=steps,
2244
+ save_total_limit=1,
2245
+ seed=42,
2246
+ skip_memory_metrics=True,
2247
+ split_batches=None,
2248
+ tf32=None,
2249
+ torch_compile=False,
2250
+ torch_compile_backend=None,
2251
+ torch_compile_mode=None,
2252
+ torchdynamo=None,
2253
+ tpu_metrics_debug=False,
2254
+ tpu_num_cores=None,
2255
+ use_cpu=False,
2256
+ use_ipex=False,
2257
+ use_legacy_prediction_loop=False,
2258
+ use_mps_device=False,
2259
+ warmup_ratio=0.0,
2260
+ warmup_steps=100,
2261
+ weight_decay=0,
2262
+ )
2263
+ 2024-05-23 11:30:05.843 | INFO | __main__:init_components:333 - Initializing components...
2264
+ 2024-05-23 11:30:06.357 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
2265
+ 2024-05-23 11:30:06.358 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
2266
+ 2024-05-23 11:30:06.358 | INFO | __main__:load_model:221 - Train model with qlora
2267
+ 2024-05-23 11:30:34.001 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['w1', 'w2', 'c_proj', 'c_attn']
2268
+ 2024-05-23 11:30:38.329 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
2269
+ 2024-05-23 11:30:38.337 | INFO | __main__:load_model:295 - Total model params: 4626.45M
2270
+ 2024-05-23 11:30:38.337 | INFO | __main__:init_components:349 - Train model with sft task
2271
+ 2024-05-23 11:30:38.337 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
2272
+ 2024-05-23 11:30:38.338 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
2273
+ 2024-05-23 11:30:38.342 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
2274
+ 2024-05-23 11:30:38.342 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
2275
+ 2024-05-23 11:30:38.383 | INFO | __main__:main:387 - *** starting training ***
2276
+ 2024-05-23 11:58:07.400 | INFO | __main__:setup_everything:52 - train_args:TrainingArguments(
2277
+ _n_gpu=1,
2278
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True},
2279
+ adafactor=False,
2280
+ adam_beta1=0.9,
2281
+ adam_beta2=0.999,
2282
+ adam_epsilon=1e-08,
2283
+ auto_find_batch_size=False,
2284
+ bf16=False,
2285
+ bf16_full_eval=False,
2286
+ data_seed=None,
2287
+ dataloader_drop_last=False,
2288
+ dataloader_num_workers=0,
2289
+ dataloader_persistent_workers=False,
2290
+ dataloader_pin_memory=True,
2291
+ dataloader_prefetch_factor=None,
2292
+ ddp_backend=None,
2293
+ ddp_broadcast_buffers=None,
2294
+ ddp_bucket_cap_mb=None,
2295
+ ddp_find_unused_parameters=None,
2296
+ ddp_timeout=1800,
2297
+ debug=[],
2298
+ deepspeed=None,
2299
+ disable_tqdm=False,
2300
+ dispatch_batches=None,
2301
+ do_eval=False,
2302
+ do_predict=False,
2303
+ do_train=False,
2304
+ eval_accumulation_steps=None,
2305
+ eval_delay=0,
2306
+ eval_steps=None,
2307
+ evaluation_strategy=no,
2308
+ fp16=True,
2309
+ fp16_backend=auto,
2310
+ fp16_full_eval=False,
2311
+ fp16_opt_level=O1,
2312
+ fsdp=[],
2313
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
2314
+ fsdp_min_num_params=0,
2315
+ fsdp_transformer_layer_cls_to_wrap=None,
2316
+ full_determinism=False,
2317
+ gradient_accumulation_steps=16,
2318
+ gradient_checkpointing=True,
2319
+ gradient_checkpointing_kwargs=None,
2320
+ greater_is_better=None,
2321
+ group_by_length=False,
2322
+ half_precision_backend=auto,
2323
+ hub_always_push=False,
2324
+ hub_model_id=None,
2325
+ hub_private_repo=False,
2326
+ hub_strategy=every_save,
2327
+ hub_token=<HUB_TOKEN>,
2328
+ ignore_data_skip=False,
2329
+ include_inputs_for_metrics=False,
2330
+ include_num_input_tokens_seen=False,
2331
+ include_tokens_per_second=False,
2332
+ jit_mode_eval=False,
2333
+ label_names=None,
2334
+ label_smoothing_factor=0.0,
2335
+ learning_rate=0.0002,
2336
+ length_column_name=length,
2337
+ load_best_model_at_end=False,
2338
+ local_rank=0,
2339
+ log_level=passive,
2340
+ log_level_replica=warning,
2341
+ log_on_each_node=True,
2342
+ logging_dir=output/firefly-qwen-7b-sft-qlora/runs/May23_11-58-07_ts-2f5a9417da5f4de29903e0323581dcaa-launcher,
2343
+ logging_first_step=False,
2344
+ logging_nan_inf_filter=True,
2345
+ logging_steps=100,
2346
+ logging_strategy=steps,
2347
+ lr_scheduler_kwargs={},
2348
+ lr_scheduler_type=constant_with_warmup,
2349
+ max_grad_norm=0.3,
2350
+ max_steps=-1,
2351
+ metric_for_best_model=None,
2352
+ mp_parameters=,
2353
+ neftune_noise_alpha=None,
2354
+ no_cuda=False,
2355
+ num_train_epochs=1,
2356
+ optim=paged_adamw_32bit,
2357
+ optim_args=None,
2358
+ output_dir=output/firefly-qwen-7b-sft-qlora,
2359
+ overwrite_output_dir=False,
2360
+ past_index=-1,
2361
+ per_device_eval_batch_size=8,
2362
+ per_device_train_batch_size=1,
2363
+ prediction_loss_only=False,
2364
+ push_to_hub=False,
2365
+ push_to_hub_model_id=None,
2366
+ push_to_hub_organization=None,
2367
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
2368
+ ray_scope=last,
2369
+ remove_unused_columns=False,
2370
+ report_to=['tensorboard'],
2371
+ resume_from_checkpoint=None,
2372
+ run_name=output/firefly-qwen-7b-sft-qlora,
2373
+ save_on_each_node=False,
2374
+ save_only_model=False,
2375
+ save_safetensors=True,
2376
+ save_steps=100,
2377
+ save_strategy=steps,
2378
+ save_total_limit=1,
2379
+ seed=42,
2380
+ skip_memory_metrics=True,
2381
+ split_batches=None,
2382
+ tf32=None,
2383
+ torch_compile=False,
2384
+ torch_compile_backend=None,
2385
+ torch_compile_mode=None,
2386
+ torchdynamo=None,
2387
+ tpu_metrics_debug=False,
2388
+ tpu_num_cores=None,
2389
+ use_cpu=False,
2390
+ use_ipex=False,
2391
+ use_legacy_prediction_loop=False,
2392
+ use_mps_device=False,
2393
+ warmup_ratio=0.0,
2394
+ warmup_steps=100,
2395
+ weight_decay=0,
2396
+ )
2397
+ 2024-05-23 11:58:07.403 | INFO | __main__:init_components:333 - Initializing components...
2398
+ 2024-05-23 11:58:07.884 | INFO | __main__:load_tokenizer:211 - vocab_size of tokenizer: 151851
2399
+ 2024-05-23 11:58:07.884 | INFO | __main__:load_model:220 - Loading model from base model: Qwen/Qwen-7B-Chat
2400
+ 2024-05-23 11:58:07.885 | INFO | __main__:load_model:221 - Train model with qlora
2401
+ 2024-05-23 11:58:35.827 | INFO | __main__:find_all_linear_names:85 - LoRA target module names: ['c_attn', 'c_proj', 'w1', 'w2']
2402
+ 2024-05-23 11:58:40.220 | INFO | __main__:load_model:283 - memory footprint of model: 8.189956784248352 GB
2403
+ 2024-05-23 11:58:40.228 | INFO | __main__:load_model:295 - Total model params: 4626.45M
2404
+ 2024-05-23 11:58:40.228 | INFO | __main__:init_components:349 - Train model with sft task
2405
+ 2024-05-23 11:58:40.228 | INFO | __main__:load_sft_dataset:315 - Loading data with UnifiedSFTDataset
2406
+ 2024-05-23 11:58:40.228 | INFO | component.dataset:__init__:19 - Loading data: ./data/dummy_data.jsonl
2407
+ 2024-05-23 11:58:40.232 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
2408
+ 2024-05-23 11:58:40.232 | INFO | component.dataset:__init__:23 - There are 33 data in dataset
2409
+ 2024-05-23 11:58:40.276 | INFO | __main__:main:387 - *** starting training ***
train_args.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_dir": "output/firefly-qwen-7b-sft-qlora",
3
+ "model_name_or_path": "Qwen/Qwen-7B-Chat",
4
+ "train_file": "./data/dummy_data.jsonl",
5
+ "template_name": "qwen",
6
+ "num_train_epochs": 1,
7
+ "per_device_train_batch_size": 1,
8
+ "gradient_accumulation_steps": 16,
9
+ "learning_rate": 0.0002,
10
+ "max_seq_length": 1024,
11
+ "logging_steps": 100,
12
+ "save_steps": 100,
13
+ "save_total_limit": 1,
14
+ "lr_scheduler_type": "constant_with_warmup",
15
+ "warmup_steps": 100,
16
+ "lora_rank": 64,
17
+ "lora_alpha": 16,
18
+ "lora_dropout": 0.05,
19
+ "gradient_checkpointing": true,
20
+ "disable_tqdm": false,
21
+ "optim": "paged_adamw_32bit",
22
+ "seed": 42,
23
+ "fp16": true,
24
+ "report_to": "tensorboard",
25
+ "dataloader_num_workers": 0,
26
+ "save_strategy": "steps",
27
+ "weight_decay": 0,
28
+ "max_grad_norm": 0.3,
29
+ "remove_unused_columns": false
30
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.97,
3
+ "train_loss": 0.806224524974823,
4
+ "train_runtime": 27.1159,
5
+ "train_samples_per_second": 1.217,
6
+ "train_steps_per_second": 0.074
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9696969696969697,
5
+ "eval_steps": 500,
6
+ "global_step": 2,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.97,
13
+ "step": 2,
14
+ "total_flos": 1423859773341696.0,
15
+ "train_loss": 0.806224524974823,
16
+ "train_runtime": 27.1159,
17
+ "train_samples_per_second": 1.217,
18
+ "train_steps_per_second": 0.074
19
+ }
20
+ ],
21
+ "logging_steps": 100,
22
+ "max_steps": 2,
23
+ "num_input_tokens_seen": 0,
24
+ "num_train_epochs": 1,
25
+ "save_steps": 100,
26
+ "total_flos": 1423859773341696.0,
27
+ "train_batch_size": 1,
28
+ "trial_name": null,
29
+ "trial_params": null
30
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0179168c7b29a8565c8721548394850acb0edeb60f5393fc89374150bbc77757
3
+ size 4539