Text Generation
Transformers
Safetensors
GGUF
Portuguese
English
qwen2
text-generation-inference
qwen
brazil
brasil
14b
portuguese
conversational
Eval Results (legacy)
Instructions to use botbotrobotics/CabraQwen14b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use botbotrobotics/CabraQwen14b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="botbotrobotics/CabraQwen14b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("botbotrobotics/CabraQwen14b") model = AutoModelForCausalLM.from_pretrained("botbotrobotics/CabraQwen14b") 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
- vLLM
How to use botbotrobotics/CabraQwen14b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "botbotrobotics/CabraQwen14b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "botbotrobotics/CabraQwen14b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/botbotrobotics/CabraQwen14b
- SGLang
How to use botbotrobotics/CabraQwen14b 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 "botbotrobotics/CabraQwen14b" \ --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": "botbotrobotics/CabraQwen14b", "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 "botbotrobotics/CabraQwen14b" \ --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": "botbotrobotics/CabraQwen14b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use botbotrobotics/CabraQwen14b with Docker Model Runner:
docker model run hf.co/botbotrobotics/CabraQwen14b
Fixing some errors of the leaderboard evaluation results in the ModelCard yaml
#2
by leaderboard-pt-pr-bot - opened
README.md
CHANGED
|
@@ -78,6 +78,19 @@ model-index:
|
|
| 78 |
- type: f1_macro
|
| 79 |
value: 91.42
|
| 80 |
name: f1-macro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
- type: pearson
|
| 82 |
value: 80.85
|
| 83 |
name: pearson
|
|
@@ -105,7 +118,7 @@ model-index:
|
|
| 105 |
name: Text Generation
|
| 106 |
dataset:
|
| 107 |
name: HateBR Binary
|
| 108 |
-
type:
|
| 109 |
split: test
|
| 110 |
args:
|
| 111 |
num_few_shot: 25
|
|
@@ -113,6 +126,19 @@ model-index:
|
|
| 113 |
- type: f1_macro
|
| 114 |
value: 79.32
|
| 115 |
name: f1-macro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
- type: f1_macro
|
| 117 |
value: 71.8
|
| 118 |
name: f1-macro
|
|
|
|
| 78 |
- type: f1_macro
|
| 79 |
value: 91.42
|
| 80 |
name: f1-macro
|
| 81 |
+
source:
|
| 82 |
+
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard?query=nicolasdec/CabraQwen14b
|
| 83 |
+
name: Open Portuguese LLM Leaderboard
|
| 84 |
+
- task:
|
| 85 |
+
type: text-generation
|
| 86 |
+
name: Text Generation
|
| 87 |
+
dataset:
|
| 88 |
+
name: Assin2 STS
|
| 89 |
+
type: eduagarcia/portuguese_benchmark
|
| 90 |
+
split: test
|
| 91 |
+
args:
|
| 92 |
+
num_few_shot: 15
|
| 93 |
+
metrics:
|
| 94 |
- type: pearson
|
| 95 |
value: 80.85
|
| 96 |
name: pearson
|
|
|
|
| 118 |
name: Text Generation
|
| 119 |
dataset:
|
| 120 |
name: HateBR Binary
|
| 121 |
+
type: ruanchaves/hatebr
|
| 122 |
split: test
|
| 123 |
args:
|
| 124 |
num_few_shot: 25
|
|
|
|
| 126 |
- type: f1_macro
|
| 127 |
value: 79.32
|
| 128 |
name: f1-macro
|
| 129 |
+
source:
|
| 130 |
+
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard?query=nicolasdec/CabraQwen14b
|
| 131 |
+
name: Open Portuguese LLM Leaderboard
|
| 132 |
+
- task:
|
| 133 |
+
type: text-generation
|
| 134 |
+
name: Text Generation
|
| 135 |
+
dataset:
|
| 136 |
+
name: PT Hate Speech Binary
|
| 137 |
+
type: hate_speech_portuguese
|
| 138 |
+
split: test
|
| 139 |
+
args:
|
| 140 |
+
num_few_shot: 25
|
| 141 |
+
metrics:
|
| 142 |
- type: f1_macro
|
| 143 |
value: 71.8
|
| 144 |
name: f1-macro
|