Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1") model = AutoModelForCausalLM.from_pretrained("RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1
- SGLang
How to use RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1 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 "RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1" \ --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": "RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1", "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 "RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1" \ --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": "RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1 with Docker Model Runner:
docker model run hf.co/RZ412/Qwen2.5-3B-Instruct-OT3-8K-R1
Commit History
-
End of training
Verified signaturea11ec91 -
Model save
Verified signaturebb3ace4 -
Training in progress, step 5210
Verified signatureae228be
-
Training in progress, step 5000
Verified signaturef436dce -
Training in progress, step 4750
Verified signature569eda0 -
Training in progress, step 4500
Verified signature103c408 -
Training in progress, step 4250
Verified signatureea97a9d -
Training in progress, step 4000
Verified signature9feff0a -
Training in progress, step 3750
Verified signature0a1fea4 -
Training in progress, step 3500
Verified signaturef3f3f94 -
Training in progress, step 3250
Verified signature34ac792 -
Training in progress, step 3000
Verified signature0dac492 -
Training in progress, step 2750
Verified signatureceb6aeb -
Training in progress, step 2500
Verified signature572cfa5 -
Training in progress, step 2250
Verified signature3a5c2a1 -
Training in progress, step 2000
Verified signature4ab4d8d -
Training in progress, step 1750
Verified signature28a8c0f
-
Training in progress, step 1500
Verified signature09d44ac -
Training in progress, step 1250
Verified signature8cfa3e9 -
Training in progress, step 1000
Verified signatureaaefb91 -
Training in progress, step 750
Verified signature49104bf -
Training in progress, step 500
Verified signature17b02f6 -
Training in progress, step 250
Verified signatureb2f5a56
-
End of training
Verified signature1bcae1f -
Model save
Verified signature64247a5 -
Training in progress, step 1042
Verified signature4dd2515 -
Training in progress, step 1000
Verified signature4135239 -
Training in progress, step 875
Verified signature018742f -
Training in progress, step 750
Verified signaturea16a9b4 -
Training in progress, step 625
Verified signaturec9bf381
-
Training in progress, step 500
Verified signature332d6b2 -
Training in progress, step 375
Verified signaturedf39b72 -
Training in progress, step 250
Verified signature220635c -
Training in progress, step 125
Verified signature40f72fd -
initial commit
Verified signature13859dd