Instructions to use amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct") model = AutoModelForMultimodalLM.from_pretrained("amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct
- SGLang
How to use amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct 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 "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct" \ --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": "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct", "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 "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct" \ --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": "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct with Docker Model Runner:
docker model run hf.co/amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct
Use Docker
docker model run hf.co/amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-InstructAmadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct
Introduction
Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct is a Brazilian-Portuguese language model (PT-BR-LLM) developed from the base model Qwen2.5-7B-Instruct through fine-tuning, for 2 epochs, with 600k instructions dataset. Read our article here.
Details
- Architecture: a Transformer-based model with RoPE, SwiGLU, RMSNorm, and Attention QKV bias pre-trained via Causal Language Modeling
- Parameters: 7.61B parameters
- Number of Parameters (Non-Embedding): 6.53B
- Number of Layers: 28
- Number of Attention Heads (GQA): 28 for Q and 4 for KV
- Context length: 131,072 tokens
- Number of steps: 78838
- Language: Brazilian Portuguese
Usage
You can use Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct with the latest HuggingFace Transformers library and we advise you to use the latest version of Transformers.
With transformers<4.37.0, you will encounter the following error:
KeyError: 'qwen2'
Below, we have provided a simple example of how to load the model and generate text:
Quickstart
The following code snippet uses pipeline, AutoTokenizer, AutoModelForCausalLM and apply_chat_template to show how to load the tokenizer, the model, and how to generate content.
Using the pipeline:
from transformers import pipeline
messages = [
{"role": "user", "content": "Faça uma planilha nutricional para uma alimentação fitness e mediterrânea com todos os dias da semana"},
]
pipe = pipeline("text-generation", model="amadeusai/AV-FI-Qwen2.5-7B-PT-BR-Instruct")
pipe(messages)
OR
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "amadeusai/AV-FI-Qwen2.5-7B-PT-BR-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Faça uma planilha nutricional para uma alimentação fitness e mediterrânea com todos os dias da semana."
messages = [
{"role": "system", "content": "Você é um assistente útil."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
OR
from transformers import GenerationConfig, TextGenerationPipeline, AutoTokenizer, AutoModelForCausalLM
import torch
# Specify the model and tokenizer
model_id = "amadeusai/AV-FI-Qwen2.5-7B-PT-BR-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
# Specify the generation parameters as you like
generation_config = GenerationConfig(
**{
"do_sample": True,
"max_new_tokens": 512,
"renormalize_logits": True,
"repetition_penalty": 1.2,
"temperature": 0.1,
"top_k": 50,
"top_p": 1.0,
"use_cache": True,
}
)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
generator = TextGenerationPipeline(model=model, task="text-generation", tokenizer=tokenizer, device=device)
# Generate text
prompt = "Faça uma planilha nutricional para uma alimentação fitness e mediterrânea com todos os dias da semana"
completion = generator(prompt, generation_config=generation_config)
print(completion[0]['generated_text'])
Citation
If you find our work helpful, feel free to cite it.
@misc{cruzcastañeda2025amadeusverbotechnicalreportpowerful,
title={Amadeus-Verbo Technical Report: The powerful Qwen2.5 family models trained in Portuguese},
author={William Alberto Cruz-Castañeda and Marcellus Amadeus},
year={2025},
eprint={2506.00019},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2506.00019},
}
- Downloads last month
- 26
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct"# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amadeusai/Amadeus-Verbo-FI-Qwen2.5-7B-PT-BR-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'