Text Generation
Transformers
PyTorch
JAX
Safetensors
Portuguese
llama
text-generation-inference
Eval Results (legacy)
Instructions to use TucanoBR/Tucano-1b1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TucanoBR/Tucano-1b1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TucanoBR/Tucano-1b1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TucanoBR/Tucano-1b1") model = AutoModelForCausalLM.from_pretrained("TucanoBR/Tucano-1b1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TucanoBR/Tucano-1b1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TucanoBR/Tucano-1b1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TucanoBR/Tucano-1b1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TucanoBR/Tucano-1b1
- SGLang
How to use TucanoBR/Tucano-1b1 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 "TucanoBR/Tucano-1b1" \ --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": "TucanoBR/Tucano-1b1", "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 "TucanoBR/Tucano-1b1" \ --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": "TucanoBR/Tucano-1b1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TucanoBR/Tucano-1b1 with Docker Model Runner:
docker model run hf.co/TucanoBR/Tucano-1b1
Commit History
-
Update README.md
Verified signaturebf7e4ea
-
Update README.md
Verified signature70af4a2
-
Update generation_config.json
Verified signature654e8e5 -
Update README.md
Verified signature5307ac1 -
Update generation_config.json
Verified signaturef22a481
-
Update tokenizer_config.json
Verified signature4456074
-
Update README.md
Verified signaturea4f62c7
-
Update README.md
Verified signature5fbb9ea
-
Update README.md
Verified signatureeb8c0cb -
Update README.md
Verified signature8706fc9 -
Update README.md
Verified signature5554b3e -
Rename validation-logs-large.parquet to validation-logs-1b1.parquet
Verified signature678679c -
Rename training-logs-large.parquet to training-logs-1b1.parquet
Verified signaturebd7fa45 -
Rename emissions-large.csv to emissions-1b1.csv
Verified signature7ac871d -
Rename EVALS-large.csv to EVALS-1b1.csv
Verified signatureec9bf90
-
Upload README.md with huggingface_hub
Verified signature5d4054f
-
Upload pytorch_model.bin with huggingface_hub
Verified signaturef9fb56c -
Upload flax_model.msgpack with huggingface_hub
Verified signature0dfbbd5 -
Update README.md
Verified signatureb02c821 -
Upload README.md with huggingface_hub
Verified signaturec53a308 -
Delete emissions-large-part2.csv
Verified signatured36d98f -
Delete emissions-large-part1.csv
Verified signatureff1e113 -
Upload LICENSE with huggingface_hub
Verified signature862bd12 -
Upload README.md with huggingface_hub
Verified signature4d57593 -
Upload emissions-large.csv with huggingface_hub
Verified signature0ef49f4
-
Create README.md
Verified signature8de9fe2 -
Upload 2 files
Verified signaturea31387a
-
Upload validation-logs-large.parquet with huggingface_hub
Verified signature389297a -
Upload training-logs-large.parquet with huggingface_hub
Verified signature22831e9 -
Upload EVALS-large.csv with huggingface_hub
Verified signaturef31c62d -
Upload emissions-large-part2.csv with huggingface_hub
Verified signature38309d1 -
Upload emissions-large-part1.csv with huggingface_hub
Verified signature97ada37 -
Upload validation-logs-large.parquet with huggingface_hub
Verified signature94fe67c -
Upload training-logs-large.parquet with huggingface_hub
Verified signature560e98d -
Upload EVALS-large.csv with huggingface_hub
Verified signatured49afa2 -
Upload emissions-large-part2.csv with huggingface_hub
Verified signaturefea3f07 -
Upload emissions-large-part1.csv with huggingface_hub
Verified signature162076d
-
Upload results-multilingual.json with huggingface_hub
Verified signaturede4eab7 -
Upload results-pt.json with huggingface_hub
Verified signatured2a88b8 -
Upload evals.yaml with huggingface_hub
Verified signature6fe2c8b -
Upload tokenizer.json with huggingface_hub
Verified signature451ac0e -
Upload tokenizer_config.json with huggingface_hub
Verified signaturef6ecfd0 -
Upload special_tokens_map.json with huggingface_hub
Verified signaturea39d86f -
Upload model.safetensors with huggingface_hub
Verified signaturebca7a19 -
Upload generation_config.json with huggingface_hub
Verified signature03496e5 -
Upload config.json with huggingface_hub
Verified signature8ee817f -
initial commit
Verified signature3812580