Text Generation
Transformers
Safetensors
Portuguese
qwen3
text-generation-inference
conversational
Eval Results (legacy)
Instructions to use Polygl0t/Tucano2-qwen-1.5B-Think with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Polygl0t/Tucano2-qwen-1.5B-Think with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Polygl0t/Tucano2-qwen-1.5B-Think") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Polygl0t/Tucano2-qwen-1.5B-Think") model = AutoModelForCausalLM.from_pretrained("Polygl0t/Tucano2-qwen-1.5B-Think", device_map="auto") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Polygl0t/Tucano2-qwen-1.5B-Think with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Polygl0t/Tucano2-qwen-1.5B-Think" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Polygl0t/Tucano2-qwen-1.5B-Think", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Polygl0t/Tucano2-qwen-1.5B-Think
- SGLang
How to use Polygl0t/Tucano2-qwen-1.5B-Think 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 "Polygl0t/Tucano2-qwen-1.5B-Think" \ --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": "Polygl0t/Tucano2-qwen-1.5B-Think", "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 "Polygl0t/Tucano2-qwen-1.5B-Think" \ --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": "Polygl0t/Tucano2-qwen-1.5B-Think", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Polygl0t/Tucano2-qwen-1.5B-Think with Docker Model Runner:
docker model run hf.co/Polygl0t/Tucano2-qwen-1.5B-Think
Upload ruler.yaml with huggingface_hub
Browse files- ruler.yaml +82 -0
ruler.yaml
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model_name: Tucano2-qwen-1.5B-Think
|
| 2 |
+
results:
|
| 3 |
+
niah_pt_multikey_1_1024: 0.706
|
| 4 |
+
niah_pt_multikey_1_1024_stderr: 0.02039509548493655
|
| 5 |
+
niah_pt_multikey_1_2048: 0.67
|
| 6 |
+
niah_pt_multikey_1_2048_stderr: 0.021049612166134782
|
| 7 |
+
niah_pt_multikey_1_4096: 0.542
|
| 8 |
+
niah_pt_multikey_1_4096_stderr: N/A
|
| 9 |
+
niah_pt_multikey_1_alias: " - niah_pt_multikey_1"
|
| 10 |
+
niah_pt_multikey_2_1024: 0.48
|
| 11 |
+
niah_pt_multikey_2_1024_stderr: 0.022365160424231326
|
| 12 |
+
niah_pt_multikey_2_2048: 0.238
|
| 13 |
+
niah_pt_multikey_2_2048_stderr: 0.019064072958198387
|
| 14 |
+
niah_pt_multikey_2_4096: 0.062
|
| 15 |
+
niah_pt_multikey_2_4096_stderr: N/A
|
| 16 |
+
niah_pt_multikey_2_alias: " - niah_pt_multikey_2"
|
| 17 |
+
niah_pt_multikey_3_1024: 0.486
|
| 18 |
+
niah_pt_multikey_3_1024_stderr: 0.022374298166353144
|
| 19 |
+
niah_pt_multikey_3_2048: 0.31
|
| 20 |
+
niah_pt_multikey_3_2048_stderr: 0.020704041021724684
|
| 21 |
+
niah_pt_multikey_3_4096: 0.184
|
| 22 |
+
niah_pt_multikey_3_4096_stderr: N/A
|
| 23 |
+
niah_pt_multikey_3_alias: " - niah_pt_multikey_3"
|
| 24 |
+
niah_pt_multiquery_1024: 0.531
|
| 25 |
+
niah_pt_multiquery_1024_stderr: 0.013691344193015646
|
| 26 |
+
niah_pt_multiquery_2048: 0.4915
|
| 27 |
+
niah_pt_multiquery_2048_stderr: 0.014053487147395266
|
| 28 |
+
niah_pt_multiquery_4096: 0.4215
|
| 29 |
+
niah_pt_multiquery_4096_stderr: N/A
|
| 30 |
+
niah_pt_multiquery_alias: " - niah_pt_multiquery"
|
| 31 |
+
niah_pt_multivalue_1024: 0.4995
|
| 32 |
+
niah_pt_multivalue_1024_stderr: 0.013476376569794338
|
| 33 |
+
niah_pt_multivalue_2048: 0.519
|
| 34 |
+
niah_pt_multivalue_2048_stderr: 0.013327913059930505
|
| 35 |
+
niah_pt_multivalue_4096: 0.4545
|
| 36 |
+
niah_pt_multivalue_4096_stderr: N/A
|
| 37 |
+
niah_pt_multivalue_alias: " - niah_pt_multivalue"
|
| 38 |
+
niah_pt_single_1_1024: 0.82
|
| 39 |
+
niah_pt_single_1_1024_stderr: 0.017198592476314233
|
| 40 |
+
niah_pt_single_1_2048: 0.816
|
| 41 |
+
niah_pt_single_1_2048_stderr: 0.017346174781752842
|
| 42 |
+
niah_pt_single_1_4096: 0.8
|
| 43 |
+
niah_pt_single_1_4096_stderr: N/A
|
| 44 |
+
niah_pt_single_1_alias: " - niah_pt_single_1"
|
| 45 |
+
niah_pt_single_2_1024: 0.778
|
| 46 |
+
niah_pt_single_2_1024_stderr: 0.018604414758250098
|
| 47 |
+
niah_pt_single_2_2048: 0.772
|
| 48 |
+
niah_pt_single_2_2048_stderr: 0.018781306529363172
|
| 49 |
+
niah_pt_single_2_4096: 0.688
|
| 50 |
+
niah_pt_single_2_4096_stderr: N/A
|
| 51 |
+
niah_pt_single_2_alias: " - niah_pt_single_2"
|
| 52 |
+
niah_pt_single_3_1024: 0.468
|
| 53 |
+
niah_pt_single_3_1024_stderr: 0.022337186479044296
|
| 54 |
+
niah_pt_single_3_2048: 0.508
|
| 55 |
+
niah_pt_single_3_2048_stderr: 0.022380208834928014
|
| 56 |
+
niah_pt_single_3_4096: 0.5
|
| 57 |
+
niah_pt_single_3_4096_stderr: N/A
|
| 58 |
+
niah_pt_single_3_alias: " - niah_pt_single_3"
|
| 59 |
+
ruler_pt_4096: 0.44008484848484847
|
| 60 |
+
ruler_pt_4096_stderr: N/A
|
| 61 |
+
ruler_pt_alias: ruler_pt
|
| 62 |
+
ruler_pt_cwe_1024: 0.2516
|
| 63 |
+
ruler_pt_cwe_1024_stderr: 0.0065879953982022075
|
| 64 |
+
ruler_pt_cwe_2048: 0.10560000000000001
|
| 65 |
+
ruler_pt_cwe_2048_stderr: 0.0046626989526502875
|
| 66 |
+
ruler_pt_cwe_4096: 0.268
|
| 67 |
+
ruler_pt_cwe_4096_stderr: N/A
|
| 68 |
+
ruler_pt_cwe_alias: " - ruler_pt_cwe"
|
| 69 |
+
ruler_pt_fwe_1024: 0.7766666666666666
|
| 70 |
+
ruler_pt_fwe_1024_stderr: 0.010771818051204566
|
| 71 |
+
ruler_pt_fwe_2048: 0.644
|
| 72 |
+
ruler_pt_fwe_2048_stderr: 0.010544896116732008
|
| 73 |
+
ruler_pt_fwe_4096: 0.5413333333333332
|
| 74 |
+
ruler_pt_fwe_4096_stderr: N/A
|
| 75 |
+
ruler_pt_fwe_alias: " - ruler_pt_fwe"
|
| 76 |
+
ruler_pt_vt_1024: 0.8336
|
| 77 |
+
ruler_pt_vt_1024_stderr: 0.01194434656352784
|
| 78 |
+
ruler_pt_vt_2048: 0.4344
|
| 79 |
+
ruler_pt_vt_2048_stderr: 0.014185758756689964
|
| 80 |
+
ruler_pt_vt_4096: 0.37960000000000005
|
| 81 |
+
ruler_pt_vt_4096_stderr: N/A
|
| 82 |
+
ruler_pt_vt_alias: " - ruler_pt_vt"
|