mav23 / SuperCorrect-7B-GGUF

huggingface.co
Total runs: 677
24-hour runs: 0
7-day runs: 55
30-day runs: 484
Model's Last Updated: March 03 2025
question-answering

Introduction of SuperCorrect-7B-GGUF

Model Details of SuperCorrect-7B-GGUF

SuperCorrect: Supervising and Correcting Language Models with Error-Driven Insights

SuperCorrect: Supervising and Correcting Language Models with Error-Driven Insights Ling Yang* , Zhaochen Yu* , Tianjun Zhang , Minkai Xu , Joseph E. Gonzalez , Bin Cui , Shuicheng Yan

Peking University, Skywork AI, UC Berkeley, Stanford University

Introduction

image

This repo provides the official implementation of SuperCorrect a novel two-stage fine-tuning method for improving both reasoning accuracy and self-correction ability for LLMs.

Notably, our SupperCorrect-7B model significantly surpasses powerful DeepSeekMath-7B by 7.8%/5.3% and Qwen2.5-Math-7B by 15.1%/6.3% on MATH/GSM8K benchmarks , achieving new SOTA performance among all 7B models.

🚨 Unlike other LLMs, we incorporate LLMs with our pre-defined hierarchical thought template ([Buffer of Thought (BoT)](https://github.com/YangLing0818/buffer-of-thought-llm)) to conduct more deliberate reasoning than conventional CoT. It should be noted that our evaluation methods relies on pure mathematical reasoning abilities of LLMs, instead of leverage other programming methods such as PoT and ToRA.
Examples

image

🚨 For more concise and clear presentation, we omit some XML tags.
Model details

You can check our Github repo for more details.

Quick Start
Requirements
  • Since our current model is based on Qwen2.5-Math series, transformers>=4.37.0 is needed for Qwen2.5-Math models. The latest version is recommended.

🚨 This is a must because `transformers` integrated Qwen2 codes since `4.37.0`.
Inference
🤗 Hugging Face Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "BitStarWalkin/SuperCorrect-7B"
device = "cuda" 

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = "Find the distance between the foci of the ellipse \[9x^2 + \frac{y^2}{9} = 99.\]"
hierarchical_prompt = "Solve the following math problem in a step-by-step XML format, each step should be enclosed within tags like <Step1></Step1>. For each step enclosed within the tags, determine if this step is challenging and tricky, if so, add detailed explanation and analysis enclosed within <Key> </Key> in this step, as helpful annotations to help you thinking and remind yourself how to conduct reasoning correctly. After all the reasoning steps, summarize the common solution and reasoning steps to help you and your classmates who are not good at math generalize to similar problems within <Generalized></Generalized>. Finally present the final answer within <Answer> </Answer>."
# HT
messages = [
    {"role": "system", "content":hierarchical_prompt },
    {"role": "user", "content": prompt}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=1024
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Performance

We evaluate our SupperCorrect-7B on two widely used English math benchmarks GSM8K and MATH. All evaluations are tested with our evaluation method which is zero-shot hierarchical thought based prompting.

image

Citation
@article{yang2024supercorrect,
title={SuperCorrect: Supervising and Correcting Language Models with Error-Driven Insights}
  author={Yang, Ling and Yu, Zhaochen and Zhang, Tianjun and Xu, Minkai and Gonzalez, Joseph E and Cui, Bin and Yan, Shuicheng},
  journal={arXiv preprint arXiv:2410.09008},
  year={2024}
}
@article{yang2024buffer,
  title={Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models},
  author={Yang, Ling and Yu, Zhaochen and Zhang, Tianjun and Cao, Shiyi and Xu, Minkai and Zhang, Wentao and Gonzalez, Joseph E and Cui, Bin},
  journal={arXiv preprint arXiv:2406.04271},
  year={2024}
}
Acknowledgements

Our SuperCorrect is a two-stage fine-tuning model which based on several extraordinary open-source models like Qwen2.5-Math , DeepSeek-Math , Llama3-Series . Our evaluation method is based on the code base of outstanding works like Qwen2.5-Math and lm-evaluation-harness . We also want to express our gratitude for amazing works such as BoT which provides the idea of thought template.

Runs of mav23 SuperCorrect-7B-GGUF on huggingface.co

677
Total runs
0
24-hour runs
21
3-day runs
55
7-day runs
484
30-day runs

More Information About SuperCorrect-7B-GGUF huggingface.co Model

More SuperCorrect-7B-GGUF license Visit here:

https://choosealicense.com/licenses/apache-2.0

SuperCorrect-7B-GGUF huggingface.co

SuperCorrect-7B-GGUF huggingface.co is an AI model on huggingface.co that provides SuperCorrect-7B-GGUF's model effect (), which can be used instantly with this mav23 SuperCorrect-7B-GGUF model. huggingface.co supports a free trial of the SuperCorrect-7B-GGUF model, and also provides paid use of the SuperCorrect-7B-GGUF. Support call SuperCorrect-7B-GGUF model through api, including Node.js, Python, http.

SuperCorrect-7B-GGUF huggingface.co Url

https://huggingface.co/mav23/SuperCorrect-7B-GGUF

mav23 SuperCorrect-7B-GGUF online free

SuperCorrect-7B-GGUF huggingface.co is an online trial and call api platform, which integrates SuperCorrect-7B-GGUF's modeling effects, including api services, and provides a free online trial of SuperCorrect-7B-GGUF, you can try SuperCorrect-7B-GGUF online for free by clicking the link below.

mav23 SuperCorrect-7B-GGUF online free url in huggingface.co:

https://huggingface.co/mav23/SuperCorrect-7B-GGUF

SuperCorrect-7B-GGUF install

SuperCorrect-7B-GGUF is an open source model from GitHub that offers a free installation service, and any user can find SuperCorrect-7B-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of SuperCorrect-7B-GGUF install, users can directly use SuperCorrect-7B-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

SuperCorrect-7B-GGUF install url in huggingface.co:

https://huggingface.co/mav23/SuperCorrect-7B-GGUF

Url of SuperCorrect-7B-GGUF

SuperCorrect-7B-GGUF huggingface.co Url

Provider of SuperCorrect-7B-GGUF huggingface.co

mav23
ORGANIZATIONS

Other API from mav23

huggingface.co

Total runs: 1.2K
Run Growth: 509
Growth Rate: 41.42%
Updated:October 31 2024
huggingface.co

Total runs: 861
Run Growth: 546
Growth Rate: 63.41%
Updated:November 30 2024
huggingface.co

Total runs: 585
Run Growth: 570
Growth Rate: 97.44%
Updated:November 21 2024
huggingface.co

Total runs: 213
Run Growth: 149
Growth Rate: 69.95%
Updated:November 19 2024
huggingface.co

Total runs: 159
Run Growth: 127
Growth Rate: 79.87%
Updated:October 28 2024
huggingface.co

Total runs: 148
Run Growth: 25
Growth Rate: 16.89%
Updated:December 04 2024
huggingface.co

Total runs: 133
Run Growth: 36
Growth Rate: 27.07%
Updated:December 04 2024
huggingface.co

Total runs: 115
Run Growth: 18
Growth Rate: 15.65%
Updated:November 30 2024
huggingface.co

Total runs: 114
Run Growth: -3.5K
Growth Rate: -3107.02%
Updated:October 13 2024