Text Generation
Transformers
Safetensors
English
qwen2
RLinf
reinforcement-learning
conversational
Eval Results (legacy)
text-generation-inference
Run this model with HF Jobs
Run RLinf/RLinf-math-7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/RLinf/RLinf-math-7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/RLinf/RLinf-math-7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/RLinf/RLinf-math-7B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/RLinf/RLinf-math-7B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use RLinf/RLinf-math-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RLinf/RLinf-math-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RLinf/RLinf-math-7B") 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("RLinf/RLinf-math-7B") model = AutoModelForCausalLM.from_pretrained("RLinf/RLinf-math-7B", 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 RLinf/RLinf-math-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RLinf/RLinf-math-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RLinf/RLinf-math-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RLinf/RLinf-math-7B
- SGLang
How to use RLinf/RLinf-math-7B 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 "RLinf/RLinf-math-7B" \ --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": "RLinf/RLinf-math-7B", "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 "RLinf/RLinf-math-7B" \ --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": "RLinf/RLinf-math-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RLinf/RLinf-math-7B with Docker Model Runner:
docker model run hf.co/RLinf/RLinf-math-7B
Improve model card: Update pipeline tag, add library name, and link paper (#1)
Browse files- Improve model card: Update pipeline tag, add library name, and link paper (92f921c845822e134ed5a982517ca2124ae3607c)
Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 unmodified lines9697989910010110210310410522 unmodified lines128129130131---license: mittags:- RLinflanguage:- enmetrics:- accuracybase_model:- deepseek-ai/DeepSeek-R1-Distill-Qwen-7Bpipeline_tag: reinforcement-learningmodel-index:- name: RLinf-math-7Bresults:- task:type: math # Required. Example: automatic-speech-recognitiondataset:type: aime_2024 # Required. Example: common_voice. Use dataset id from https://hf.co/datasetsname: AIME24 # Required. A pretty name for the dataset. Example: Common Voice (French)metrics:- type: accuracy # Required. Example: wer. Use metric id from https://hf.co/metricsvalue: 68.328125 # Required. Example: 20.90- task:type: math # Required. Example: automatic-speech-recognitiondataset:type: aime_2025 # Required. Example: common_voice. Use dataset id from https://hf.co/datasetsname: AIME25 # Required. A pretty name for the dataset. Example: Common Voice (French)metrics:- type: accuracy # Required. Example: wer. Use metric id from https://hf.co/metricsvalue: 52.19375 # Required. Example: 20.90- task:type: stem # Required. Example: automatic-speech-recognitiondataset:type: gpqa_diamond # Required. Example: common_voice. Use dataset id from https://hf.co/datasetsname: GPQA-diamond # Required. A pretty name for the dataset. Example: Common Voice (French)metrics:- type: accuracy # Required. Example: wer. Use metric id from https://hf.co/metricsvalue: 48.178124999999994 # Required. Example: 20.90---<div align="center"><img src="logo.svg" alt="RLinf-logo" width="500"/></div><div align="center"><!-- <a href="TODO"><img src="https://img.shields.io/badge/arXiv-Paper-red?logo=arxiv"></a> -->48 unmodified lines| Model | AIME 24 | AIME 25 | GPQA-diamond | Average || ---------------------------------------- | --------- | --------- | ------------ | --------- || [DeepSeek-R1-Distill-Qwen-7B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B) | 54.90 | 40.20 | 45.48 | 46.86 || [AReaL-boba-RL-7B](https://huggingface.co/inclusionAI/AReaL-boba-RL-7B) | 61.66 | 49.38 | 46.93 | 52.66 || [Skywork-OR1-7B](https://huggingface.co/Skywork/Skywork-OR1-7B) | 66.87 | 52.49 | 44.43 | 54.60 || [Polaris-7B-Preview](https://huggingface.co/POLARIS-Project/Polaris-7B-Preview) | **68.55** | 51.24 | 43.88 | 54.56 || [AceMath-RL-Nemotron-7B](https://huggingface.co/nvidia/AceMath-RL-Nemotron-7B) | 67.30 | **55.00** | 45.57 | 55.96 || [RLinf-math-7B](https://huggingface.co/RLinf/RLinf-math-7B) | 68.33 | 52.19 | **48.18** | **56.23** |22 unmodified lines```## LicenseThis code repository and the model weights are licensed under the MIT License.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495048 unmodified lines9910010110210310410510610710810911011111211322 unmodified lines136137138139---base_model:- deepseek-ai/DeepSeek-R1-Distill-Qwen-7Blanguage:- enlicense: mitmetrics:- accuracypipeline_tag: text-generationlibrary_name: transformerstags:- RLinf- reinforcement-learningmodel-index:- name: RLinf-math-7Bresults:- task:type: mathdataset:name: AIME24type: aime_2024metrics:- type: accuracyvalue: 68.328125- task:type: mathdataset:name: AIME25type: aime_2025metrics:- type: accuracyvalue: 52.19375- task:type: stemdataset:name: GPQA-diamondtype: gpqa_diamondmetrics:- type: accuracyvalue: 48.178124999999994---<div align="center"><img src="logo.svg" alt="RLinf-logo" width="500"/></div>The model was presented in the paper [RLinf-VLA: A Unified and Efficient Framework for VLA+RL Training](https://huggingface.co/papers/2510.06710).<div align="center"><!-- <a href="TODO"><img src="https://img.shields.io/badge/arXiv-Paper-red?logo=arxiv"></a> -->48 unmodified lines| Model | AIME 24 | AIME 25 | GPQA-diamond | Average || ---------------------------------------- | --------- | --------- | ------------ | --------- || [DeepSeek-R1-Distill-Qwen-7B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B) | 54.90 | 40.20 | 45.48 | 46.86 || [AReaL-boba-RL-7B](https://huggingface.co/inclusionAI/AReaL-boba-RL-7B) | 61.66 | 49.38 | 46.93 | 52.66 || [Skywork-OR1-7B](https://huggingface.co/Skywork/Skywork-OR1-7B) | 66.87 | 52.49 | 44.43 | 54.60 || [Polaris-7B-Preview](https://huggingface.co/POLARIS-Project/Polaris-7B-Preview) | **68.55** | 51.24 | 43.88 | 54.56 || [AceMath-RL-Nemotron-7B](https://huggingface.co/nvidia/AceMath-RL-Nemotron-7B) | 67.30 | **55.00** | 45.57 | 55.96 || [RLinf-math-7B](https://huggingface.co/RLinf/RLinf-math-7B) | 68.33 | 52.19 | **48.18** | **56.23** |22 unmodified lines```## LicenseThis code repository and the model weights are licensed under the MIT License.
README.md+30-22