Downloads · 30 days
18
11% of all-time downloads
xl-zhao/PromptCoT-2.0-Prompt-Generation-Model
PromptCoT-2.0-Prompt-Generation-Model is a machine learning model from xl-zhao. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository hosts the Problem Generation Model (PGM) used in PromptCoT 2.0, a framework for scalable prompt synthesis that advances LLM reasoning in mathematics and programming.
Downloads · 30 days
18
11% of all-time downloads
All-time downloads
171
Public
Parameters
32.8B
65.5 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors65.5 GB · 100%
From the Hugging Face model README
This repository hosts the Problem Generation Model (PGM) used in PromptCoT 2.0, a framework for scalable prompt synthesis that advances LLM reasoning in mathematics and programming.
This checkpoint is the Problem Generation Model (PGM) of PromptCoT 2.0.
How it fits into PromptCoT 2.0:
PromptCoT 2.0 jointly trains two models via an EM optimization loop:
At inference time, the PGM is all you need: provide concepts and it will generate (rationale → problem) in one pass—without any handcrafted templates or domain-specific heuristics.
Qwen2.5-32B-Base with cold-start annotations (concepts & rationales) generated by instruction-tuned models.You can load this model with Hugging Face transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "xl-zhao/PromptCoT-2.0-Prompt-Generation-Model"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
concept_text = "graph traversal, recursion, dynamic programming"
level = "codeforces"
prompt = f"""Given the foundational programming concepts and specified difficulty level, identify connections among these concepts and develop an olympiad-level coding problem that integrates them with appropriate complexity.
Foundational Programming Concepts:
{concept_text}
Difficulty Level: {level}"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_length=4096, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Use the following templates for inference. Replace {concept_text} and {level}.
Given the foundational programming concepts and specified difficulty level, identify connections among these concepts and develop an olympiad-level coding problem that integrates them with appropriate complexity.
Foundational Programming Concepts:
{concept_text}
Difficulty Level: {level}
Given the foundational mathematical concepts and specified difficulty level, identify connections among these concepts and develop an olympiad-level mathematical problem that integrates them with appropriate complexity.
Foundational Mathematical Concepts:
{concept_text}
Difficulty Level: {level}
Expected format: The output will first include a Rationale (multi-step explanation of how the concepts are combined) and then a precise Problem statement.
The PGM is the core component powering the creation of:
PromptCoT 2.0 demonstrates that rationale-driven prompt synthesis yields harder and more diverse problems than existing datasets.
Self-Play (30B-A3B):
Achieves strong gains in both mathematics and programming.
SFT (7B, 100% synthetic):
Demonstrates that fully synthetic data can rival or outperform human-written datasets.
If you find this model or the PromptCoT 2.0 framework useful, please cite:
@article{zhao2025promptcot2,
title = {PromptCoT 2.0: Scaling Prompt Synthesis for Large Language Model Reasoning},
author = {Zhao, Xueliang and Wu, Wei and Guan, Jian and Gong, Zhuocheng and Kong, Lingpeng},
journal = {arXiv preprint arXiv:2509.19894},
year = {2025},
url = {https://arxiv.org/abs/2509.19894}
}