Update README.md
Browse files
README.md
CHANGED
@@ -1,201 +1,109 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
##
|
13 |
-
|
14 |
-
###
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
-
|
21 |
-
|
22 |
-
|
23 |
-
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
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 |
-
|
201 |
-
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
+
extra_gated_heading: Access Gemma on Hugging Face
|
4 |
+
extra_gated_prompt: >-
|
5 |
+
To access Gemma on Hugging Face, you’re required to review and agree to
|
6 |
+
Google’s usage license. To do this, please ensure you’re logged-in to Hugging
|
7 |
+
Face and click below. Requests are processed immediately.
|
8 |
+
extra_gated_button_content: Acknowledge license
|
9 |
+
license: other
|
10 |
+
license_name: gemma-terms-of-use
|
11 |
+
license_link: https://ai.google.dev/gemma/terms
|
12 |
+
base_model:
|
13 |
+
- google/gemma-2b
|
14 |
+
datasets:
|
15 |
+
- Open-Orca/SlimOrca-Dedup
|
16 |
---
|
17 |
|
18 |
+
![image/webp](https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/Tk7qwxqKnpoxJlraiNidv.webp)
|
19 |
+
|
20 |
+
# Gemmalpaca-2B
|
21 |
+
|
22 |
+
This is gemma-2b model supervised fine-tuned on the [Open-Orca/SlimOrca-Dedup](https://huggingface.co/datasets/Open-Orca/SlimOrca-Dedup) dataset. It's not as good as [mlabonne/Gemmalpaca-2B](https://huggingface.co/mlabonne/Gemmalpaca-2B).
|
23 |
+
|
24 |
+
## 🏆 Evaluation
|
25 |
+
|
26 |
+
### Nous
|
27 |
+
|
28 |
+
Gemmalpaca-2B outperforms gemma-2b but underperforms gemma-2b-it on Nous' benchmark suite (evaluation performed using [LLM AutoEval](https://github.com/mlabonne/llm-autoeval)). See the entire leaderboard [here](https://huggingface.co/spaces/mlabonne/Yet_Another_LLM_Leaderboard).
|
29 |
+
|
30 |
+
| Model | Average | AGIEval | GPT4All | TruthfulQA | Bigbench |
|
31 |
+
|---|---:|---:|---:|---:|---:|
|
32 |
+
| [mlabonne/Gemmalpaca-2B](https://huggingface.co/mlabonne/Gemmalpaca-2B) [📄](https://gist.github.com/mlabonne/4b638752fc3227df566f9562064cb864) | 38.39 | 24.48 | 51.22 | 47.02 | 30.85 |
|
33 |
+
| [google/gemma-2b-it](https://huggingface.co/google/gemma-2b-it) [📄](https://gist.github.com/mlabonne/db0761e74175573292acf497da9e5d95) | 36.1 | 23.76 | 43.6 | 47.64 | 29.41 |
|
34 |
+
| [**mlabonne/OrcaGemma-2B**](https://huggingface.co/mlabonne/OrcaGemma-2B) [📄](https://gist.github.com/mlabonne/c8c0914945f9c189cca74120bc834c3e) | **35.63** | **24.44** | **42.49** | **45.84** | **29.76** |
|
35 |
+
| [google/gemma-2b](https://huggingface.co/google/gemma-2b) [📄](https://gist.github.com/mlabonne/7df1f238c515a5f63a750c8792cef59e) | 34.26 | 22.7 | 43.35 | 39.96 | 31.03 |
|
36 |
+
|
37 |
+
## 🧩 Configuration
|
38 |
+
|
39 |
+
It was trained using [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) with the following configuration.
|
40 |
+
|
41 |
+
```yaml
|
42 |
+
base_model: google/gemma-2b
|
43 |
+
model_type: AutoModelForCausalLM
|
44 |
+
tokenizer_type: AutoTokenizer
|
45 |
+
|
46 |
+
load_in_8bit: false
|
47 |
+
load_in_4bit: true
|
48 |
+
strict: false
|
49 |
+
|
50 |
+
datasets:
|
51 |
+
- path: Open-Orca/SlimOrca-Dedup
|
52 |
+
type: sharegpt
|
53 |
+
|
54 |
+
dataset_prepared_path:
|
55 |
+
val_set_size: 0.01
|
56 |
+
output_dir: ./out
|
57 |
+
|
58 |
+
sequence_len: 2048
|
59 |
+
sample_packing: true
|
60 |
+
pad_to_sequence_len: true
|
61 |
+
|
62 |
+
adapter: qlora
|
63 |
+
lora_model_dir:
|
64 |
+
lora_r: 32
|
65 |
+
lora_alpha: 64
|
66 |
+
lora_dropout: 0.05
|
67 |
+
lora_target_linear: true
|
68 |
+
|
69 |
+
wandb_project: axolotl
|
70 |
+
wandb_entity:
|
71 |
+
wandb_watch:
|
72 |
+
wandb_name:
|
73 |
+
wandb_log_model:
|
74 |
+
|
75 |
+
gradient_accumulation_steps: 4
|
76 |
+
micro_batch_size: 2
|
77 |
+
num_epochs: 2
|
78 |
+
optimizer: adamw_bnb_8bit
|
79 |
+
lr_scheduler: cosine
|
80 |
+
learning_rate: 0.0002
|
81 |
+
|
82 |
+
train_on_inputs: false
|
83 |
+
group_by_length: false
|
84 |
+
bf16: auto
|
85 |
+
fp16:
|
86 |
+
tf32: false
|
87 |
+
|
88 |
+
gradient_checkpointing: true
|
89 |
+
early_stopping_patience:
|
90 |
+
resume_from_checkpoint:
|
91 |
+
local_rank:
|
92 |
+
logging_steps: 1
|
93 |
+
xformers_attention:
|
94 |
+
flash_attention:
|
95 |
+
|
96 |
+
warmup_steps: 10
|
97 |
+
evals_per_epoch: 10
|
98 |
+
eval_table_size:
|
99 |
+
eval_table_max_new_tokens: 128
|
100 |
+
saves_per_epoch: 1
|
101 |
+
debug:
|
102 |
+
deepspeed:
|
103 |
+
weight_decay: 0.1
|
104 |
+
fsdp:
|
105 |
+
fsdp_config:
|
106 |
+
special_tokens:
|
107 |
+
```
|
108 |
+
|
109 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|