Text Generation
Transformers
ONNX
Safetensors
PyTorch
Transformers.js
Portuguese
llama
portuguese
pt-pt
ptpt
european-portuguese
portugal
llama-architecture
small-model
lightweight
tiny-llm
50M
52M-params
efficient
low-resource
on-device
edge
pretrained
wikipedia
wikimedia
bpe
byte-level-bpe
tokenizer-32k
chatml
instruction-tuned
sft
supervised-fine-tuning
causal-lm
conversational
chatbot
torch
huggingface
bf16
gqa
swiglu
rope
open-source
mit
model-card
text-generation-inference
Instructions to use brunuu/PequeninaLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use brunuu/PequeninaLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="brunuu/PequeninaLM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("brunuu/PequeninaLM") model = AutoModelForCausalLM.from_pretrained("brunuu/PequeninaLM", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Transformers.js
How to use brunuu/PequeninaLM with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'brunuu/PequeninaLM'); - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use brunuu/PequeninaLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "brunuu/PequeninaLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "brunuu/PequeninaLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/brunuu/PequeninaLM
- SGLang
How to use brunuu/PequeninaLM with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "brunuu/PequeninaLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "brunuu/PequeninaLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "brunuu/PequeninaLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "brunuu/PequeninaLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use brunuu/PequeninaLM with Docker Model Runner:
docker model run hf.co/brunuu/PequeninaLM
|
Download benchmark-p3b3.svg from brunuu/PequeninaLM: direct link, hf CLI and curl.
- Browser
- Download file 8.81 kB
-
https://huggingface.co/brunuu/PequeninaLM/resolve/main/benchmark-p3b3.svg
- Command line
-
hf download hf://brunuu/PequeninaLM/benchmark-p3b3.svg
-
curl -L -o benchmark-p3b3.svg https://huggingface.co/brunuu/PequeninaLM/resolve/main/benchmark-p3b3.svg
8.81 kB
| <svg xmlns="http://www.w3.org/2000/svg" width="720" height="756" viewBox="0 0 720 756" role="img" aria-labelledby="titulo descricao"> | |
| <style> | |
| .fundo { fill: #fcfcfb; stroke: #e1e0d9; stroke-width: 1; } | |
| .titulo { font: 600 18px system-ui, -apple-system, 'Segoe UI', sans-serif; fill: #0b0b0b; } | |
| .seccao { font: 600 14px system-ui, -apple-system, 'Segoe UI', sans-serif; fill: #0b0b0b; } | |
| .subtitulo { font: 400 13px system-ui, -apple-system, 'Segoe UI', sans-serif; fill: #52514e; } | |
| .nome { font: 400 13px system-ui, -apple-system, 'Segoe UI', sans-serif; fill: #52514e; } | |
| .nome.nosso { font-weight: 600; fill: #0b0b0b; } | |
| .valor { font: 400 12px system-ui, -apple-system, 'Segoe UI', sans-serif; fill: #52514e; font-variant-numeric: tabular-nums; } | |
| .valor.nosso { font-weight: 600; fill: #0b0b0b; } | |
| .eixo { font: 400 11px system-ui, -apple-system, 'Segoe UI', sans-serif; fill: #898781; } | |
| .grelha { stroke: #e1e0d9; stroke-width: 1; } | |
| .barra { fill: #c8c7c0; } | |
| .barra.nosso { fill: #2a78d6; } | |
| .ponto { fill: #898781; stroke: #fcfcfb; stroke-width: 2; } | |
| .ponto.nosso { fill: #2a78d6; } | |
| .rotulo { font: 400 12px system-ui, -apple-system, 'Segoe UI', sans-serif; fill: #52514e; } | |
| .rotulo.nosso { font-weight: 600; font-size: 13px; fill: #0b0b0b; } | |
| @media (prefers-color-scheme: dark) { | |
| .fundo { fill: #1a1a19; stroke: #2c2c2a; } | |
| .titulo, .seccao, .nome.nosso, .valor.nosso, .rotulo.nosso { fill: #f0efec; } | |
| .subtitulo, .nome, .valor, .rotulo { fill: #c3c2b7; } | |
| .grelha { stroke: #2c2c2a; } | |
| .barra { fill: #4a4a46; } | |
| .barra.nosso, .ponto.nosso { fill: #3987e5; } | |
| .ponto { stroke: #1a1a19; } | |
| } | |
| </style> | |
| <title id="titulo">P3B3</title> | |
| <desc id="descricao">AMALIA-9B-DPO: 85.6%; PequeninaLM-50M: 77.2%; Gemini-3-Flash: 63.1%; Gemma-4-31B: 52.3%; Qwen3.5-27B: 47.4%; Qwen3.5-9B: 42.0%; OLMo-3-7B: 37.0%; Salamandra-7B: 32.8%; Gervasio-70B: 32.4%; Gemma-4-E4B: 29.3%; Apertus-8B: 26.8%; Gemma 3-12B: 26.5%; Gervasio-8B: 25.7%; Apertus-70B: 25.7%; Llama-3.3-70B: 25.6%; EuroLLM-22B: 25.3%; Llama 3.1-8B: 24.1%; Ministral-3-14B: 23.3%; OLMo-3.1-32B: 22.2%; Qwen 3-8B: 15.7%; Sabiá-4: 7.0%</desc> | |
| <rect class="fundo" x="0.5" y="0.5" width="719" height="755" rx="12"/> | |
| <text class="titulo" x="24" y="34">P3B3</text> | |
| <text class="subtitulo" x="24" y="54">conversas em português · 100% = PT-PT, 0% = PT-BR</text> | |
| <text class="seccao" x="24" y="92">Sem instrução</text> | |
| <text class="subtitulo" x="24" y="111">classificador PtVId, os outros modelos são os valores publicados</text> | |
| <line class="grelha" x1="174.0" y1="124" x2="174.0" y2="716"/> | |
| <text class="eixo" x="174.0" y="734" text-anchor="middle">0%</text> | |
| <line class="grelha" x1="291.5" y1="124" x2="291.5" y2="716"/> | |
| <text class="eixo" x="291.5" y="734" text-anchor="middle">25%</text> | |
| <line class="grelha" x1="409.0" y1="124" x2="409.0" y2="716"/> | |
| <text class="eixo" x="409.0" y="734" text-anchor="middle">50%</text> | |
| <line class="grelha" x1="526.5" y1="124" x2="526.5" y2="716"/> | |
| <text class="eixo" x="526.5" y="734" text-anchor="middle">75%</text> | |
| <line class="grelha" x1="644.0" y1="124" x2="644.0" y2="716"/> | |
| <text class="eixo" x="644.0" y="734" text-anchor="middle">100%</text> | |
| <text class="nome" x="164" y="146.0" text-anchor="end">AMALIA-9B-DPO</text> | |
| <path class="barra" d="M174,134.0 H572.3199999999999 Q576.3199999999999,134.0 576.3199999999999,138.0 V146.0 Q576.3199999999999,150.0 572.3199999999999,150.0 H174 Z"/> | |
| <text class="valor" x="582.3199999999999" y="146.0">85.6%</text> | |
| <text class="nome nosso" x="164" y="174.0" text-anchor="end">PequeninaLM-50M</text> | |
| <path class="barra nosso" d="M174,162.0 H532.652 Q536.652,162.0 536.652,166.0 V174.0 Q536.652,178.0 532.652,178.0 H174 Z"/> | |
| <text class="valor nosso" x="542.652" y="174.0">77.2%</text> | |
| <text class="nome" x="164" y="202.0" text-anchor="end">Gemini-3-Flash</text> | |
| <path class="barra" d="M174,190.0 H466.57 Q470.57,190.0 470.57,194.0 V202.0 Q470.57,206.0 466.57,206.0 H174 Z"/> | |
| <text class="valor" x="476.57" y="202.0">63.1%</text> | |
| <text class="nome" x="164" y="230.0" text-anchor="end">Gemma-4-31B</text> | |
| <path class="barra" d="M174,218.0 H415.81 Q419.81,218.0 419.81,222.0 V230.0 Q419.81,234.0 415.81,234.0 H174 Z"/> | |
| <text class="valor" x="425.81" y="230.0">52.3%</text> | |
| <text class="nome" x="164" y="258.0" text-anchor="end">Qwen3.5-27B</text> | |
| <path class="barra" d="M174,246.0 H392.78 Q396.78,246.0 396.78,250.0 V258.0 Q396.78,262.0 392.78,262.0 H174 Z"/> | |
| <text class="valor" x="402.78" y="258.0">47.4%</text> | |
| <text class="nome" x="164" y="286.0" text-anchor="end">Qwen3.5-9B</text> | |
| <path class="barra" d="M174,274.0 H367.4 Q371.4,274.0 371.4,278.0 V286.0 Q371.4,290.0 367.4,290.0 H174 Z"/> | |
| <text class="valor" x="377.4" y="286.0">42.0%</text> | |
| <text class="nome" x="164" y="314.0" text-anchor="end">OLMo-3-7B</text> | |
| <path class="barra" d="M174,302.0 H343.9 Q347.9,302.0 347.9,306.0 V314.0 Q347.9,318.0 343.9,318.0 H174 Z"/> | |
| <text class="valor" x="353.9" y="314.0">37.0%</text> | |
| <text class="nome" x="164" y="342.0" text-anchor="end">Salamandra-7B</text> | |
| <path class="barra" d="M174,330.0 H324.15999999999997 Q328.15999999999997,330.0 328.15999999999997,334.0 V342.0 Q328.15999999999997,346.0 324.15999999999997,346.0 H174 Z"/> | |
| <text class="valor" x="334.15999999999997" y="342.0">32.8%</text> | |
| <text class="nome" x="164" y="370.0" text-anchor="end">Gervasio-70B</text> | |
| <path class="barra" d="M174,358.0 H322.28 Q326.28,358.0 326.28,362.0 V370.0 Q326.28,374.0 322.28,374.0 H174 Z"/> | |
| <text class="valor" x="332.28" y="370.0">32.4%</text> | |
| <text class="nome" x="164" y="398.0" text-anchor="end">Gemma-4-E4B</text> | |
| <path class="barra" d="M174,386.0 H307.71 Q311.71,386.0 311.71,390.0 V398.0 Q311.71,402.0 307.71,402.0 H174 Z"/> | |
| <text class="valor" x="317.71" y="398.0">29.3%</text> | |
| <text class="nome" x="164" y="426.0" text-anchor="end">Apertus-8B</text> | |
| <path class="barra" d="M174,414.0 H295.96000000000004 Q299.96000000000004,414.0 299.96000000000004,418.0 V426.0 Q299.96000000000004,430.0 295.96000000000004,430.0 H174 Z"/> | |
| <text class="valor" x="305.96000000000004" y="426.0">26.8%</text> | |
| <text class="nome" x="164" y="454.0" text-anchor="end">Gemma 3-12B</text> | |
| <path class="barra" d="M174,442.0 H294.55 Q298.55,442.0 298.55,446.0 V454.0 Q298.55,458.0 294.55,458.0 H174 Z"/> | |
| <text class="valor" x="304.55" y="454.0">26.5%</text> | |
| <text class="nome" x="164" y="482.0" text-anchor="end">Gervasio-8B</text> | |
| <path class="barra" d="M174,470.0 H290.79 Q294.79,470.0 294.79,474.0 V482.0 Q294.79,486.0 290.79,486.0 H174 Z"/> | |
| <text class="valor" x="300.79" y="482.0">25.7%</text> | |
| <text class="nome" x="164" y="510.0" text-anchor="end">Apertus-70B</text> | |
| <path class="barra" d="M174,498.0 H290.79 Q294.79,498.0 294.79,502.0 V510.0 Q294.79,514.0 290.79,514.0 H174 Z"/> | |
| <text class="valor" x="300.79" y="510.0">25.7%</text> | |
| <text class="nome" x="164" y="538.0" text-anchor="end">Llama-3.3-70B</text> | |
| <path class="barra" d="M174,526.0 H290.32 Q294.32,526.0 294.32,530.0 V538.0 Q294.32,542.0 290.32,542.0 H174 Z"/> | |
| <text class="valor" x="300.32" y="538.0">25.6%</text> | |
| <text class="nome" x="164" y="566.0" text-anchor="end">EuroLLM-22B</text> | |
| <path class="barra" d="M174,554.0 H288.90999999999997 Q292.90999999999997,554.0 292.90999999999997,558.0 V566.0 Q292.90999999999997,570.0 288.90999999999997,570.0 H174 Z"/> | |
| <text class="valor" x="298.90999999999997" y="566.0">25.3%</text> | |
| <text class="nome" x="164" y="594.0" text-anchor="end">Llama 3.1-8B</text> | |
| <path class="barra" d="M174,582.0 H283.27 Q287.27,582.0 287.27,586.0 V594.0 Q287.27,598.0 283.27,598.0 H174 Z"/> | |
| <text class="valor" x="293.27" y="594.0">24.1%</text> | |
| <text class="nome" x="164" y="622.0" text-anchor="end">Ministral-3-14B</text> | |
| <path class="barra" d="M174,610.0 H279.51 Q283.51,610.0 283.51,614.0 V622.0 Q283.51,626.0 279.51,626.0 H174 Z"/> | |
| <text class="valor" x="289.51" y="622.0">23.3%</text> | |
| <text class="nome" x="164" y="650.0" text-anchor="end">OLMo-3.1-32B</text> | |
| <path class="barra" d="M174,638.0 H274.34000000000003 Q278.34000000000003,638.0 278.34000000000003,642.0 V650.0 Q278.34000000000003,654.0 274.34000000000003,654.0 H174 Z"/> | |
| <text class="valor" x="284.34000000000003" y="650.0">22.2%</text> | |
| <text class="nome" x="164" y="678.0" text-anchor="end">Qwen 3-8B</text> | |
| <path class="barra" d="M174,666.0 H243.79000000000002 Q247.79000000000002,666.0 247.79000000000002,670.0 V678.0 Q247.79000000000002,682.0 243.79000000000002,682.0 H174 Z"/> | |
| <text class="valor" x="253.79000000000002" y="678.0">15.7%</text> | |
| <text class="nome" x="164" y="706.0" text-anchor="end">Sabiá-4</text> | |
| <path class="barra" d="M174,694.0 H202.9 Q206.9,694.0 206.9,698.0 V706.0 Q206.9,710.0 202.9,710.0 H174 Z"/> | |
| <text class="valor" x="212.9" y="706.0">7.0%</text> | |
| </svg> |