Text Generation
Transformers
TensorBoard
Safetensors
qwen2
Generated from Trainer
trl
grpo
conversational
text-generation-inference
Instructions to use sciarrilli/qwen-2.5-3b-r1-countdown with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sciarrilli/qwen-2.5-3b-r1-countdown with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sciarrilli/qwen-2.5-3b-r1-countdown") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sciarrilli/qwen-2.5-3b-r1-countdown") model = AutoModelForCausalLM.from_pretrained("sciarrilli/qwen-2.5-3b-r1-countdown", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sciarrilli/qwen-2.5-3b-r1-countdown with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sciarrilli/qwen-2.5-3b-r1-countdown" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sciarrilli/qwen-2.5-3b-r1-countdown", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sciarrilli/qwen-2.5-3b-r1-countdown
- SGLang
How to use sciarrilli/qwen-2.5-3b-r1-countdown 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 "sciarrilli/qwen-2.5-3b-r1-countdown" \ --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": "sciarrilli/qwen-2.5-3b-r1-countdown", "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 "sciarrilli/qwen-2.5-3b-r1-countdown" \ --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": "sciarrilli/qwen-2.5-3b-r1-countdown", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sciarrilli/qwen-2.5-3b-r1-countdown with Docker Model Runner:
docker model run hf.co/sciarrilli/qwen-2.5-3b-r1-countdown
Training in progress, step 25
Browse files
config.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"tie_word_embeddings": true,
|
| 24 |
"torch_dtype": "bfloat16",
|
| 25 |
"transformers_version": "4.48.1",
|
| 26 |
-
"use_cache":
|
| 27 |
"use_sliding_window": false,
|
| 28 |
"vocab_size": 151936
|
| 29 |
}
|
|
|
|
| 23 |
"tie_word_embeddings": true,
|
| 24 |
"torch_dtype": "bfloat16",
|
| 25 |
"transformers_version": "4.48.1",
|
| 26 |
+
"use_cache": false,
|
| 27 |
"use_sliding_window": false,
|
| 28 |
"vocab_size": 151936
|
| 29 |
}
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4957560304
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51941833c05f04ee0add41de8111b94875c9eb7cefbff0939295db95a44aea4a
|
| 3 |
size 4957560304
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1214366696
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cd367c640b8c05f25a7070f5ae1bc1f7a4475b3180bf87aca67babe8ef55704
|
| 3 |
size 1214366696
|
runs/Sep18_17-07-26_ip-10-0-62-207/events.out.tfevents.1758215298.ip-10-0-62-207
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff8bc86feacfdea05a555b3bb0c1fc3d1750364600e4d692cb1d96bcd087b5d6
|
| 3 |
+
size 7621
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6840
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:689b970bc64eeb09afda3ed084e7aeb9b02502401f6ee3b17031dc16524c3a6a
|
| 3 |
size 6840
|