Update README.md
Browse files
README.md
CHANGED
@@ -116,185 +116,50 @@ model-index:
|
|
116 |
|
117 |
**Ghost 7B Alpha, flying, v0.9.1**
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
### Model Description
|
122 |
-
|
123 |
-
[More Information Needed]
|
124 |
-
|
125 |
-
### Model Sources [optional]
|
126 |
-
|
127 |
-
<!-- Provide the basic links for the model. -->
|
128 |
-
|
129 |
-
- **Repository:** [More Information Needed]
|
130 |
-
- **Paper [optional]:** [More Information Needed]
|
131 |
-
- **Demo [optional]:** [More Information Needed]
|
132 |
-
|
133 |
-
## Uses
|
134 |
-
|
135 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
136 |
-
|
137 |
-
### Direct Use
|
138 |
-
|
139 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
140 |
-
|
141 |
-
[More Information Needed]
|
142 |
-
|
143 |
-
### Downstream Use [optional]
|
144 |
-
|
145 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
146 |
-
|
147 |
-
[More Information Needed]
|
148 |
-
|
149 |
-
### Out-of-Scope Use
|
150 |
-
|
151 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
152 |
-
|
153 |
-
[More Information Needed]
|
154 |
-
|
155 |
-
## Bias, Risks, and Limitations
|
156 |
-
|
157 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
158 |
-
|
159 |
-
[More Information Needed]
|
160 |
-
|
161 |
-
### Recommendations
|
162 |
-
|
163 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
164 |
-
|
165 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
166 |
-
|
167 |
-
## How to Get Started with the Model
|
168 |
-
|
169 |
-
Use the code below to get started with the model.
|
170 |
-
|
171 |
-
[More Information Needed]
|
172 |
-
|
173 |
-
## Training Details
|
174 |
-
|
175 |
-
### Training Data
|
176 |
-
|
177 |
-
<!-- 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. -->
|
178 |
-
|
179 |
-
[More Information Needed]
|
180 |
-
|
181 |
-
### Training Procedure
|
182 |
-
|
183 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
184 |
-
|
185 |
-
#### Preprocessing [optional]
|
186 |
-
|
187 |
-
[More Information Needed]
|
188 |
|
|
|
189 |
|
190 |
-
|
191 |
|
192 |
-
|
193 |
|
194 |
-
|
195 |
|
196 |
-
|
197 |
|
198 |
-
|
199 |
|
200 |
-
|
201 |
|
202 |
-
|
203 |
|
204 |
-
|
205 |
|
206 |
-
|
207 |
|
208 |
-
|
209 |
|
210 |
-
|
211 |
|
212 |
-
|
213 |
-
|
214 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
215 |
-
|
216 |
-
[More Information Needed]
|
217 |
-
|
218 |
-
#### Metrics
|
219 |
-
|
220 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
221 |
-
|
222 |
-
[More Information Needed]
|
223 |
-
|
224 |
-
### Results
|
225 |
-
|
226 |
-
[More Information Needed]
|
227 |
-
|
228 |
-
#### Summary
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
## Model Examination [optional]
|
233 |
-
|
234 |
-
<!-- Relevant interpretability work for the model goes here -->
|
235 |
-
|
236 |
-
[More Information Needed]
|
237 |
-
|
238 |
-
## Environmental Impact
|
239 |
-
|
240 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
241 |
-
|
242 |
-
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).
|
243 |
-
|
244 |
-
- **Hardware Type:** [More Information Needed]
|
245 |
-
- **Hours used:** [More Information Needed]
|
246 |
-
- **Cloud Provider:** [More Information Needed]
|
247 |
-
- **Compute Region:** [More Information Needed]
|
248 |
-
- **Carbon Emitted:** [More Information Needed]
|
249 |
-
|
250 |
-
## Technical Specifications [optional]
|
251 |
-
|
252 |
-
### Model Architecture and Objective
|
253 |
-
|
254 |
-
[More Information Needed]
|
255 |
-
|
256 |
-
### Compute Infrastructure
|
257 |
-
|
258 |
-
[More Information Needed]
|
259 |
-
|
260 |
-
#### Hardware
|
261 |
-
|
262 |
-
[More Information Needed]
|
263 |
-
|
264 |
-
#### Software
|
265 |
-
|
266 |
-
[More Information Needed]
|
267 |
-
|
268 |
-
## Citation [optional]
|
269 |
-
|
270 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
271 |
-
|
272 |
-
**BibTeX:**
|
273 |
-
|
274 |
-
[More Information Needed]
|
275 |
-
|
276 |
-
**APA:**
|
277 |
-
|
278 |
-
[More Information Needed]
|
279 |
-
|
280 |
-
## Glossary [optional]
|
281 |
|
282 |
-
|
283 |
|
284 |
-
[
|
|
|
285 |
|
286 |
-
##
|
287 |
|
288 |
-
[
|
289 |
|
290 |
-
|
291 |
|
292 |
-
|
293 |
|
294 |
-
##
|
295 |
|
296 |
-
[
|
297 |
-
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
298 |
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_lamhieu__ghost-7b-v0.9.1)
|
299 |
|
300 |
| Metric |Value|
|
@@ -307,3 +172,100 @@ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-le
|
|
307 |
|Winogrande (5-shot) |72.53|
|
308 |
|GSM8k (5-shot) |26.91|
|
309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
**Ghost 7B Alpha, flying, v0.9.1**
|
118 |
|
119 |
+
[βΆοΈ Experience it on Colab](https://drive.google.com/file/d/1jVZuQ2QbMxLMJDKjpCRDKQaIxNXNpWI-/view?usp=sharing)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
+
### Come on, create yourself an AI assistant, according to your wishes!
|
122 |
|
123 |
+
In your language, maybe Vietnamese.
|
124 |
|
125 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/_4EmivXdOYjQpBVpIO9WL.png" width="600" align="center" />
|
126 |
|
127 |
+
Or, English.
|
128 |
|
129 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/ctmTOz5V7pHm0FnX8c6BD.png" width="600" align="center" />
|
130 |
|
131 |
+
### Let the assistant become an expert, and more.
|
132 |
|
133 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/N0RJUFFf1t8QRg8AVyxNj.png" width="600" align="center" />
|
134 |
|
135 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/KUXjV2XJK5vNy7genVtfN.png" width="600" align="center" />
|
136 |
|
137 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/xSL8WErn5girbKxUbEOsh.png" width="600" align="center" />
|
138 |
|
139 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/ngX6unqUNnnBGq4R1gYY2.png" width="600" align="center" />
|
140 |
|
141 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/-IXPjLL_QGb_5frOKftUW.png" width="600" align="center" />
|
142 |
|
143 |
+
## π Model Details
|
144 |
|
145 |
+
### Model Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
+
A version to consider comprehension in generating languages other than the original language being initially trained, here is the Vietnamese language. A brief summary of the effectiveness of the **Mistral 7B** model for training with a new language is excellent and low cost.
|
148 |
|
149 |
+
I have started training the [Ghost 7B v0.9.0](https://huggingface.co/lamhieu/ghost-7b-v0.9.0) model again, with a smaller amount of data, it is estimated to be only about 150MB. In that data, about 70% is Vietnamese, the rest is almost English.
|
150 |
+
The approach here uses QLora for training then merges them. Also, I am very thankful to Unsloth for their features.
|
151 |
|
152 |
+
## Uses
|
153 |
|
154 |
+
To make it easier to play around with the model, I created a notebook in [Google Colab](https://drive.google.com/file/d/1jVZuQ2QbMxLMJDKjpCRDKQaIxNXNpWI-/view?usp=sharing) so people can start experimenting.
|
155 |
|
156 |
+
Although the amount of training data is small, it is "great". You don't need to worry too much that it won't be able to meet some of your requirements. Instead, try experimenting with the model of what you want.
|
157 |
|
158 |
+
One more thing, use it like you would **ChatGPT**, I've purposely tweaked it to be able to replace my app (for some tasks, and it does a good job). It's okay with both Vietnamese and English languages. It would be great to hear feedback about the experience, feel free to leave information in the discussion section.
|
159 |
|
160 |
+
## π₯ Evaluation
|
161 |
|
162 |
+
### [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
|
|
163 |
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_lamhieu__ghost-7b-v0.9.1)
|
164 |
|
165 |
| Metric |Value|
|
|
|
172 |
|Winogrande (5-shot) |72.53|
|
173 |
|GSM8k (5-shot) |26.91|
|
174 |
|
175 |
+
### VMLU
|
176 |
+
|
177 |
+
A Vietnamese Multitask Language Understanding Benchmark Suite for Large Language Models.
|
178 |
+
|
179 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/600ae38cc92b79f54efd4556/yuDiym9y_o_tlRVr90pGX.png)
|
180 |
+
|
181 |
+
<details>
|
182 |
+
<summary>Details</summary>
|
183 |
+
|
184 |
+
```json
|
185 |
+
{
|
186 |
+
"humanity": {
|
187 |
+
"administrative_law": 52.22,
|
188 |
+
"business_law": 40.22,
|
189 |
+
"civil_law": 46.11,
|
190 |
+
"criminal_law": 49.08,
|
191 |
+
"economic_law": 39.75,
|
192 |
+
"education_law": 42.17,
|
193 |
+
"elementary_history": 55.37,
|
194 |
+
"high_school_history": 36.67,
|
195 |
+
"high_school_literature": 37.78,
|
196 |
+
"history_of_world_civilization": 46.67,
|
197 |
+
"idealogical_and_moral_cultivation": 50,
|
198 |
+
"introduction_to_laws": 45.24,
|
199 |
+
"vietnamese_language_and_literature": 34.48,
|
200 |
+
"total": 43.3,
|
201 |
+
"revolutionary_policy_of_the_vietnamese_commununist_part": 51.11,
|
202 |
+
"introduction_to_vietnam_culture": 30.56,
|
203 |
+
"logic": 27.01,
|
204 |
+
"middle_school_history": 44.44,
|
205 |
+
"middle_school_literature": 50.57
|
206 |
+
},
|
207 |
+
"stem": {
|
208 |
+
"total": 34.73,
|
209 |
+
"applied_informatics": 50.56,
|
210 |
+
"computer_architecture": 33.89,
|
211 |
+
"computer_network": 43.02,
|
212 |
+
"discrete_mathematics": 31.52,
|
213 |
+
"electrical_engineering": 30.68,
|
214 |
+
"elementary_mathematics": 30,
|
215 |
+
"elementary_science": 58.89,
|
216 |
+
"high_school_biology": 38.33,
|
217 |
+
"high_school_chemistry": 28.89,
|
218 |
+
"high_school_mathematics": 26.35,
|
219 |
+
"high_school_physics": 29.44,
|
220 |
+
"introduction_to_chemistry": 27.37,
|
221 |
+
"introduction_to_physics": 31.79,
|
222 |
+
"introduction_to_programming": 36.31,
|
223 |
+
"metrology_engineer": 31.21,
|
224 |
+
"middle_school_biology": 46.47,
|
225 |
+
"middle_school_chemistry": 30.56,
|
226 |
+
"middle_school_mathematics": 30.56,
|
227 |
+
"middle_school_physics": 30,
|
228 |
+
"operating_system": 40.56,
|
229 |
+
"statistics_and_probability": 22.99
|
230 |
+
},
|
231 |
+
"total": 39.58,
|
232 |
+
"other": {
|
233 |
+
"accountant": 31.55,
|
234 |
+
"civil_servant": 42.11,
|
235 |
+
"clinical_pharmacology": 33.89,
|
236 |
+
"driving_license_certificate": 59.06,
|
237 |
+
"environmental_engineering": 28.07,
|
238 |
+
"internal_basic_medicine": 39.77,
|
239 |
+
"preschool_pedagogy": 46.08,
|
240 |
+
"tax_accountant": 22.41,
|
241 |
+
"tax_civil_servant": 47.95,
|
242 |
+
"total": 38.99
|
243 |
+
},
|
244 |
+
"social_science": {
|
245 |
+
"business_administration": 41.38,
|
246 |
+
"high_school_civil_education": 45,
|
247 |
+
"high_school_geography": 34.57,
|
248 |
+
"ho_chi_minh_ideology": 48.04,
|
249 |
+
"macroeconomics": 31.11,
|
250 |
+
"microeconomics": 37.22,
|
251 |
+
"middle_school_civil_education": 66.29,
|
252 |
+
"middle_school_geography": 48.3,
|
253 |
+
"principles_of_marxism_and_leninism": 30,
|
254 |
+
"sociology": 53.93,
|
255 |
+
"total": 43.58
|
256 |
+
}
|
257 |
+
}
|
258 |
+
```
|
259 |
+
|
260 |
+
</details>
|
261 |
+
|
262 |
+
|
263 |
+
## π More Information
|
264 |
+
|
265 |
+
Model trained with **Unsloth**, many thanks.
|
266 |
+
|
267 |
+
<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/made with unsloth.png" width="200px" align="center" />
|
268 |
+
|
269 |
+
## π¨ Model Card Contact
|
270 |
+
|
271 |
+
**Lam H** ([email protected])
|