Model reference · open weights

sabia

LLMs maritaca-ai Text gen 1 build Licence not stated 909 dl/mo

sabia is an open-weight language model from maritaca-ai. sabia-7b (BF16) weighs 13.5 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Sabiá-7B is a 6.7B parameter text-generation model developed by Maritaca AI for Portuguese language tasks.
  • It uses the LLaMA-1-7B architecture and tokenizer with a maximum context length of 2048 tokens.
  • The model is licensed for research purposes only and is recommended for few-shot tasks rather than zero-shot instruction following.

Summary of the maritaca-ai/sabia-7b model card, 2026-10-01

What it is

Released bymaritaca-ai
Released2023-11-08
Parameters6.7B
VRAM13.5 GB for the weights

What it runs on

Memory and cards for sabia-7b (BF16)

13.5 GBweights, file size
524 MBcache per 1K tokens
620 MBruntime overhead, at least
2,048 tokenscontext max
CardRequests at onceContext maxMemory
2K each
RTX 3060 12 GB11.6 GB
RTX 4060 Ti 16 GB1all 2K15.4 GB
RTX 3090 24 GB8all 2K23.4 GB
RTX 4090 24 GB8all 2K23.4 GB
RTX 5090 32 GB15all 2K31.0 GB
L40S 48 GB27all 2K44.0 GB
A100 80 GB59all 2K78.2 GB
H100 80 GB56all 2K78.1 GB
RTX PRO 6000 Blackwell 96 GB71all 2K93.8 GB
DGX Spark (GB10) 128 GB unified84all 2K107 GB
H200 141 GB112all 2K138 GB
B200 180 GB147all 2K176 GB
2× RTX 3060 12 GB
tensor parallel
7all 2K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
14all 2K15.4 GB a card
Memory needed at each load
Requests at once2K tokens each
115.2 GB
519.5 GB
822.7 GB
1631.3 GB
3248.5 GB
6482.8 GB

One card, with vLLM's small-card settings.

From the model card

What maritaca-ai says about sabia

Read the model card

Sabiá-7B is Portuguese language model developed by Maritaca AI.

Input: The model accepts only text input.

Output: The Model generates text only.

Model Architecture: Sabiá-7B is an auto-regressive language model that uses the same architecture of LLaMA-1-7B.

Tokenizer: It uses the same tokenizer as LLaMA-1-7B.

Maximum sequence length: 2048 tokens.

Pretraining data: The model was pretrained on 7 billion tokens from the Portuguese subset of ClueWeb22, starting with the weights of LLaMA-1-7B and further trained for an additional 10 billion tokens, approximately 1.4 epochs of the training dataset.

Data Freshness: The pretraining data has a cutoff of mid-2022.

License: The licensing is the same as LLaMA-1's, restricting the model's use to research purposes only.

Paper: For more details, please refer to our paper: Sabiá: Portuguese Large Language Models

Few-shot Example

Given that Sabiá-7B was trained solely on a language modeling objective without fine-tuning for instruction following, it is recommended for few-shot tasks rather than zero-shot tasks, like in the example below.

import torch
from transformers import LlamaTokenizer, LlamaForCausalLM

tokenizer = LlamaTokenizer.from_pretrained("maritaca-ai/sabia-7b")
model = LlamaForCausalLM.from_pretrained(
    "maritaca-ai/sabia-7b",
    device_map="auto",  # Automatically loads the model in the GPU, if there is one. Requires pip install acelerate
    low_cpu_mem_usage=True,
    torch_dtype=torch.bfloat16   # If your GPU does not support bfloat16, change to torch.float16
)

prompt = """Classifique a resenha de filme como "positiva" ou "negativa".

Resenha: Gostei muito do filme, é o melhor do ano!
Classe: positiva

Resenha: O filme deixa muito a desejar.
Classe: negativa

Resenha: Apesar de longo, valeu o ingresso.
Classe:"""

input_ids = tokenizer(prompt, return_tensors="pt")

output = model.generate(
    input_ids["input_ids"].to("cuda"),
    max_length=1024,
    eos_token_id=tokenizer.encode("\n"))  # Stop generation when a "\n" token is dectected

# The output contains the input tokens, so we have to skip them.
output = output[0][len(input_ids["input_ids"][0]):]

print(tokenizer.decode(output, skip_special_tokens=True))

If your GPU does not have enough RAM, try using int8 precision. However, expect some degradation in the model output quality when compared to fp16 or bf16.

model = LlamaForCausalLM.from_pretrained(
    "maritaca-ai/sabia-7b",
    device_map="auto",
    low_cpu_mem_usage=True,
    load_in_8bit=True,  # Requires pip install bitsandbytes
)

Results in Portuguese

Below we show the results on the Poeta benchmark, which consists of 14 Portuguese datasets.

For more information on the Normalized Preferred Metric (NPM), please refer to our paper.

ModelNPM
LLaMA-1-7B33.0
LLaMA-2-7B43.7
Sabiá-7B48.5

Results in English

Below we show the average results on 6 English datasets: PIQA, HellaSwag, WinoGrande, ARC-e, ARC-c, and OpenBookQA.

ModelNPM
LLaMA-1-7B50.1
Sabiá-7B49.0

Citation

Please use the following bibtex to cite our paper:

@InProceedings{10.1007/978-3-031-45392-2_15,
    author="Pires, Ramon
    and Abonizio, Hugo
    and Almeida, Thales Sales
    and Nogueira, Rodrigo",
    editor="Naldi, Murilo C.
    and Bianchi, Reinaldo A. C.",
    title="Sabi{\'a}: Portuguese Large Language Models",
    booktitle="Intelligent Systems",
    year="2023",
    publisher="Springer Nature Switzerland",
    address="Cham",
    pages="226--240",
    isbn="978-3-031-45392-2"
}

Open Portuguese LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Average47.09
ENEM Challenge (No Images)55.07
BLUEX (No Images)47.71
OAB Exams41.41
Assin2 RTE46.68
Assin2 STS1.89
FaQuAD NLI58.34
HateBR Binary61.93
PT Hate Speech Binary64.13
tweetSentBR46.64

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Benchmarks

Reported results

As published on the model card: the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
Text GenerationENEM Challenge (No Images)accuracy55.070
Text GenerationBLUEX (No Images)accuracy47.710
Text GenerationOAB Examsaccuracy41.410
Text GenerationAssin2 RTEf1-macro46.680
Text GenerationAssin2 STSpearson1.890
Text GenerationFaQuAD NLIf1-macro58.340
Text GenerationHateBR Binaryf1-macro61.930
Text GenerationPT Hate Speech Binaryf1-macro64.130
Text GenerationtweetSentBRf1-macro46.640
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms