Update README.md
Browse files
README.md
CHANGED
|
@@ -1,19 +1,22 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
|
|
|
|
|
|
|
| 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 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
|
|
@@ -27,7 +30,7 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 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]
|
|
@@ -35,43 +38,46 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
## Training Details
|
| 77 |
|
|
@@ -79,7 +85,7 @@ Use the code below to get started with the model.
|
|
| 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 |
-
[
|
| 83 |
|
| 84 |
### Training Procedure
|
| 85 |
|
|
@@ -92,25 +98,40 @@ Use the code below to get started with the model.
|
|
| 92 |
|
| 93 |
#### Training Hyperparameters
|
| 94 |
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
#### Speeds, Sizes, Times [optional]
|
| 98 |
|
| 99 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
|
| 101 |
-
|
| 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 |
-
[
|
| 114 |
|
| 115 |
#### Factors
|
| 116 |
|
|
@@ -162,7 +183,7 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 162 |
|
| 163 |
#### Hardware
|
| 164 |
|
| 165 |
-
|
| 166 |
|
| 167 |
#### Software
|
| 168 |
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
datasets:
|
| 5 |
+
- hendrycks/ethics
|
| 6 |
---
|
| 7 |
|
| 8 |
# Model Card for Model ID
|
| 9 |
|
| 10 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 11 |
|
| 12 |
+
Fine-tuned version of Phi-3-mini-4k-instruct on a subset of the hendrycks/ethics dataset
|
| 13 |
|
| 14 |
+
<!--
|
| 15 |
## Model Details
|
| 16 |
|
| 17 |
### Model Description
|
| 18 |
|
| 19 |
+
<!-- Provide a longer summary of what this model is.
|
| 20 |
|
| 21 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 22 |
|
|
|
|
| 30 |
|
| 31 |
### Model Sources [optional]
|
| 32 |
|
| 33 |
+
<!-- Provide the basic links for the model.
|
| 34 |
|
| 35 |
- **Repository:** [More Information Needed]
|
| 36 |
- **Paper [optional]:** [More Information Needed]
|
|
|
|
| 38 |
|
| 39 |
## Uses
|
| 40 |
|
| 41 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model.
|
| 42 |
|
| 43 |
### Direct Use
|
| 44 |
|
| 45 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app.
|
| 46 |
|
| 47 |
[More Information Needed]
|
| 48 |
|
| 49 |
### Downstream Use [optional]
|
| 50 |
|
| 51 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app
|
| 52 |
|
| 53 |
[More Information Needed]
|
| 54 |
|
| 55 |
### Out-of-Scope Use
|
| 56 |
|
| 57 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for.
|
| 58 |
|
| 59 |
[More Information Needed]
|
| 60 |
|
| 61 |
## Bias, Risks, and Limitations
|
| 62 |
|
| 63 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations.
|
| 64 |
|
| 65 |
[More Information Needed]
|
| 66 |
|
| 67 |
### Recommendations
|
| 68 |
|
| 69 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations.
|
| 70 |
|
| 71 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. -->
|
| 72 |
|
| 73 |
## How to Get Started with the Model
|
| 74 |
|
| 75 |
Use the code below to get started with the model.
|
| 76 |
|
| 77 |
+
```markdown
|
| 78 |
+
from transformers import AutoModel
|
| 79 |
+
model = AutoModel.from_pretrained("fc91/phi3-mini-instruct-full_ethics-lora")
|
| 80 |
+
```
|
| 81 |
|
| 82 |
## Training Details
|
| 83 |
|
|
|
|
| 85 |
|
| 86 |
<!-- 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. -->
|
| 87 |
|
| 88 |
+
["hendrycks/ethics"](https://huggingface.co/datasets/hendrycks/ethics)
|
| 89 |
|
| 90 |
### Training Procedure
|
| 91 |
|
|
|
|
| 98 |
|
| 99 |
#### Training Hyperparameters
|
| 100 |
|
| 101 |
+
```markdown
|
| 102 |
+
per_device_train_batch_size=16
|
| 103 |
+
per_device_eval_batch_size=32
|
| 104 |
+
gradient_accumulation_steps=2
|
| 105 |
+
gradient_checkpointing=True
|
| 106 |
+
warmup_steps=100
|
| 107 |
+
num_train_epochs=1
|
| 108 |
+
learning_rate=0.00005
|
| 109 |
+
weight_decay=0.01
|
| 110 |
+
optim="adamw_hf"
|
| 111 |
+
fp16=True
|
| 112 |
+
```
|
| 113 |
|
| 114 |
#### Speeds, Sizes, Times [optional]
|
| 115 |
|
| 116 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 117 |
|
| 118 |
+
The overall training took 1 hour 23 minutes.
|
| 119 |
|
| 120 |
## Evaluation
|
| 121 |
|
| 122 |
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 123 |
|
| 124 |
+
Training Loss = 0.181700
|
| 125 |
+
|
| 126 |
+
Validation Loss = 0.119734
|
| 127 |
+
|
| 128 |
### Testing Data, Factors & Metrics
|
| 129 |
|
| 130 |
#### Testing Data
|
| 131 |
|
| 132 |
<!-- This should link to a Dataset Card if possible. -->
|
| 133 |
|
| 134 |
+
["hendrycks/ethics"](https://huggingface.co/datasets/hendrycks/ethics)
|
| 135 |
|
| 136 |
#### Factors
|
| 137 |
|
|
|
|
| 183 |
|
| 184 |
#### Hardware
|
| 185 |
|
| 186 |
+
NVIDIA A100-SXM4-40GB
|
| 187 |
|
| 188 |
#### Software
|
| 189 |
|