đ RefuelLLM-2-small (Llama-3-Refueled)
RefuelLLM-2-small, also known as Llama-3-Refueled, is a Llama3-8B base model instruction tuned on a large corpus of datasets, suitable for various NLP tasks such as classification and reading comprehension.
đ Documentation
Model Details
RefuelLLM-2-small, aka Llama-3-Refueled, is a Llama3-8B base model instruction tuned on a corpus of 2750+ datasets, spanning tasks such as classification, reading comprehension, structured attribute extraction and entity resolution. We're excited to open-source the model for the community to build on top of.
Property |
Details |
Model Developers |
Refuel AI |
Input |
Text only |
Output |
Text only |
Architecture |
Llama-3-Refueled is built on top of Llama-3-8B-instruct which is an auto-regressive language model that uses an optimized transformer architecture |
Release Date |
May 8, 2024 |
License |
CC BY-NC 4.0 |
đģ Usage Examples
Basic Usage
>>> import torch
>>> from transformers import AutoModelForCausalLM, AutoTokenizer
>>> model_id = "refuelai/Llama-3-Refueled"
>>> tokenizer = AutoTokenizer.from_pretrained(model_id)
>>> model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
>>> messages = [{"role": "user", "content": "Is this comment toxic or non-toxic: RefuelLLM is the new way to label text data!"}]
>>> inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to("cuda")
>>> outputs = model.generate(inputs, max_new_tokens=20)
>>> print(tokenizer.decode(outputs[0]))
đ§ Technical Details
Training Data
The model was both trained on over 4 Billion tokens, spanning 2750+ NLP tasks. Our training collection consists majorly of:
- Human annotated datasets like Flan, Task Source, and the Aya collection
- Synthetic datasets like OpenOrca, OpenHermes and WizardLM
- Proprietary datasets developed or licensed by Refuel AI
Benchmarks
In this section, we report the results for Refuel models on our benchmark of labeling tasks. For details on the methodology see here.
Provider |
Model |
Overall |
Classification |
Reading Comprehension |
Structure Extraction |
Entity Matching |
Refuel |
RefuelLLM-2 |
83.82% |
84.94% |
76.03% |
88.16% |
92.00% |
OpenAI |
GPT-4-Turbo |
80.88% |
81.77% |
72.08% |
84.79% |
97.20% |
Refuel |
RefuelLLM-2-small (Llama-3-Refueled) |
79.67% |
81.72% |
70.04% |
84.28% |
92.00% |
Anthropic |
Claude-3-Opus |
79.19% |
82.49% |
67.30% |
88.25% |
94.96% |
Meta |
Llama3-70B-Instruct |
78.20% |
79.38% |
66.03% |
85.96% |
94.13% |
Google |
Gemini-1.5-Pro |
74.59% |
73.52% |
60.67% |
84.27% |
98.48% |
Mistral |
Mixtral-8x7B-Instruct |
62.87% |
79.11% |
45.56% |
47.08% |
86.52% |
Anthropic |
Claude-3-Sonnet |
70.99% |
79.91% |
45.44% |
78.10% |
96.34% |
Anthropic |
Claude-3-Haiku |
69.23% |
77.27% |
50.19% |
84.97% |
54.08% |
OpenAI |
GPT-3.5-Turbo |
68.13% |
74.39% |
53.21% |
69.40% |
80.41% |
Meta |
Llama3-8B-Instruct |
62.30% |
68.52% |
49.16% |
65.09% |
63.61% |
â ī¸ Limitations
The Llama-3-Refueled does not have any moderation mechanisms. We're looking forward to engaging with the community
on ways to make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.
đ License
This model is released under the CC BY-NC 4.0 license.