Model save
Browse files- README.md +36 -53
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- training_args.bin +3 -0
README.md
CHANGED
@@ -1,87 +1,70 @@
|
|
1 |
---
|
2 |
-
language:
|
3 |
-
- pt
|
4 |
license: mit
|
5 |
library_name: peft
|
6 |
tags:
|
|
|
|
|
7 |
- SFT
|
8 |
- WeniGPT
|
|
|
9 |
base_model: HuggingFaceH4/zephyr-7b-beta
|
10 |
model-index:
|
11 |
-
- name:
|
12 |
results: []
|
13 |
---
|
14 |
|
15 |
-
|
|
|
16 |
|
17 |
-
|
18 |
|
|
|
19 |
It achieves the following results on the evaluation set:
|
20 |
-
|
21 |
|
22 |
-
##
|
23 |
-
|
24 |
-
This model has not been trained to avoid specific intructions.
|
25 |
-
|
26 |
-
## Training procedure
|
27 |
|
28 |
-
|
29 |
|
30 |
-
|
31 |
-
---------------------
|
32 |
-
Portuguese:
|
33 |
-
<|system|>
|
34 |
-
Você é um médico tratando um paciente com amnésia. Para responder as perguntas do paciente, você irá ler um texto anteriormente para se contextualizar. Se você trouxer informações desconhecidas, fora do texto lido, poderá deixar o paciente confuso. Se o paciente fizer uma questão sobre informações não presentes no texto, você precisa responder de forma educada que você não tem informação suficiente para responder, pois se tentar responder, pode trazer informações que não ajudarão o paciente recuperar sua memória. Lembre, se não estiver no texto, você precisa responder de forma educada que você não tem informação suficiente para responder. Precisamos ajudar o paciente.
|
35 |
|
36 |
-
|
37 |
-
<|user|>
|
38 |
-
{question}</s>
|
39 |
-
<|assistant|>
|
40 |
-
{chosen_response}</s>
|
41 |
|
|
|
42 |
|
43 |
-
|
44 |
|
45 |
-
|
46 |
|
47 |
### Training hyperparameters
|
48 |
|
49 |
The following hyperparameters were used during training:
|
50 |
- learning_rate: 0.0002
|
51 |
-
-
|
52 |
-
-
|
|
|
|
|
|
|
53 |
- gradient_accumulation_steps: 8
|
54 |
-
- num_gpus: 4
|
55 |
- total_train_batch_size: 64
|
56 |
-
-
|
57 |
-
-
|
58 |
-
-
|
59 |
-
-
|
60 |
-
-
|
|
|
61 |
|
62 |
### Training results
|
63 |
|
|
|
|
|
|
|
|
|
|
|
64 |
### Framework versions
|
65 |
|
66 |
- PEFT 0.10.0
|
67 |
-
-
|
68 |
-
-
|
69 |
-
-
|
70 |
-
-
|
71 |
-
- evaluate==0.4.1
|
72 |
-
- bitsandbytes==0.43
|
73 |
-
- huggingface_hub==0.20.3
|
74 |
-
- seqeval==1.2.2
|
75 |
-
- optimum==1.17.1
|
76 |
-
- auto-gptq==0.7.1
|
77 |
-
- gpustat==1.1.1
|
78 |
-
- deepspeed==0.14.0
|
79 |
-
- wandb==0.16.3
|
80 |
-
- trl==0.8.1
|
81 |
-
- accelerate==0.28.0
|
82 |
-
- coloredlogs==15.0.1
|
83 |
-
- traitlets==5.14.1
|
84 |
-
- autoawq@https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.0/autoawq-0.2.0+cu118-cp310-cp310-linux_x86_64.whl
|
85 |
-
|
86 |
-
### Hardware
|
87 |
-
- Cloud provided: runpod.io
|
|
|
1 |
---
|
|
|
|
|
2 |
license: mit
|
3 |
library_name: peft
|
4 |
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
- SFT
|
8 |
- WeniGPT
|
9 |
+
- generated_from_trainer
|
10 |
base_model: HuggingFaceH4/zephyr-7b-beta
|
11 |
model-index:
|
12 |
+
- name: WeniGPT-QA-Zephyr-7B-3.0.2-SFT
|
13 |
results: []
|
14 |
---
|
15 |
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
|
19 |
+
# WeniGPT-QA-Zephyr-7B-3.0.2-SFT
|
20 |
|
21 |
+
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) on an unknown dataset.
|
22 |
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.2788
|
24 |
|
25 |
+
## Model description
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
More information needed
|
28 |
|
29 |
+
## Intended uses & limitations
|
|
|
|
|
|
|
|
|
30 |
|
31 |
+
More information needed
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
## Training and evaluation data
|
34 |
|
35 |
+
More information needed
|
36 |
|
37 |
+
## Training procedure
|
38 |
|
39 |
### Training hyperparameters
|
40 |
|
41 |
The following hyperparameters were used during training:
|
42 |
- learning_rate: 0.0002
|
43 |
+
- train_batch_size: 2
|
44 |
+
- eval_batch_size: 2
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 4
|
48 |
- gradient_accumulation_steps: 8
|
|
|
49 |
- total_train_batch_size: 64
|
50 |
+
- total_eval_batch_size: 8
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- lr_scheduler_warmup_ratio: 0.03
|
54 |
+
- training_steps: 96
|
55 |
+
- mixed_precision_training: Native AMP
|
56 |
|
57 |
### Training results
|
58 |
|
59 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
60 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
61 |
+
| 1.2981 | 1.52 | 50 | 1.3102 |
|
62 |
+
|
63 |
+
|
64 |
### Framework versions
|
65 |
|
66 |
- PEFT 0.10.0
|
67 |
+
- Transformers 4.39.1
|
68 |
+
- Pytorch 2.1.0+cu118
|
69 |
+
- Datasets 2.18.0
|
70 |
+
- Tokenizers 0.15.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
adapter_config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "HuggingFaceH4/zephyr-7b-beta",
|
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": 32,
|
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": 16,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"v_proj",
|
24 |
+
"q_proj",
|
25 |
+
"o_proj",
|
26 |
+
"k_proj"
|
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:fc1168f56d4685fff89b84d5698cb7527c8eb5d3cf83220b982977ba7e2b4fc8
|
3 |
+
size 1103203256
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:179ca7d16c61b0b2806a526f28b30dcb7ddb3d77f6d67b70a114805fb0343517
|
3 |
+
size 5240
|