Instructions to use 2DTi/tucano2-0.5b-instruct-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 2DTi/tucano2-0.5b-instruct-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 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf 2DTi/tucano2-0.5b-instruct-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 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf 2DTi/tucano2-0.5b-instruct-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 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
Use Docker
docker model run hf.co/2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use 2DTi/tucano2-0.5b-instruct-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "2DTi/tucano2-0.5b-instruct-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "2DTi/tucano2-0.5b-instruct-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
- Ollama
How to use 2DTi/tucano2-0.5b-instruct-gguf with Ollama:
ollama run hf.co/2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use 2DTi/tucano2-0.5b-instruct-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use 2DTi/tucano2-0.5b-instruct-gguf with Docker Model Runner:
docker model run hf.co/2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
- Lemonade
How to use 2DTi/tucano2-0.5b-instruct-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
Run and chat with the model
lemonade run user.tucano2-0.5b-instruct-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use 2DTi/tucano2-0.5b-instruct-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use 2DTi/tucano2-0.5b-instruct-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "2DTi/tucano2-0.5b-instruct-gguf:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Tucano2-qwen-0.5B-Instruct — GGUF Q4_K_M
Versão GGUF (quantização Q4_K_M, ~306 MB) do Polygl0t/Tucano2-qwen-0.5B-Instruct, modelo de linguagem para português do Brasil (arquitetura Qwen3, ~0,5 B parâmetros, contexto de 4.096 tokens), publicada pela 2D TI para uso no navegador com wllama / llama.cpp (assistente Vigilius do Painel do Cliente).
Origem e créditos
- Modelo original: Tucano2-qwen-0.5B-Instruct, da iniciativa Polygl0t — Apache-2.0.
- Base do original: Polygl0t/Tucano2-qwen-0.5B-Base, pré-treinado continuamente a partir de Qwen/Qwen3-0.6B-Base (Apache-2.0), com os corpora GigaVerbo v2 (Apache-2.0).
- Revisão do original convertida:
59ea15044b1f6f94f2fce5776ecd63b155f2c4c2.
Modificações feitas pela 2D TI (Apache-2.0, §4.b)
Os pesos não foram retreinados nem ajustados. Mudanças:
- Conversão de safetensors para GGUF (f16) com o conversor oficial do llama.cpp (commit
0a1ef30). O Tucano2 usa tokenizador próprio para português no estilo SentencePiece (Metaspace "▁", byte fallback), que o conversor não identifica sozinho; o scriptconvert_tucano2.pygrava o vocabulário como "llama" (SPM) a partir dotokenizer.json, com a pontuação de cada token derivada da ordem das junções (merges) do BPE original e sem espaço inicial automático, sem alterar o código do llama.cpp. A tokenização resultante foi conferida como idêntica à do tokenizador original (inclusive acentos, cedilha e til). - Quantização para Q4_K_M com
llama-quantize(release b11796).
Uso (wllama)
import { Wllama } from "@wllama/wllama";
const wllama = new Wllama({ default: "/caminho/wllama.wasm" });
await wllama.loadModelFromHF({ repo: "2DTi/tucano2-0.5b-instruct-gguf", file: "tucano2-0.5b-instruct-Q4_K_M.gguf" }, { n_ctx: 1536 });
const r = await wllama.createChatCompletion({ messages: [{ role: "user", content: "O que é backup?" }], max_tokens: 110 });
Limitações
Modelo pequeno: pode errar fatos e números. Recomenda-se usá-lo com dados de contexto e validação das respostas, como faz o Vigilius (respostas com dados do cliente vêm de um motor determinístico; o modelo só conversa e explica conceitos).
Licença
Apache License 2.0 — ver LICENSE. Os créditos acima e o aviso de modificação devem ser mantidos em redistribuições.
- Downloads last month
- 268
4-bit
Model tree for 2DTi/tucano2-0.5b-instruct-gguf
Base model
Qwen/Qwen3-0.6B-Base