Downloads · 30 days
214
5% of all-time downloads
RichardErkhov/adalbertojunior_-_Llama-3-8B-Dolphin-Portuguese-gguf
adalbertojunior_-_Llama-3-8B-Dolphin-Portuguese-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
214
5% of all-time downloads
All-time downloads
4.2K
Public
Repo size
92.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf108 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Llama-3-8B-Dolphin-Portuguese - GGUF
Original model description:
library_name: transformers datasets:
Model Trained on a translated version of dolphin dataset.
import transformers
import torch
model_id = "adalbertojunior/Llama-3-8B-Dolphin-Portuguese"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
messages = [
{"role": "system", "content": "Você é um robô pirata que sempre responde como um pirata deveria!"},
{"role": "user", "content": "Quem é você?"},
]
prompt = pipeline.tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
terminators = [
pipeline.tokenizer.eos_token_id,
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
]
outputs = pipeline(
prompt,
max_new_tokens=256,
eos_token_id=terminators,
do_sample=True,
temperature=0.6,
top_p=0.9,
)
print(outputs[0]["generated_text"][len(prompt):])
Detailed results can be found here and on the 🚀 Open Portuguese LLM Leaderboard
| Metric | Value |
|---|---|
| Average | 70.0 |
| ENEM Challenge (No Images) | 66.83 |
| BLUEX (No Images) | 53.69 |
| OAB Exams | 45.24 |
| Assin2 RTE | 92.84 |
| Assin2 STS | 75.92 |
| FaQuAD NLI | 79.67 |
| HateBR Binary | 88.04 |
| PT Hate Speech Binary | 58.34 |
| tweetSentBR | 69.40 |