Instructions to use TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH") 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("TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH") model = AutoModelForCausalLM.from_pretrained("TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH", 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 TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH
- SGLang
How to use TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH 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 "TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH" \ --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": "TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH", "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 "TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH" \ --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": "TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH with Docker Model Runner:
docker model run hf.co/TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base-MATH
Improve model card: Add metadata, paper link, and correct GitHub link
Browse filesThis PR enhances the model card for `TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base` by:
- Adding `pipeline_tag: text-generation` for improved discoverability on the Hub, as it's a causal language model.
- Adding `library_name: transformers` to enable the automated "How to use" widget, based on its `Qwen3ForCausalLM` architecture and `transformers_version` in `config.json`.
- Including relevant `tags` such as `qwen3`, `fine-tuning`, `reinforcement-learning`, `reasoning`, `mathematical-reasoning`, and `self-supervised-learning`.
- Integrating a direct link to the paper: [Co-rewarding: Stable Self-supervised RL for Eliciting Reasoning in Large Language Models](https://huggingface.co/papers/2508.00410).
- Correcting the GitHub repository link to [https://github.com/tmlr-group/Co-rewarding](https://github.com/tmlr-group/Co-rewarding), which was previously outdated.
- Clarifying the model's description, noting its role as a baseline model trained with the Self-Certainty method within the context of the Co-rewarding paper.
- No sample usage is included, as no direct inference snippet was found in the provided GitHub README content, adhering to the specified guidelines.
|
@@ -1,19 +1,34 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
| 4 |
## TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base
|
| 5 |
|
| 6 |
-
This is the Qwen3-1.7B-Base model trained by Self-Certainty method using MATH training set.
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
## Citation
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
| 18 |
}
|
| 19 |
```
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
pipeline_tag: text-generation
|
| 4 |
+
library_name: transformers
|
| 5 |
+
tags:
|
| 6 |
+
- qwen3
|
| 7 |
+
- fine-tuning
|
| 8 |
+
- reinforcement-learning
|
| 9 |
+
- reasoning
|
| 10 |
+
- mathematical-reasoning
|
| 11 |
+
- self-supervised-learning
|
| 12 |
---
|
| 13 |
+
|
| 14 |
+
# Co-rewarding: Stable Self-supervised RL for Eliciting Reasoning in Large Language Models
|
| 15 |
+
|
| 16 |
## TMLR-Group-HF/Self-Certainty-Qwen3-1.7B-Base
|
| 17 |
|
| 18 |
+
This is the Qwen3-1.7B-Base model trained by the **Self-Certainty** method using the MATH training set. This model serves as a baseline for comparison within the framework presented in the paper [Co-rewarding: Stable Self-supervised RL for Eliciting Reasoning in Large Language Models](https://huggingface.co/papers/2508.00410).
|
| 19 |
+
|
| 20 |
+
The paper "Co-rewarding: Stable Self-supervised RL for Eliciting Reasoning in Large Language Models" introduces a novel self-supervised reinforcement learning framework that enhances training stability by incorporating complementary supervision signals.
|
| 21 |
|
| 22 |
+
For more details on the Co-rewarding framework, training procedures, and other released models and datasets, please refer to the official GitHub repository: [https://github.com/tmlr-group/Co-rewarding](https://github.com/tmlr-group/Co-rewarding).
|
| 23 |
|
| 24 |
## Citation
|
| 25 |
|
| 26 |
+
If you use our datasets or models, please cite our paper!
|
| 27 |
+
```bibtex
|
| 28 |
+
@article{zhang2025co,
|
| 29 |
+
title={Co-rewarding: Stable Self-supervised RL for Eliciting Reasoning in Large Language Models},
|
| 30 |
+
author={Zhang, Zizhuo and Zhu, Jianing and Ge, Xinmu and Zhao, Zihua and Zhou, Zhanke and Li, Xuan and Feng, Xiao and Yao, Jiangchao and Han, Bo},
|
| 31 |
+
journal={arXiv preprint arXiv:2508.00410},
|
| 32 |
+
year={2025}
|
| 33 |
}
|
| 34 |
```
|