Downloads · 30 days
126
13% of all-time downloads
anshul6273/Qwen2.5-7B-Atcoder-Reasoning-v1-GGUF
Qwen2.5-7B-Atcoder-Reasoning-v1-GGUF is a machine learning model from anshul6273. 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 project trains the Qwen2.5-7B-Instruct model to REASON. The model is trained using GRPO with multiple custom reward functions to ensure:
Downloads · 30 days
126
13% of all-time downloads
All-time downloads
977
Public
Repo size
59.3 GB
Likes
0
Public
Click a slice to open those files.
.gguf28.8 GB · 65%
From the Hugging Face model README
This project trains the Qwen2.5-7B-Instruct model to REASON. The model is trained using GRPO with multiple custom reward functions to ensure:
Repo link: Github
SYSTEM_PROMPT = """ You are a skilled C++ competitive programmer. When solving a problem, follow these steps exactly:
Internal Reasoning (Hidden):
<reasoning> and </reasoning> tags.Final Answer (Visible):
<answer> and </answer> tags.cpp (i.e., starting with cpp and ending with ).Strict Format:
</answer>
Follow these instructions exactly for every problem. """
Prompt: How many r's in the word strawberry?
Response:
<reasoning>
I am thinking about how to solve this problem. The question is asking for the number of 'r' characters in the word "strawberry". We need to iterate through the string and count the 'r's. Let's consider the string and count the characters.
</reasoning>
<answer>
#include <iostream>
#include <string>
int main() {
std::string word = "strawberry";
int count = 0;
for (char c : word) {
if (c == 'r') count++;
}
std::cout << "Number of 'r's in 'strawberry': " << count << std::endl;
return 0;
}
</answer>
Format-Driven Responses: Generates responses in a strict XML format:
<reasoning>
Step-by-step problem analysis and solution approach
</reasoning>
<answer>
</answer>
Multiple Reward Functions:
pip install unsloth vllm
pip install --upgrade pillow
pip install git+https://github.com/huggingface/trl.git@e95f9fb74a3c3647b86f251b7e230ec51c64b72b
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Qwen/Qwen2.5-7B-Instruct",
max_seq_length = 1024,
load_in_4bit = True,
fast_inference = True,
max_lora_rank = 8,
gpu_memory_utilization = 0.5,
)
The model is trained using GRPO with the following key parameters:
GGUF models are available at: Qwen2.5-7B-Atcoder-Reasoning-v1-GGUF -> Files and Versions
~/llama.cpp/build/bin/llama-server -m ~/Downloads/Qwen2.5-7B-Atcoder-Reasoning-v1-Q5_K_M.gguf \
--port 42069 \
--temp 0.8 \
--top_p 0.95 \
--alias Qwen2.5-7B-Instruct-Atcoder
gpu_memory_utilization (default: 0.5) if experiencing OOM errorsgradient_accumulation_steps to control batch sizenum_generations based on available memoryThis project follows the licensing terms of Qwen2.5-7B-Instruct and its dependencies.