aidev08/+phi-3-mini-4k-instruct-qlora-MathInstruct+adapter
Browse files- README.md +36 -52
- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
- runs/Nov02_14-59-03_7b48f43707b1/events.out.tfevents.1730559655.7b48f43707b1.5437.0 +3 -0
- runs/Nov02_15-02-49_7b48f43707b1/events.out.tfevents.1730559776.7b48f43707b1.5437.1 +3 -0
- tokenizer.json +0 -0
- training_args.bin +2 -2
README.md
CHANGED
@@ -1,73 +1,57 @@
|
|
1 |
---
|
2 |
base_model: microsoft/Phi-3-mini-4k-instruct
|
3 |
-
library_name:
|
4 |
-
|
5 |
tags:
|
|
|
6 |
- trl
|
7 |
- sft
|
8 |
-
|
9 |
-
model-index:
|
10 |
-
- name: phi-3-mini-QLoRA
|
11 |
-
results: []
|
12 |
---
|
13 |
|
14 |
-
|
15 |
-
should probably proofread and complete it, then remove this comment. -->
|
16 |
-
|
17 |
-
# phi-3-mini-QLoRA
|
18 |
-
|
19 |
-
This model is a fine-tuned version of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) on an unknown dataset.
|
20 |
-
It achieves the following results on the evaluation set:
|
21 |
-
- Loss: 2.0585
|
22 |
|
23 |
-
|
|
|
24 |
|
25 |
-
|
26 |
|
27 |
-
|
|
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
## Training
|
32 |
|
33 |
-
More information needed
|
34 |
|
35 |
-
## Training procedure
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
40 |
-
- learning_rate: 0.0001
|
41 |
-
- train_batch_size: 8
|
42 |
-
- eval_batch_size: 8
|
43 |
-
- seed: 42
|
44 |
-
- gradient_accumulation_steps: 4
|
45 |
-
- total_train_batch_size: 32
|
46 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
-
- lr_scheduler_type: linear
|
48 |
-
- lr_scheduler_warmup_ratio: 0.1
|
49 |
-
- num_epochs: 3
|
50 |
|
51 |
-
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
54 |
-
|:-------------:|:------:|:----:|:---------------:|
|
55 |
-
| 2.4323 | 0.2878 | 30 | 2.2759 |
|
56 |
-
| 2.206 | 0.5755 | 60 | 2.1256 |
|
57 |
-
| 2.1409 | 0.8633 | 90 | 2.1004 |
|
58 |
-
| 2.0985 | 1.1511 | 120 | 2.0887 |
|
59 |
-
| 2.0991 | 1.4388 | 150 | 2.0801 |
|
60 |
-
| 2.1 | 1.7266 | 180 | 2.0723 |
|
61 |
-
| 2.095 | 2.0144 | 210 | 2.0675 |
|
62 |
-
| 2.073 | 2.3022 | 240 | 2.0628 |
|
63 |
-
| 2.0729 | 2.5899 | 270 | 2.0605 |
|
64 |
-
| 2.0864 | 2.8777 | 300 | 2.0585 |
|
65 |
|
66 |
|
67 |
-
### Framework versions
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
base_model: microsoft/Phi-3-mini-4k-instruct
|
3 |
+
library_name: transformers
|
4 |
+
model_name: phi-3-mini-QLoRA
|
5 |
tags:
|
6 |
+
- generated_from_trainer
|
7 |
- trl
|
8 |
- sft
|
9 |
+
licence: license
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
+
# Model Card for phi-3-mini-QLoRA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
This model is a fine-tuned version of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct).
|
15 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
16 |
|
17 |
+
## Quick start
|
18 |
|
19 |
+
```python
|
20 |
+
from transformers import pipeline
|
21 |
|
22 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
23 |
+
generator = pipeline("text-generation", model="aidev08/phi-3-mini-QLoRA", device="cuda")
|
24 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
25 |
+
print(output["generated_text"])
|
26 |
+
```
|
27 |
|
28 |
+
## Training procedure
|
29 |
|
|
|
30 |
|
|
|
31 |
|
32 |
+
This model was trained with SFT.
|
33 |
|
34 |
+
### Framework versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
- TRL: 0.12.0
|
37 |
+
- Transformers: 4.46.1
|
38 |
+
- Pytorch: 2.5.1
|
39 |
+
- Datasets: 3.1.0
|
40 |
+
- Tokenizers: 0.20.1
|
41 |
|
42 |
+
## Citations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
|
|
|
45 |
|
46 |
+
Cite TRL as:
|
47 |
+
|
48 |
+
```bibtex
|
49 |
+
@misc{vonwerra2022trl,
|
50 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
51 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
|
52 |
+
year = 2020,
|
53 |
+
journal = {GitHub repository},
|
54 |
+
publisher = {GitHub},
|
55 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
56 |
+
}
|
57 |
+
```
|
adapter_config.json
CHANGED
@@ -20,13 +20,13 @@
|
|
20 |
"rank_pattern": {},
|
21 |
"revision": null,
|
22 |
"target_modules": [
|
23 |
-
"o_proj",
|
24 |
-
"gate_proj",
|
25 |
-
"k_proj",
|
26 |
-
"up_proj",
|
27 |
"v_proj",
|
|
|
|
|
28 |
"q_proj",
|
29 |
-
"
|
|
|
|
|
30 |
],
|
31 |
"task_type": "CAUSAL_LM",
|
32 |
"use_dora": false,
|
|
|
20 |
"rank_pattern": {},
|
21 |
"revision": null,
|
22 |
"target_modules": [
|
|
|
|
|
|
|
|
|
23 |
"v_proj",
|
24 |
+
"down_proj",
|
25 |
+
"k_proj",
|
26 |
"q_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"o_proj",
|
29 |
+
"up_proj"
|
30 |
],
|
31 |
"task_type": "CAUSAL_LM",
|
32 |
"use_dora": false,
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 35668592
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b9eb01ff27356e7a496fb1a4bdbdf901f890b48a626b6400ea1463b5e045fb1
|
3 |
size 35668592
|
runs/Nov02_14-59-03_7b48f43707b1/events.out.tfevents.1730559655.7b48f43707b1.5437.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:485156c8d6a11a0442002618e2e87013551ee488cd6863bb3b205dd301d6ee7c
|
3 |
+
size 6197
|
runs/Nov02_15-02-49_7b48f43707b1/events.out.tfevents.1730559776.7b48f43707b1.5437.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5ff33a875a85944a0d49c66df89ad58b28077972c71cd9da8209d25d9b48a1f
|
3 |
+
size 28802
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b985f3da691b40dca1cdcf4928e2b6dde5a2e56f2e864c1fd4413748aa038543
|
3 |
+
size 5496
|