Upload folder using huggingface_hub
Browse files- README.md +202 -3
- adapter_config.json +33 -0
- adapter_model.bin +3 -0
- xtuner_config.py +212 -0
README.md
CHANGED
@@ -1,3 +1,202 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
base_model: recogna-nlp/internlm-chatbode-7b
|
4 |
+
---
|
5 |
+
|
6 |
+
# Model Card for Model ID
|
7 |
+
|
8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
## Model Details
|
13 |
+
|
14 |
+
### Model Description
|
15 |
+
|
16 |
+
<!-- Provide a longer summary of what this model is. -->
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
- **Developed by:** [More Information Needed]
|
21 |
+
- **Funded by [optional]:** [More Information Needed]
|
22 |
+
- **Shared by [optional]:** [More Information Needed]
|
23 |
+
- **Model type:** [More Information Needed]
|
24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
25 |
+
- **License:** [More Information Needed]
|
26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
+
|
28 |
+
### Model Sources [optional]
|
29 |
+
|
30 |
+
<!-- Provide the basic links for the model. -->
|
31 |
+
|
32 |
+
- **Repository:** [More Information Needed]
|
33 |
+
- **Paper [optional]:** [More Information Needed]
|
34 |
+
- **Demo [optional]:** [More Information Needed]
|
35 |
+
|
36 |
+
## Uses
|
37 |
+
|
38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
+
|
40 |
+
### Direct Use
|
41 |
+
|
42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
43 |
+
|
44 |
+
[More Information Needed]
|
45 |
+
|
46 |
+
### Downstream Use [optional]
|
47 |
+
|
48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
+
|
50 |
+
[More Information Needed]
|
51 |
+
|
52 |
+
### Out-of-Scope Use
|
53 |
+
|
54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
55 |
+
|
56 |
+
[More Information Needed]
|
57 |
+
|
58 |
+
## Bias, Risks, and Limitations
|
59 |
+
|
60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
61 |
+
|
62 |
+
[More Information Needed]
|
63 |
+
|
64 |
+
### Recommendations
|
65 |
+
|
66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
+
|
68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
+
|
70 |
+
## How to Get Started with the Model
|
71 |
+
|
72 |
+
Use the code below to get started with the model.
|
73 |
+
|
74 |
+
[More Information Needed]
|
75 |
+
|
76 |
+
## Training Details
|
77 |
+
|
78 |
+
### Training Data
|
79 |
+
|
80 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
+
|
82 |
+
[More Information Needed]
|
83 |
+
|
84 |
+
### Training Procedure
|
85 |
+
|
86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
+
|
88 |
+
#### Preprocessing [optional]
|
89 |
+
|
90 |
+
[More Information Needed]
|
91 |
+
|
92 |
+
|
93 |
+
#### Training Hyperparameters
|
94 |
+
|
95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
96 |
+
|
97 |
+
#### Speeds, Sizes, Times [optional]
|
98 |
+
|
99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
+
|
101 |
+
[More Information Needed]
|
102 |
+
|
103 |
+
## Evaluation
|
104 |
+
|
105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
106 |
+
|
107 |
+
### Testing Data, Factors & Metrics
|
108 |
+
|
109 |
+
#### Testing Data
|
110 |
+
|
111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
112 |
+
|
113 |
+
[More Information Needed]
|
114 |
+
|
115 |
+
#### Factors
|
116 |
+
|
117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
118 |
+
|
119 |
+
[More Information Needed]
|
120 |
+
|
121 |
+
#### Metrics
|
122 |
+
|
123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
124 |
+
|
125 |
+
[More Information Needed]
|
126 |
+
|
127 |
+
### Results
|
128 |
+
|
129 |
+
[More Information Needed]
|
130 |
+
|
131 |
+
#### Summary
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
## Model Examination [optional]
|
136 |
+
|
137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
138 |
+
|
139 |
+
[More Information Needed]
|
140 |
+
|
141 |
+
## Environmental Impact
|
142 |
+
|
143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
144 |
+
|
145 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
146 |
+
|
147 |
+
- **Hardware Type:** [More Information Needed]
|
148 |
+
- **Hours used:** [More Information Needed]
|
149 |
+
- **Cloud Provider:** [More Information Needed]
|
150 |
+
- **Compute Region:** [More Information Needed]
|
151 |
+
- **Carbon Emitted:** [More Information Needed]
|
152 |
+
|
153 |
+
## Technical Specifications [optional]
|
154 |
+
|
155 |
+
### Model Architecture and Objective
|
156 |
+
|
157 |
+
[More Information Needed]
|
158 |
+
|
159 |
+
### Compute Infrastructure
|
160 |
+
|
161 |
+
[More Information Needed]
|
162 |
+
|
163 |
+
#### Hardware
|
164 |
+
|
165 |
+
[More Information Needed]
|
166 |
+
|
167 |
+
#### Software
|
168 |
+
|
169 |
+
[More Information Needed]
|
170 |
+
|
171 |
+
## Citation [optional]
|
172 |
+
|
173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
+
|
175 |
+
**BibTeX:**
|
176 |
+
|
177 |
+
[More Information Needed]
|
178 |
+
|
179 |
+
**APA:**
|
180 |
+
|
181 |
+
[More Information Needed]
|
182 |
+
|
183 |
+
## Glossary [optional]
|
184 |
+
|
185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
+
|
187 |
+
[More Information Needed]
|
188 |
+
|
189 |
+
## More Information [optional]
|
190 |
+
|
191 |
+
[More Information Needed]
|
192 |
+
|
193 |
+
## Model Card Authors [optional]
|
194 |
+
|
195 |
+
[More Information Needed]
|
196 |
+
|
197 |
+
## Model Card Contact
|
198 |
+
|
199 |
+
[More Information Needed]
|
200 |
+
### Framework versions
|
201 |
+
|
202 |
+
- PEFT 0.10.0
|
adapter_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "recogna-nlp/internlm-chatbode-7b",
|
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": 128,
|
14 |
+
"lora_dropout": 0.1,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 256,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"w2",
|
24 |
+
"wo",
|
25 |
+
"output",
|
26 |
+
"w1",
|
27 |
+
"wqkv",
|
28 |
+
"w3"
|
29 |
+
],
|
30 |
+
"task_type": "CAUSAL_LM",
|
31 |
+
"use_dora": false,
|
32 |
+
"use_rslora": false
|
33 |
+
}
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aaf41a237c5a0dae7489721c71eb3042c56c51b9452fa148897b67be6f287829
|
3 |
+
size 1257556050
|
xtuner_config.py
ADDED
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
SYSTEM = ''
|
2 |
+
accumulative_counts = 16
|
3 |
+
alpaca_en = dict(
|
4 |
+
dataset=dict(
|
5 |
+
data_files=
|
6 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/datasets--recogna-nlp--adalberto_dataset/snapshots/0b21870f7cec193508fd22d81be533ca240ee8b1/train.json',
|
7 |
+
path='json',
|
8 |
+
type='datasets.load_dataset'),
|
9 |
+
dataset_map_fn='xtuner.dataset.map_fns.adalberto_map_fn',
|
10 |
+
max_length=2048,
|
11 |
+
pack_to_max_length=False,
|
12 |
+
remove_unused_columns=True,
|
13 |
+
shuffle_before_pack=True,
|
14 |
+
template_map_fn=dict(
|
15 |
+
template='xtuner.utils.PROMPT_TEMPLATE.internlm2_chat',
|
16 |
+
type='xtuner.dataset.map_fns.template_map_fn_factory'),
|
17 |
+
tokenizer=dict(
|
18 |
+
padding_side='right',
|
19 |
+
pretrained_model_name_or_path=
|
20 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/models--recogna-nlp--internlm-chatbode-7b/snapshots/b3acf1fa06aa64d49a6f725864316f35dcc885e2',
|
21 |
+
trust_remote_code=True,
|
22 |
+
type='transformers.AutoTokenizer.from_pretrained'),
|
23 |
+
type='xtuner.dataset.process_hf_dataset',
|
24 |
+
use_varlen_attn=False)
|
25 |
+
alpaca_en_path = '/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/datasets--recogna-nlp--adalberto_dataset/snapshots/0b21870f7cec193508fd22d81be533ca240ee8b1/train.json'
|
26 |
+
batch_size = 3
|
27 |
+
betas = (
|
28 |
+
0.9,
|
29 |
+
0.999,
|
30 |
+
)
|
31 |
+
custom_hooks = [
|
32 |
+
dict(
|
33 |
+
tokenizer=dict(
|
34 |
+
padding_side='right',
|
35 |
+
pretrained_model_name_or_path=
|
36 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/models--recogna-nlp--internlm-chatbode-7b/snapshots/b3acf1fa06aa64d49a6f725864316f35dcc885e2',
|
37 |
+
trust_remote_code=True,
|
38 |
+
type='transformers.AutoTokenizer.from_pretrained'),
|
39 |
+
type='xtuner.engine.hooks.DatasetInfoHook'),
|
40 |
+
dict(
|
41 |
+
evaluation_inputs=[
|
42 |
+
'O que é um bode?',
|
43 |
+
'Qual a capital da França?',
|
44 |
+
'Você pode me explicar o Teorema de Pitágoras com um exemplo, por favor?',
|
45 |
+
'Olá, tudo bem? Estou procurando livros de ficção científica para ler, você teria sugestões para mim?',
|
46 |
+
'Resolva a equação de segundo grau x² - x - 30 = 0',
|
47 |
+
'Escreva um código em python para calcular x^y usando divisão e conquista.',
|
48 |
+
],
|
49 |
+
every_n_iters=500,
|
50 |
+
prompt_template='xtuner.utils.PROMPT_TEMPLATE.internlm2_chat',
|
51 |
+
system='',
|
52 |
+
tokenizer=dict(
|
53 |
+
padding_side='right',
|
54 |
+
pretrained_model_name_or_path=
|
55 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/models--recogna-nlp--internlm-chatbode-7b/snapshots/b3acf1fa06aa64d49a6f725864316f35dcc885e2',
|
56 |
+
trust_remote_code=True,
|
57 |
+
type='transformers.AutoTokenizer.from_pretrained'),
|
58 |
+
type='xtuner.engine.hooks.EvaluateChatHook'),
|
59 |
+
]
|
60 |
+
dataloader_num_workers = 0
|
61 |
+
default_hooks = dict(
|
62 |
+
checkpoint=dict(
|
63 |
+
by_epoch=False,
|
64 |
+
interval=500,
|
65 |
+
max_keep_ckpts=2,
|
66 |
+
type='mmengine.hooks.CheckpointHook'),
|
67 |
+
logger=dict(
|
68 |
+
interval=10,
|
69 |
+
log_metric_by_epoch=False,
|
70 |
+
type='mmengine.hooks.LoggerHook'),
|
71 |
+
param_scheduler=dict(type='mmengine.hooks.ParamSchedulerHook'),
|
72 |
+
sampler_seed=dict(type='mmengine.hooks.DistSamplerSeedHook'),
|
73 |
+
timer=dict(type='mmengine.hooks.IterTimerHook'))
|
74 |
+
env_cfg = dict(
|
75 |
+
cudnn_benchmark=False,
|
76 |
+
dist_cfg=dict(backend='nccl'),
|
77 |
+
mp_cfg=dict(mp_start_method='fork', opencv_num_threads=0))
|
78 |
+
evaluation_freq = 500
|
79 |
+
evaluation_inputs = [
|
80 |
+
'O que é um bode?',
|
81 |
+
'Qual a capital da França?',
|
82 |
+
'Você pode me explicar o Teorema de Pitágoras com um exemplo, por favor?',
|
83 |
+
'Olá, tudo bem? Estou procurando livros de ficção científica para ler, você teria sugestões para mim?',
|
84 |
+
'Resolva a equação de segundo grau x² - x - 30 = 0',
|
85 |
+
'Escreva um código em python para calcular x^y usando divisão e conquista.',
|
86 |
+
]
|
87 |
+
launcher = 'none'
|
88 |
+
load_from = None
|
89 |
+
log_level = 'INFO'
|
90 |
+
log_processor = dict(by_epoch=False)
|
91 |
+
lr = 0.0002
|
92 |
+
max_epochs = 1
|
93 |
+
max_length = 2048
|
94 |
+
max_norm = 1
|
95 |
+
model = dict(
|
96 |
+
llm=dict(
|
97 |
+
attn_implementation='eager',
|
98 |
+
pretrained_model_name_or_path=
|
99 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/models--recogna-nlp--internlm-chatbode-7b/snapshots/b3acf1fa06aa64d49a6f725864316f35dcc885e2',
|
100 |
+
quantization_config=dict(
|
101 |
+
bnb_4bit_compute_dtype='torch.float16',
|
102 |
+
bnb_4bit_quant_type='nf4',
|
103 |
+
bnb_4bit_use_double_quant=True,
|
104 |
+
llm_int8_has_fp16_weight=False,
|
105 |
+
llm_int8_threshold=6.0,
|
106 |
+
load_in_4bit=True,
|
107 |
+
load_in_8bit=False,
|
108 |
+
type='transformers.BitsAndBytesConfig'),
|
109 |
+
torch_dtype='torch.float16',
|
110 |
+
trust_remote_code=True,
|
111 |
+
type='transformers.AutoModelForCausalLM.from_pretrained'),
|
112 |
+
lora=dict(
|
113 |
+
bias='none',
|
114 |
+
lora_alpha=128,
|
115 |
+
lora_dropout=0.1,
|
116 |
+
r=256,
|
117 |
+
task_type='CAUSAL_LM',
|
118 |
+
type='peft.LoraConfig'),
|
119 |
+
type='xtuner.model.SupervisedFinetune',
|
120 |
+
use_varlen_attn=False)
|
121 |
+
optim_type = 'torch.optim.AdamW'
|
122 |
+
optim_wrapper = dict(
|
123 |
+
optimizer=dict(
|
124 |
+
betas=(
|
125 |
+
0.9,
|
126 |
+
0.999,
|
127 |
+
),
|
128 |
+
lr=0.0002,
|
129 |
+
type='torch.optim.AdamW',
|
130 |
+
weight_decay=0),
|
131 |
+
type='DeepSpeedOptimWrapper')
|
132 |
+
pack_to_max_length = False
|
133 |
+
param_scheduler = [
|
134 |
+
dict(
|
135 |
+
begin=0,
|
136 |
+
by_epoch=True,
|
137 |
+
convert_to_iter_based=True,
|
138 |
+
end=0.03,
|
139 |
+
start_factor=1e-05,
|
140 |
+
type='mmengine.optim.LinearLR'),
|
141 |
+
dict(
|
142 |
+
begin=0.03,
|
143 |
+
by_epoch=True,
|
144 |
+
convert_to_iter_based=True,
|
145 |
+
end=1,
|
146 |
+
eta_min=0.0,
|
147 |
+
type='mmengine.optim.CosineAnnealingLR'),
|
148 |
+
]
|
149 |
+
pretrained_model_name_or_path = '/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/models--recogna-nlp--internlm-chatbode-7b/snapshots/b3acf1fa06aa64d49a6f725864316f35dcc885e2'
|
150 |
+
prompt_template = 'xtuner.utils.PROMPT_TEMPLATE.internlm2_chat'
|
151 |
+
randomness = dict(deterministic=False, seed=None)
|
152 |
+
resume = False
|
153 |
+
runner_type = 'FlexibleRunner'
|
154 |
+
save_steps = 500
|
155 |
+
save_total_limit = 2
|
156 |
+
strategy = dict(
|
157 |
+
config=dict(
|
158 |
+
bf16=dict(enabled=False),
|
159 |
+
fp16=dict(enabled=True, initial_scale_power=16),
|
160 |
+
gradient_accumulation_steps='auto',
|
161 |
+
gradient_clipping='auto',
|
162 |
+
train_micro_batch_size_per_gpu='auto',
|
163 |
+
zero_allow_untested_optimizer=True,
|
164 |
+
zero_force_ds_cpu_optimizer=False,
|
165 |
+
zero_optimization=dict(overlap_comm=True, stage=2)),
|
166 |
+
exclude_frozen_parameters=True,
|
167 |
+
gradient_accumulation_steps=16,
|
168 |
+
gradient_clipping=1,
|
169 |
+
sequence_parallel_size=1,
|
170 |
+
train_micro_batch_size_per_gpu=3,
|
171 |
+
type='xtuner.engine.DeepSpeedStrategy')
|
172 |
+
tokenizer = dict(
|
173 |
+
padding_side='right',
|
174 |
+
pretrained_model_name_or_path=
|
175 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/models--recogna-nlp--internlm-chatbode-7b/snapshots/b3acf1fa06aa64d49a6f725864316f35dcc885e2',
|
176 |
+
trust_remote_code=True,
|
177 |
+
type='transformers.AutoTokenizer.from_pretrained')
|
178 |
+
train_cfg = dict(max_epochs=1, type='xtuner.engine.runner.TrainLoop')
|
179 |
+
train_dataloader = dict(
|
180 |
+
batch_size=3,
|
181 |
+
collate_fn=dict(
|
182 |
+
type='xtuner.dataset.collate_fns.default_collate_fn',
|
183 |
+
use_varlen_attn=False),
|
184 |
+
dataset=dict(
|
185 |
+
dataset=dict(
|
186 |
+
data_files=
|
187 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/datasets--recogna-nlp--adalberto_dataset/snapshots/0b21870f7cec193508fd22d81be533ca240ee8b1/train.json',
|
188 |
+
path='json',
|
189 |
+
type='datasets.load_dataset'),
|
190 |
+
dataset_map_fn='xtuner.dataset.map_fns.adalberto_map_fn',
|
191 |
+
max_length=2048,
|
192 |
+
pack_to_max_length=False,
|
193 |
+
remove_unused_columns=True,
|
194 |
+
shuffle_before_pack=True,
|
195 |
+
template_map_fn=dict(
|
196 |
+
template='xtuner.utils.PROMPT_TEMPLATE.internlm2_chat',
|
197 |
+
type='xtuner.dataset.map_fns.template_map_fn_factory'),
|
198 |
+
tokenizer=dict(
|
199 |
+
padding_side='right',
|
200 |
+
pretrained_model_name_or_path=
|
201 |
+
'/petrobr/parceirosbr/home/luis.afonso/.cache/huggingface/hub/models--recogna-nlp--internlm-chatbode-7b/snapshots/b3acf1fa06aa64d49a6f725864316f35dcc885e2',
|
202 |
+
trust_remote_code=True,
|
203 |
+
type='transformers.AutoTokenizer.from_pretrained'),
|
204 |
+
type='xtuner.dataset.process_hf_dataset',
|
205 |
+
use_varlen_attn=False),
|
206 |
+
num_workers=0,
|
207 |
+
sampler=dict(shuffle=True, type='mmengine.dataset.DefaultSampler'))
|
208 |
+
use_varlen_attn = False
|
209 |
+
visualizer = None
|
210 |
+
warmup_ratio = 0.03
|
211 |
+
weight_decay = 0
|
212 |
+
work_dir = './work_dirs/internlm2_chat_7b_qlora_adalberto'
|