metadata
license: afl-3.0
datasets:
- ju-resplande/rebel-pt
- paulofinardi/OIG_small_chip2_portuguese_brasil
- Guilherme34/Cabrita-lora-ptbr
- dominguesm/Canarim-Instruct-PTBR-Dataset
language:
- en
- pt
pipeline_tag: text-generation
library_name: transformers
widget:
- text: |
Pergunta: Quantos planetas existem no sistema solar?
Samba-1.1B
Samba is an LLM trained on portuguese language data. The model is based on TinyLlama-1.1B, a 1.1B parameter version of LLaMA-2.
The LLM Samba project aims to provide more LLM options in Portuguese, while also providing less complex models so that users with less computational power can take advantage of the LLMs.
In support of portuguese-speaking countries. 🇦🇴🇧🇷🇨🇻🇬🇼🇬🇶🇲🇿🇵🇹🇸🇹🇹🇱
Model Details
This model was fine-tuned on two datasets (rebel-pt and OIG_small_chip2_portuguese_brasil with portuguese data that total approximately 1 million samples.
Limitations
Keep in mind the limitations of this model. It is a model with 1.1B of trained parameters and may present some glitches or hallucinations.
Future Updates
- Add more data from the Portuguese language.
- Make quantized versions available.
Model Description
- Developed by: Leonardo Souza
- Model type: LLaMA-Based
- License: Academic Free License v3.0
- Finetuned from model: TinyLlama-1.1B
How to Use
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('lrds-code/samba-tiny-llama2-sft')
tokenizer = AutoTokenizer.from_pretrained('lrds-code/samba-tiny-llama2-sft')
text = 'Pergunta: Como desenvolver habilidades de programação em python?'
inputs = tokenizer(text, return_tensors='pt')
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
## Pergunta: Como desenvolver habilidades de programação em python?
## Resposta: Para desenvolver habilidades de programação em Python, você precisa aprender a ler e escrever código.
## Você também precisa entender o que significa cada parte do código e como ela funciona.
## Você também precisa entender como usar bibliotecas e frameworks para criar aplicativos.
## Além disso, você precisa entender como usar o IDE (Integrated Development Environment) para desenvolver e testar seu código.