Text Generation
Transformers
Safetensors
qwen3
reinforcement-learning
grpo
lora-merged
mopd
multi-teacher-on-policy-distillation
code
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use pb09204048/Qwen3-4B-Code-RL-Specialist with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pb09204048/Qwen3-4B-Code-RL-Specialist with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pb09204048/Qwen3-4B-Code-RL-Specialist") 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("pb09204048/Qwen3-4B-Code-RL-Specialist") model = AutoModelForCausalLM.from_pretrained("pb09204048/Qwen3-4B-Code-RL-Specialist", 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 pb09204048/Qwen3-4B-Code-RL-Specialist with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pb09204048/Qwen3-4B-Code-RL-Specialist" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pb09204048/Qwen3-4B-Code-RL-Specialist", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pb09204048/Qwen3-4B-Code-RL-Specialist
- SGLang
How to use pb09204048/Qwen3-4B-Code-RL-Specialist 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 "pb09204048/Qwen3-4B-Code-RL-Specialist" \ --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": "pb09204048/Qwen3-4B-Code-RL-Specialist", "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 "pb09204048/Qwen3-4B-Code-RL-Specialist" \ --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": "pb09204048/Qwen3-4B-Code-RL-Specialist", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use pb09204048/Qwen3-4B-Code-RL-Specialist with Docker Model Runner:
docker model run hf.co/pb09204048/Qwen3-4B-Code-RL-Specialist
Release merged RL specialist with training provenance, benchmarks, and MOPD teacher guidance
923299b verified Download evaluation/comparison.csv from pb09204048/Qwen3-4B-Code-RL-Specialist: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/pb09204048/Qwen3-4B-Code-RL-Specialist/resolve/main/evaluation/comparison.csv
- Command line
-
hf download hf://pb09204048/Qwen3-4B-Code-RL-Specialist/evaluation/comparison.csv
-
curl -L -o comparison.csv https://huggingface.co/pb09204048/Qwen3-4B-Code-RL-Specialist/resolve/main/evaluation/comparison.csv
337 Bytes
| model,aime24,livecodebench_v5_deepcoder_test,ifeval,ifbench | |
| base,22.5,17.562724014336915,81.33086876155268,25.0 | |
| math,50.0,18.189964157706093,80.0369685767098,25.666666666666664 | |
| code,25.833333333333336,24.10394265232975,81.70055452865064,25.333333333333336 | |
| if,18.333333333333332,15.68100358422939,84.4731977818854,43.666666666666664 | |