Instructions to use guicybercode/Aira-2-portuguese-124M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use guicybercode/Aira-2-portuguese-124M-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use guicybercode/Aira-2-portuguese-124M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "guicybercode/Aira-2-portuguese-124M-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guicybercode/Aira-2-portuguese-124M-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
- Ollama
How to use guicybercode/Aira-2-portuguese-124M-GGUF with Ollama:
ollama run hf.co/guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use guicybercode/Aira-2-portuguese-124M-GGUF with Docker Model Runner:
docker model run hf.co/guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
- Lemonade
How to use guicybercode/Aira-2-portuguese-124M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Aira-2-portuguese-124M-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Aira-2-portuguese-124M GGUF
I wanted to run nicholasKluge/Aira-2-portuguese-124M, a Portuguese language model, on an ordinary CPU without Python or a GPU. This repo has the model converted to GGUF (Q4_K_M, Q8_0 and F16) so it runs in llama.cpp and Ollama.
llama-cli -hf guicybercode/Aira-2-portuguese-124M-GGUF:Q4_K_M -p "<|startofinstruction|>Qual é a capital do Brasil?<|endofinstruction|>" -n 48
The line above uses llama.cpp's -hf download (tested 2026-10-22 with a llama.cpp build from source).
All credit for the model goes to the original authors, Nicholas Kluge Corrêa (nicholasKluge). I only converted the format. License: Apache-2.0, same as the original.
Versão quantizada do modelo nicholasKluge/Aira-2-portuguese-124M para uso local; todo o crédito é dos autores originais.
Files
| File | Type | Size |
|---|---|---|
| Aira-2-portuguese-124M-Q4_K_M.gguf | Q4_K_M | 91 MB (91338144 bytes) |
| Aira-2-portuguese-124M-Q8_0.gguf | Q8_0 | 137 MB (136767328 bytes) |
| Aira-2-portuguese-124M-F16.gguf | F16 | 253 MB (252581472 bytes) |
How these were made
llama.cpp (master, built on Linux x86_64 CPU):
python conv_gpt2pre.py Aira-2-portuguese-124M --outtype f16 --outfile Aira-2-portuguese-124M/Aira-2-portuguese-124M-F16.gguf
llama-quantize Aira-2-portuguese-124M-F16.gguf Aira-2-portuguese-124M-Q4_K_M.gguf Q4_K_M
llama-quantize Aira-2-portuguese-124M-F16.gguf Aira-2-portuguese-124M-Q8_0.gguf Q8_0
The stock converter stopped with "BPE pre-tokenizer was not recognized" because the model's added tokens change the tokenizer hash it checks. The model uses the standard GPT-2 tokenizer (GPT2Tokenizer, vocab.json + merges.txt), so conv_gpt2pre.py is a small wrapper that runs the same convert_hf_to_gguf.py with the pre-tokenizer set to gpt-2. It is included in this repo.
Usage
llama-completion -m Aira-2-portuguese-124M-Q4_K_M.gguf -p "<|startofinstruction|>Qual é a capital do Brasil?<|endofinstruction|>" -n 48 --temp 0
Smoke test
Prompt: <|startofinstruction|>Qual é a capital do Brasil?<|endofinstruction|>, 48 tokens, temperature 0, raw completion (no chat template). This only checks that the files load and produce Portuguese text; it is not an evaluation.
Q4_K_M:
Qual é a capital do Brasil?A capital do Brasil é Brasília.
Q8_0:
Qual é a capital do Brasil?A capital do Brasil é Brasília.
No benchmarks were run on these quantized files. See the original model card for the authors' evaluations and intended use.
- Downloads last month
- 283
4-bit
8-bit
16-bit
Model tree for guicybercode/Aira-2-portuguese-124M-GGUF
Base model
pierreguillou/gpt2-small-portuguese
docker model run hf.co/guicybercode/Aira-2-portuguese-124M-GGUF: