Run this model with HF Jobs

Run sparkle-reasoning/SparkleRL-7B-Stage1 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 to fine-tune https://huggingface.co/sparkle-reasoning/SparkleRL-7B-Stage1. 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/sparkle-reasoning/SparkleRL-7B-Stage1 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.

SparkleRL-7B-Stage1 is the Stage 1 RL-tuned model used in the paper Beyond Accuracy: Dissecting Mathematical Reasoning for LLMs Under Reinforcement Learning.


Links

Paper: https://arxiv.org/abs/2506.04723

Code: https://github.com/sparkle-reasoning/sparkle

Project Page: https://sparkle-reasoning.github.io/


Quick Start

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

name = "sparkle-reasoning/SparkleRL-7B-Stage1"

tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(
    name, torch_dtype=torch.float16, device_map="auto"
)

prompt = "Solve step by step: If 3x + 5 = 20, what is x?"
inp = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inp, max_new_tokens=256)

print(tok.decode(out[0], skip_special_tokens=True))

Citation

@misc{wang2025accuracydissectingmathematicalreasoning,
    title={Beyond Accuracy: Dissecting Mathematical Reasoning for LLMs Under Reinforcement Learning}, 
    author={Jiayu Wang and Yifei Ming and Zixuan Ke and Caiming Xiong and Shafiq Joty and Aws Albarghouthi and Frederic Sala},
    year={2025},
    eprint={2506.04723},
    archivePrefix={arXiv},
    primaryClass={cs.AI},
    url={https://arxiv.org/abs/2506.04723},
}
Downloads last month
15
Safetensors
Model size
8B params
Tensor type
BF16
·
Video Preview
loading

Model tree for sparkle-reasoning/SparkleRL-7B-Stage1

Quantizations
3 models

Paper for sparkle-reasoning/SparkleRL-7B-Stage1