adalbertojunior commited on
Commit
fc6b802
1 Parent(s): 075fbd7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -187
README.md CHANGED
@@ -168,194 +168,52 @@ language:
168
 
169
 
170
 
171
- ## Model Details
172
 
173
- ### Model Description
174
-
175
- <!-- Provide a longer summary of what this model is. -->
176
-
177
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
178
-
179
- - **Developed by:** [More Information Needed]
180
- - **Funded by [optional]:** [More Information Needed]
181
- - **Shared by [optional]:** [More Information Needed]
182
- - **Model type:** [More Information Needed]
183
- - **Language(s) (NLP):** [More Information Needed]
184
- - **License:** [More Information Needed]
185
- - **Finetuned from model [optional]:** [More Information Needed]
186
-
187
- ### Model Sources [optional]
188
-
189
- <!-- Provide the basic links for the model. -->
190
-
191
- - **Repository:** [More Information Needed]
192
- - **Paper [optional]:** [More Information Needed]
193
- - **Demo [optional]:** [More Information Needed]
194
-
195
- ## Uses
196
-
197
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
198
-
199
- ### Direct Use
200
-
201
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
202
-
203
- [More Information Needed]
204
-
205
- ### Downstream Use [optional]
206
-
207
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
208
-
209
- [More Information Needed]
210
-
211
- ### Out-of-Scope Use
212
-
213
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
214
-
215
- [More Information Needed]
216
-
217
- ## Bias, Risks, and Limitations
218
-
219
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
220
-
221
- [More Information Needed]
222
-
223
- ### Recommendations
224
-
225
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
226
-
227
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
228
-
229
- ## How to Get Started with the Model
230
-
231
- Use the code below to get started with the model.
232
-
233
- [More Information Needed]
234
-
235
- ## Training Details
236
-
237
- ### Training Data
238
-
239
- <!-- 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. -->
240
-
241
- [More Information Needed]
242
-
243
- ### Training Procedure
244
-
245
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
246
-
247
- #### Preprocessing [optional]
248
-
249
- [More Information Needed]
250
-
251
-
252
- #### Training Hyperparameters
253
-
254
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
255
-
256
- #### Speeds, Sizes, Times [optional]
257
-
258
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
259
-
260
- [More Information Needed]
261
-
262
- ## Evaluation
263
-
264
- <!-- This section describes the evaluation protocols and provides the results. -->
265
-
266
- ### Testing Data, Factors & Metrics
267
-
268
- #### Testing Data
269
-
270
- <!-- This should link to a Dataset Card if possible. -->
271
-
272
- [More Information Needed]
273
-
274
- #### Factors
275
-
276
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
277
-
278
- [More Information Needed]
279
-
280
- #### Metrics
281
-
282
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
283
-
284
- [More Information Needed]
285
-
286
- ### Results
287
-
288
- [More Information Needed]
289
-
290
- #### Summary
291
-
292
-
293
-
294
- ## Model Examination [optional]
295
-
296
- <!-- Relevant interpretability work for the model goes here -->
297
-
298
- [More Information Needed]
299
-
300
- ## Environmental Impact
301
-
302
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
303
-
304
- 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).
305
-
306
- - **Hardware Type:** [More Information Needed]
307
- - **Hours used:** [More Information Needed]
308
- - **Cloud Provider:** [More Information Needed]
309
- - **Compute Region:** [More Information Needed]
310
- - **Carbon Emitted:** [More Information Needed]
311
-
312
- ## Technical Specifications [optional]
313
-
314
- ### Model Architecture and Objective
315
-
316
- [More Information Needed]
317
-
318
- ### Compute Infrastructure
319
-
320
- [More Information Needed]
321
-
322
- #### Hardware
323
-
324
- [More Information Needed]
325
-
326
- #### Software
327
-
328
- [More Information Needed]
329
-
330
- ## Citation [optional]
331
-
332
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
333
-
334
- **BibTeX:**
335
-
336
- [More Information Needed]
337
-
338
- **APA:**
339
-
340
- [More Information Needed]
341
-
342
- ## Glossary [optional]
343
-
344
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
345
-
346
- [More Information Needed]
347
-
348
- ## More Information [optional]
349
-
350
- [More Information Needed]
351
-
352
- ## Model Card Authors [optional]
353
-
354
- [More Information Needed]
355
-
356
- ## Model Card Contact
357
-
358
- [More Information Needed]
359
 
360
 
361
  # Open Portuguese LLM Leaderboard Evaluation Results
 
168
 
169
 
170
 
 
171
 
172
+ # Model Card for Llama-3-8B-Dolphin-Portuguese
173
+
174
+ Model Trained on a translated version of dolphin dataset.
175
+
176
+
177
+ ## Usage
178
+ ```python
179
+ import transformers
180
+ import torch
181
+
182
+ model_id = "adalbertojunior/Llama-3-8B-Dolphin-Portuguese-v0.3"
183
+
184
+ pipeline = transformers.pipeline(
185
+ "text-generation",
186
+ model=model_id,
187
+ model_kwargs={"torch_dtype": torch.bfloat16},
188
+ device_map="auto",
189
+ )
190
+
191
+ messages = [
192
+ {"role": "system", "content": "Você é um robô pirata que sempre responde como um pirata deveria!"},
193
+ {"role": "user", "content": "Quem é você?"},
194
+ ]
195
+
196
+ prompt = pipeline.tokenizer.apply_chat_template(
197
+ messages,
198
+ tokenize=False,
199
+ add_generation_prompt=True
200
+ )
201
+
202
+ terminators = [
203
+ pipeline.tokenizer.eos_token_id,
204
+ pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
205
+ ]
206
+
207
+ outputs = pipeline(
208
+ prompt,
209
+ max_new_tokens=256,
210
+ eos_token_id=terminators,
211
+ do_sample=True,
212
+ temperature=0.6,
213
+ top_p=0.9,
214
+ )
215
+ print(outputs[0]["generated_text"][len(prompt):])
216
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
 
218
 
219
  # Open Portuguese LLM Leaderboard Evaluation Results