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 logo-pequenina-lm.svg from brunuu/PequeninaLM: direct link, hf CLI and curl.
- Browser
- Download file 9.62 kB
-
https://huggingface.co/brunuu/PequeninaLM/resolve/main/logo-pequenina-lm.svg
- Command line
-
hf download hf://brunuu/PequeninaLM/logo-pequenina-lm.svg
-
curl -L -o logo-pequenina-lm.svg https://huggingface.co/brunuu/PequeninaLM/resolve/main/logo-pequenina-lm.svg
9.62 kB
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 608.7 233.9" width="609" height="234.1"><!-- Mão: Twemoji 1F90F (pinching hand), CC-BY 4.0, https://github.com/jdecked/twemoji --> | |
| <defs><linearGradient id="ltw" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#3C8FD6"></stop><stop offset="1" stop-color="#2FB589"></stop></linearGradient><linearGradient id="wtw" gradientUnits="userSpaceOnUse" x1="0" y1="92" x2="0" y2="6"><stop offset="0" stop-color="#FFDC5D"></stop><stop offset="1" stop-color="#EF9645"></stop></linearGradient></defs><g transform="translate(203.8,6.0) scale(1.15)"><defs><linearGradient id="nettw" gradientUnits="userSpaceOnUse" x1="121.8" y1="0" x2="173.8" y2="0"><stop offset="0" stop-color="#3C8FD6"></stop><stop offset="1" stop-color="#2FB589"></stop></linearGradient></defs><g transform="translate(-1.37,-12.30) scale(3.4155)"><path fill="#FFDC5D" d="M33.29 8.628C33.265 8.62 24.499 6 21.499 5c-1.2-.4-21-7-21 16 0 .637 2 11 4 11h11c8.375 0 5.642-10.68 15.92-12.106 1.739-.241 2.621-1.112 2.466-2.566-.165-1.549-1.975-2.059-3.534-2.059-1.146 0-5.754.233-9.026 1.951-.286-1.809-.826-4.013-.826-6.221 5 1 11.092 2.333 11.209 2.372 1.31.434 2.726-.271 3.162-1.582.438-1.309-.27-2.724-1.58-3.161z"/><path fill="#EF9645" d="M19.207 7.293c-.389-.391-1.023-.392-1.414-.001-.391.39-.392 1.023-.001 1.415.017.017 1.704 1.737 1.704 4.293v7.109c0 .852-.501 1.154-.97 1.154-.496 0-1.025-.332-1.025-1.264v-2c0-3.767-.303-7.77-2.553-8.895-.495-.247-1.095-.046-1.342.447-.247.494-.047 1.095.447 1.342.66.33 1.447 1.831 1.447 7.105v.996s-.004 1.001-.004 3.114c0 .852-.501 1.154-.97 1.154-.496 0-1.025-.332-1.025-1.264v-2c0-3.767-.303-7.77-2.553-8.895-.495-.248-1.095-.046-1.342.447-.247.494-.047 1.095.447 1.342.66.33 1.447 1.831 1.447 7.105v2c0 .021.005.039.005.06-.001.017-.01.032-.01.049 0 .852-.501 1.154-.97 1.154-.496.004-1.025-.328-1.025-1.26 0-3.394 0-7.618-2.553-8.895-.495-.248-1.095-.046-1.342.447-.247.494-.047 1.095.447 1.342C7.5 15.618 7.5 19.613 7.5 22c0 2.143 1.522 3.264 3.025 3.264.722 0 1.445-.263 1.999-.769.56.505 1.281.769 2.001.769 1.236 0 2.473-.769 2.846-2.232.368.151.761.232 1.154.232 1.476 0 2.97-1.083 2.97-3.154V13c0-3.375-2.194-5.613-2.288-5.707z"/></g><path d="M125.8 26.2L147.8 13.2M125.8 26.2L147.8 34.2M125.8 26.2L147.8 55.2M125.8 42.2L147.8 13.2M125.8 42.2L147.8 34.2M125.8 42.2L147.8 55.2M147.8 13.2L169.8 23.2M147.8 13.2L169.8 45.2M147.8 34.2L169.8 23.2M147.8 34.2L169.8 45.2M147.8 55.2L169.8 23.2M147.8 55.2L169.8 45.2" stroke="url(#nettw)" stroke-width="2.2" stroke-linecap="round" opacity="0.7" fill="none"></path><circle cx="125.8" cy="26.2" r="4.5" fill="url(#nettw)"></circle><circle cx="125.8" cy="42.2" r="4.5" fill="url(#nettw)"></circle><circle cx="147.8" cy="13.2" r="5" fill="url(#nettw)"></circle><circle cx="147.8" cy="34.2" r="5" fill="url(#nettw)"></circle><circle cx="147.8" cy="55.2" r="5" fill="url(#nettw)"></circle><circle cx="169.8" cy="23.2" r="4.5" fill="url(#nettw)"></circle><circle cx="169.8" cy="45.2" r="4.5" fill="url(#nettw)"></circle></g><g transform="translate(-10.8,137.9)"><g transform="translate(0,96) scale(1,-1)"><path d="M24.3 23.1Q20.7 23.1 18.7 25.2Q16.8 27.2 16.8 30.8L16.8 84.1Q16.8 87.8 18.8 89.8Q20.8 91.7 24.4 91.7L47.7 91.7Q59.1 91.7 65.2 86.0Q71.3 80.3 71.3 70.1Q71.3 59.9 65.2 54.1Q59.1 48.4 47.7 48.4L31.7 48.4L31.7 30.8Q31.7 27.2 29.8 25.2Q28.0 23.1 24.3 23.1ZM31.7 59.9L45.2 59.9Q51.0 59.9 54.0 62.5Q57.0 65.1 57.0 70.1Q57.0 75.1 54.0 77.6Q51.0 80.1 45.2 80.1L31.7 80.1L31.7 59.9Z" fill="url(#wtw)"></path><path d="M102.3 22.9Q93.9 22.9 87.9 26.0Q81.9 29.0 78.7 34.5Q75.5 40.0 75.5 47.5Q75.5 54.8 78.6 60.3Q81.7 65.9 87.2 69.0Q92.7 72.1 99.7 72.1Q104.8 72.1 108.9 70.4Q113.0 68.7 116.0 65.6Q119.0 62.5 120.5 58.0Q122.1 53.6 122.1 48.1Q122.1 46.3 120.9 45.4Q119.8 44.4 117.6 44.4L87.4 44.4L87.4 51.9L111.6 51.9L110.1 50.6Q110.1 54.5 108.9 57.2Q107.8 59.8 105.6 61.2Q103.4 62.5 100.3 62.5Q96.7 62.5 94.2 60.9Q91.7 59.2 90.4 56.2Q89.0 53.1 89.0 48.8L89.0 48.0Q89.0 40.7 92.5 37.2Q95.9 33.8 102.6 33.8Q104.9 33.8 107.9 34.4Q110.8 34.9 113.4 36.2Q115.6 37.2 117.4 36.9Q119.1 36.6 120.1 35.3Q121.0 34.1 121.2 32.4Q121.3 30.8 120.4 29.2Q119.6 27.6 117.6 26.6Q114.3 24.8 110.2 23.9Q106.1 22.9 102.3 22.9Z" fill="url(#wtw)"></path><path d="M169.1 5.9Q165.6 5.9 163.8 7.7Q161.9 9.6 161.9 13.2L161.9 32.8L163.0 32.8Q161.5 28.4 157.2 25.7Q152.9 22.9 147.4 22.9Q141.2 22.9 136.6 25.9Q131.9 28.9 129.3 34.5Q126.7 40.0 126.7 47.6Q126.7 55.2 129.3 60.7Q131.9 66.1 136.6 69.1Q141.2 72.1 147.4 72.1Q153.0 72.1 157.4 69.3Q161.8 66.4 163.1 61.8L162.0 58.1L162.0 64.6Q162.0 68.2 163.9 70.0Q165.8 71.9 169.2 71.9Q172.7 71.9 174.6 70.0Q176.4 68.2 176.4 64.6L176.4 13.2Q176.4 9.6 174.5 7.7Q172.6 5.9 169.1 5.9ZM151.7 33.8Q154.8 33.8 157.1 35.3Q159.4 36.9 160.8 39.9Q162.1 42.9 162.1 47.6Q162.1 54.6 159.3 57.9Q156.4 61.2 151.7 61.2Q148.6 61.2 146.2 59.8Q143.9 58.4 142.6 55.3Q141.3 52.3 141.3 47.6Q141.3 40.6 144.2 37.2Q147.1 33.8 151.7 33.8Z" fill="url(#wtw)"></path><path d="M203.5 22.9Q197.5 22.9 193.6 25.2Q189.6 27.4 187.8 31.8Q185.9 36.3 185.9 42.9L185.9 64.6Q185.9 68.3 187.8 70.1Q189.6 71.9 193.1 71.9Q196.5 71.9 198.5 70.1Q200.4 68.3 200.4 64.6L200.4 42.5Q200.4 38.3 202.1 36.2Q203.8 34.2 207.6 34.2Q211.7 34.2 214.3 37.1Q217.0 40.0 217.0 44.8L217.0 64.6Q217.0 68.3 218.9 70.1Q220.7 71.9 224.2 71.9Q227.7 71.9 229.6 70.1Q231.5 68.3 231.5 64.6L231.5 30.5Q231.5 23.1 224.5 23.1Q221.0 23.1 219.2 25.1Q217.4 27.0 217.4 30.5L217.4 37.0L218.8 33.2Q216.7 28.3 212.8 25.6Q208.8 22.9 203.5 22.9Z" fill="url(#wtw)"></path><path d="M265.7 22.9Q257.3 22.9 251.3 26.0Q245.3 29.0 242.1 34.5Q238.9 40.0 238.9 47.5Q238.9 54.8 242.0 60.3Q245.1 65.9 250.6 69.0Q256.1 72.1 263.1 72.1Q268.2 72.1 272.3 70.4Q276.4 68.7 279.4 65.6Q282.4 62.5 283.9 58.0Q285.5 53.6 285.5 48.1Q285.5 46.3 284.3 45.4Q283.2 44.4 281.0 44.4L250.8 44.4L250.8 51.9L275.0 51.9L273.5 50.6Q273.5 54.5 272.3 57.2Q271.2 59.8 269.0 61.2Q266.8 62.5 263.7 62.5Q260.1 62.5 257.6 60.9Q255.1 59.2 253.8 56.2Q252.4 53.1 252.4 48.8L252.4 48.0Q252.4 40.7 255.9 37.2Q259.3 33.8 266.0 33.8Q268.3 33.8 271.3 34.4Q274.2 34.9 276.8 36.2Q279.0 37.2 280.8 36.9Q282.5 36.6 283.5 35.3Q284.4 34.1 284.6 32.4Q284.7 30.8 283.8 29.2Q283.0 27.6 281.0 26.6Q277.7 24.8 273.6 23.9Q269.5 22.9 265.7 22.9Z" fill="url(#wtw)"></path><path d="M299.7 23.1Q296.2 23.1 294.3 25.1Q292.4 27.0 292.4 30.5L292.4 64.6Q292.4 68.2 294.3 70.0Q296.2 71.9 299.5 71.9Q303.0 71.9 304.8 70.0Q306.6 68.2 306.6 64.6L306.6 59.1L305.6 62.3Q307.8 67.0 312.1 69.6Q316.5 72.1 322.1 72.1Q327.7 72.1 331.4 69.9Q335.0 67.8 336.9 63.4Q338.7 59.0 338.7 52.3L338.7 30.5Q338.7 27.0 336.8 25.1Q334.9 23.1 331.4 23.1Q327.9 23.1 326.1 25.1Q324.2 27.0 324.2 30.5L324.2 51.6Q324.2 56.5 322.4 58.7Q320.6 60.9 317.0 60.9Q312.4 60.9 309.7 58.0Q306.9 55.1 306.9 50.3L306.9 30.5Q306.9 23.1 299.7 23.1Z" fill="url(#wtw)"></path><path d="M355.3 23.2Q351.8 23.2 349.9 25.3Q348.0 27.4 348.0 31.1L348.0 63.9Q348.0 67.8 349.9 69.8Q351.8 71.9 355.3 71.9Q358.8 71.9 360.7 69.8Q362.5 67.8 362.5 63.9L362.5 31.1Q362.5 27.4 360.7 25.3Q358.9 23.2 355.3 23.2ZM355.3 79.8Q351.3 79.8 349.1 81.6Q347.0 83.5 347.0 87.0Q347.0 90.5 349.1 92.4Q351.3 94.3 355.3 94.3Q359.4 94.3 361.5 92.4Q363.6 90.5 363.6 87.0Q363.6 83.5 361.5 81.6Q359.4 79.8 355.3 79.8Z" fill="url(#wtw)"></path><path d="M379.6 23.1Q376.0 23.1 374.1 25.1Q372.3 27.0 372.3 30.5L372.3 64.6Q372.3 68.2 374.1 70.0Q376.0 71.9 379.4 71.9Q382.8 71.9 384.7 70.0Q386.5 68.2 386.5 64.6L386.5 59.1L385.4 62.3Q387.6 67.0 392.0 69.6Q396.4 72.1 401.9 72.1Q407.6 72.1 411.2 69.9Q414.9 67.8 416.7 63.4Q418.5 59.0 418.5 52.3L418.5 30.5Q418.5 27.0 416.7 25.1Q414.8 23.1 411.2 23.1Q407.8 23.1 405.9 25.1Q404.0 27.0 404.0 30.5L404.0 51.6Q404.0 56.5 402.3 58.7Q400.5 60.9 396.8 60.9Q392.2 60.9 389.5 58.0Q386.8 55.1 386.8 50.3L386.8 30.5Q386.8 23.1 379.6 23.1Z" fill="url(#wtw)"></path><path d="M443.8 22.9Q438.6 22.9 434.5 25.0Q430.4 27.0 428.1 30.4Q425.8 33.9 425.8 38.2Q425.8 43.4 428.5 46.4Q431.2 49.4 437.2 50.7Q443.2 52.0 453.2 52.0L458.3 52.0L458.3 44.5L453.3 44.5Q448.4 44.5 445.4 44.0Q442.4 43.5 441.1 42.2Q439.8 41.0 439.8 38.8Q439.8 36.1 441.7 34.4Q443.5 32.6 447.1 32.6Q449.9 32.6 452.0 33.9Q454.2 35.2 455.4 37.5Q456.7 39.7 456.7 42.6L456.7 53.7Q456.7 57.9 454.8 59.7Q452.8 61.4 448.2 61.4Q445.6 61.4 442.6 60.8Q439.6 60.2 436.0 58.8Q433.8 57.8 432.2 58.3Q430.6 58.8 429.7 60.2Q428.8 61.6 428.8 63.3Q428.8 65.0 429.8 66.6Q430.8 68.2 433.0 68.9Q437.5 70.8 441.5 71.4Q445.5 72.1 448.8 72.1Q456.2 72.1 461.0 69.9Q465.7 67.8 468.1 63.3Q470.5 58.8 470.5 51.8L470.5 30.5Q470.5 27.0 468.8 25.1Q467.1 23.1 463.8 23.1Q460.5 23.1 458.8 25.1Q457.0 27.0 457.0 30.5L457.0 34.1L457.6 33.5Q457.1 30.2 455.2 27.9Q453.3 25.5 450.4 24.2Q447.6 22.9 443.8 22.9Z" fill="url(#wtw)"></path><path d="M497.2 24.0Q493.5 24.0 491.6 26.0Q489.6 28.0 489.6 31.6L489.6 84.3Q489.6 88.0 491.5 90.0Q493.4 91.9 497.1 91.9Q500.6 91.9 502.6 90.0Q504.5 88.0 504.5 84.3L504.5 36.6L530.2 36.6Q533.3 36.6 535.0 34.9Q536.6 33.3 536.6 30.3Q536.6 27.3 535.0 25.6Q533.3 24.0 530.2 24.0L497.2 24.0Z" fill="url(#ltw)"></path><path d="M550.0 23.1Q546.8 23.1 545.0 25.0Q543.3 26.8 543.3 30.0L543.3 85.6Q543.3 88.9 545.2 90.7Q547.1 92.5 550.3 92.5Q553.2 92.5 554.9 91.4Q556.6 90.3 558.0 87.6L580.2 47.1L576.9 47.1L599.1 87.6Q600.5 90.3 602.2 91.4Q603.9 92.5 606.7 92.5Q609.9 92.5 611.7 90.7Q613.5 88.9 613.5 85.6L613.5 30.0Q613.5 26.8 611.8 25.0Q610.0 23.1 606.8 23.1Q603.5 23.1 601.7 25.0Q599.9 26.8 599.9 30.0L599.9 68.9L602.1 68.9L584.2 37.0Q583.1 35.1 581.8 34.2Q580.5 33.3 578.3 33.3Q576.2 33.3 574.9 34.3Q573.5 35.2 572.5 37.0L554.4 69.0L556.7 69.0L556.7 30.0Q556.7 26.8 555.1 25.0Q553.4 23.1 550.0 23.1Z" fill="url(#ltw)"></path></g></g></svg> | |