Update README.md
Browse files
README.md
CHANGED
@@ -1,41 +1,45 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
# Model Card for Model ID
|
7 |
|
8 |
-
|
9 |
|
|
|
|
|
|
|
10 |
|
11 |
|
12 |
## Model Details
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
-
<!-- Provide a longer summary of what this model is. -->
|
17 |
-
|
18 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
19 |
|
20 |
-
- **Developed by:**
|
21 |
-
- **
|
22 |
-
- **
|
23 |
-
- **
|
24 |
-
- **
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
|
28 |
### Model Sources [optional]
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
- **Repository:** [More Information Needed]
|
33 |
-
- **Paper [optional]:** [More Information Needed]
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
|
36 |
## Uses
|
37 |
|
38 |
-
|
39 |
|
40 |
### Direct Use
|
41 |
|
@@ -77,38 +81,36 @@ Use the code below to get started with the model.
|
|
77 |
|
78 |
### Training Data
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
[More Information Needed]
|
83 |
|
84 |
### Training Procedure
|
85 |
|
86 |
-
|
87 |
|
88 |
#### Preprocessing [optional]
|
89 |
|
90 |
-
[
|
91 |
-
|
92 |
|
93 |
#### Training Hyperparameters
|
94 |
|
95 |
-
|
96 |
|
97 |
#### Speeds, Sizes, Times [optional]
|
98 |
|
99 |
-
|
100 |
|
101 |
[More Information Needed]
|
102 |
|
103 |
## Evaluation
|
104 |
|
105 |
-
|
106 |
|
107 |
### Testing Data, Factors & Metrics
|
108 |
|
109 |
#### Testing Data
|
110 |
|
111 |
-
|
112 |
|
113 |
[More Information Needed]
|
114 |
|
@@ -192,8 +194,8 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
192 |
|
193 |
## Model Card Authors [optional]
|
194 |
|
195 |
-
|
196 |
|
197 |
## Model Card Contact
|
198 |
|
199 |
-
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- phi3
|
5 |
+
- python
|
6 |
+
- dpo
|
7 |
+
- mypo
|
8 |
+
license: mit
|
9 |
+
datasets:
|
10 |
+
- joshuasundance/mypo-4k-rfc
|
11 |
+
language:
|
12 |
+
- en
|
13 |
---
|
14 |
|
15 |
# Model Card for Model ID
|
16 |
|
17 |
+
This is an experimental model made by using [https://huggingface.co/datasets/joshuasundance/mypo-4k-rfc](joshuasundance/mypo-4k-rfc) for DPO training of [https://huggingface.co/edumunozsala/phi3-mini-4k-qlora-python-code-20k](edumunozsala/phi3-mini-4k-qlora-python-code-20k).
|
18 |
|
19 |
+
The goal is to learn about model training and potentially get the base model to reliably produce Python with type hints.
|
20 |
+
|
21 |
+
I chose `edumunozsala/phi3-mini-4k-qlora-python-code-20k` because I was able to train this model in one hour on my laptop.
|
22 |
|
23 |
|
24 |
## Model Details
|
25 |
|
26 |
### Model Description
|
27 |
|
|
|
|
|
28 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
29 |
|
30 |
+
- **Developed by:** Joshua Sundance Bailey
|
31 |
+
- **Model type:** phi 3 qlora DPO
|
32 |
+
- **Language(s) (NLP):** English
|
33 |
+
- **License:** MIT
|
34 |
+
- **Finetuned from model [optional]:** [https://huggingface.co/edumunozsala/phi3-mini-4k-qlora-python-code-20k](edumunozsala/phi3-mini-4k-qlora-python-code-20k)
|
|
|
|
|
35 |
|
36 |
### Model Sources [optional]
|
37 |
|
38 |
+
- **Training Code:** https://gist.github.com/joshuasundance-swca/a94672960733782865932a645587ccdc
|
|
|
|
|
|
|
|
|
39 |
|
40 |
## Uses
|
41 |
|
42 |
+
For evaluation and testing only. Do not expect great results, and do not use this model for anything important. It has not been evaluated in any way after training.
|
43 |
|
44 |
### Direct Use
|
45 |
|
|
|
81 |
|
82 |
### Training Data
|
83 |
|
84 |
+
* Original qlora: [https://huggingface.co/datasets/iamtarun/python_code_instructions_18k_alpaca](iamtarun/python_code_instructions_18k_alpaca)
|
85 |
+
* DPO: [https://huggingface.co/datasets/joshuasundance/mypo-4k-rfc](joshuasundance/mypo-4k-rfc)
|
|
|
86 |
|
87 |
### Training Procedure
|
88 |
|
89 |
+
See [https://gist.github.com/joshuasundance-swca/a94672960733782865932a645587ccdc](training code) using `peft`, `transformers`, and `trl`
|
90 |
|
91 |
#### Preprocessing [optional]
|
92 |
|
93 |
+
See [https://gist.github.com/joshuasundance-swca/a94672960733782865932a645587ccdc](training code) using `peft`, `transformers`, and `trl`
|
|
|
94 |
|
95 |
#### Training Hyperparameters
|
96 |
|
97 |
+
See [https://gist.github.com/joshuasundance-swca/a94672960733782865932a645587ccdc](training code) using `peft`, `transformers`, and `trl`
|
98 |
|
99 |
#### Speeds, Sizes, Times [optional]
|
100 |
|
101 |
+
See [https://huggingface.co/joshuasundance/phi3-mini-4k-qlora-python-code-20k-mypo-4k-rfc/blob/main/trainer_state.json](trainer_state.json) in this repo
|
102 |
|
103 |
[More Information Needed]
|
104 |
|
105 |
## Evaluation
|
106 |
|
107 |
+
See [https://huggingface.co/joshuasundance/phi3-mini-4k-qlora-python-code-20k-mypo-4k-rfc/blob/main/trainer_state.json](trainer_state.json) in this repo
|
108 |
|
109 |
### Testing Data, Factors & Metrics
|
110 |
|
111 |
#### Testing Data
|
112 |
|
113 |
+
20% of DPO dataset (see training code)
|
114 |
|
115 |
[More Information Needed]
|
116 |
|
|
|
194 |
|
195 |
## Model Card Authors [optional]
|
196 |
|
197 |
+
Joshua Sundance Bailey
|
198 |
|
199 |
## Model Card Contact
|
200 |
|
201 |
+
Joshua Sundance Bailey
|