Text Generation
Transformers
Safetensors
qwen3
math
reinforcement-learning
rlsd
verl
conversational
text-generation-inference
Instructions to use SeongryongJung/Qwen-4b-base-RLSD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SeongryongJung/Qwen-4b-base-RLSD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SeongryongJung/Qwen-4b-base-RLSD") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SeongryongJung/Qwen-4b-base-RLSD") model = AutoModelForCausalLM.from_pretrained("SeongryongJung/Qwen-4b-base-RLSD") 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 SeongryongJung/Qwen-4b-base-RLSD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SeongryongJung/Qwen-4b-base-RLSD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SeongryongJung/Qwen-4b-base-RLSD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SeongryongJung/Qwen-4b-base-RLSD
- SGLang
How to use SeongryongJung/Qwen-4b-base-RLSD 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 "SeongryongJung/Qwen-4b-base-RLSD" \ --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": "SeongryongJung/Qwen-4b-base-RLSD", "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 "SeongryongJung/Qwen-4b-base-RLSD" \ --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": "SeongryongJung/Qwen-4b-base-RLSD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SeongryongJung/Qwen-4b-base-RLSD with Docker Model Runner:
docker model run hf.co/SeongryongJung/Qwen-4b-base-RLSD
File size: 1,951 Bytes
a0ee6a2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | step,critic_score_mean,val_math_dapo_acc_mean_at_1
1,0.1162109375,
2,0.1142578125,
3,0.12109375,
4,0.11328125,
5,0.1298828125,
6,0.13525390625,
7,0.11376953125,
8,0.13720703125,
9,0.138671875,
10,0.14013671875,0.13333333333333333
11,0.125,
12,0.15576171875,
13,0.1279296875,
14,0.15185546875,
15,0.1591796875,
16,0.16796875,
17,0.1416015625,
18,0.16552734375,
19,0.1708984375,
20,0.1767578125,0.1
21,0.1787109375,
22,0.1826171875,
23,0.22265625,
24,0.1875,
25,0.17236328125,
26,0.23388671875,
27,0.22216796875,
28,0.20166015625,
29,0.26416015625,
30,0.2275390625,0.13333333333333333
31,0.25537109375,
32,0.22705078125,
33,0.23095703125,
34,0.24267578125,
35,0.232421875,
36,0.24365234375,
37,0.2421875,
38,0.21728515625,
39,0.2431640625,
40,0.2626953125,0.1
41,0.2666015625,
42,0.25634765625,
43,0.26904296875,
44,0.2685546875,
45,0.25341796875,
46,0.275390625,
47,0.291015625,
48,0.26416015625,
49,0.29345703125,
50,0.25,0.13333333333333333
51,0.28515625,
52,0.2470703125,
53,0.25390625,
54,0.31689453125,
55,0.25048828125,
56,0.3115234375,
57,0.25927734375,
58,0.29345703125,
59,0.271484375,
60,0.25732421875,0.16666666666666666
61,0.30224609375,
62,0.2783203125,
63,0.32177734375,
64,0.2568359375,
65,0.2900390625,
66,0.26904296875,
67,0.265625,
68,0.2998046875,
69,0.236328125,
70,0.27978515625,0.13333333333333333
71,0.30419921875,
72,0.27294921875,
73,0.302734375,
74,0.27880859375,
75,0.28466796875,
76,0.3046875,
77,0.306640625,
78,0.31689453125,
79,0.30029296875,
80,0.3173828125,0.1
81,0.29638671875,
82,0.3330078125,
83,0.33837890625,
84,0.287109375,
85,0.28955078125,
86,0.30810546875,
87,0.326171875,
88,0.3515625,
89,0.3203125,
90,0.3046875,0.16666666666666666
91,0.322265625,
92,0.33056640625,
93,0.30224609375,
94,0.34521484375,
95,0.33984375,
96,0.30322265625,
97,0.31640625,
98,0.32373046875,
99,0.3447265625,
100,0.30419921875,0.1
|