Text Generation
PEFT
Safetensors
Transformers
Portuguese
lora
cpu
experimental
reproducibility
brazilian-portuguese
Instructions to use guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TucanoBR/Tucano-160m") model = PeftModel.from_pretrained(base_model, "guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto") - Transformers
How to use guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto
- SGLang
How to use guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto 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 "guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto with Docker Model Runner:
docker model run hf.co/guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto
Publish CPU LoRA pilot with held-out float32 evaluation and full reproduction scripts
8ce4eff verified Download NOTICE from guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto/resolve/main/NOTICE
- Command line
-
hf download hf://guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto/NOTICE
-
curl -L -o NOTICE https://huggingface.co/guicybercode/tucano-160m-oasst2-ptbr-lora-cpu-piloto/resolve/main/NOTICE
626 Bytes
| Tucano-160m OASST2 pt-BR LoRA CPU pilot | |
| Copyright 2026 Guilherme Monteiro. | |
| Base model: TucanoBR/Tucano-160m, Apache License 2.0. | |
| Authors: Nicholas Kluge Corrêa, Aniket Sen, Sophia Falk, Shiza Fatimah. | |
| https://huggingface.co/TucanoBR/Tucano-160m | |
| Training and evaluation examples: a filtered, newly split subset of | |
| OpenAssistant/oasst2 by the OpenAssistant community, Apache License 2.0. | |
| https://huggingface.co/datasets/OpenAssistant/oasst2 | |
| No claim of original authorship of those examples is made. | |
| Original code and adapter modifications in this repository are licensed | |
| under the Apache License 2.0. No warranty is given. | |