How to use from
Unsloth Studio
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for David0dods/Qwen2.5-Coder-7B-Codeforces-Tutor to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for David0dods/Qwen2.5-Coder-7B-Codeforces-Tutor to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required
# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for David0dods/Qwen2.5-Coder-7B-Codeforces-Tutor to start chatting
Load model with FastModel
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
    model_name="David0dods/Qwen2.5-Coder-7B-Codeforces-Tutor",
    max_seq_length=2048,
)
Quick Links

Qwen2.5-Coder-7B-Codeforces

This model is a fine-tuned version of Qwen2.5-Coder-7B (quantized in 4-bit via QLoRA). It has been specifically trained to act as an intelligent programming tutor and expert solver for Codeforces competitive programming problems.

It is designed to serve as the generation node in a broader RAG (Retrieval-Augmented Generation) architecture, dynamically adapting its response based on the structured instruction provided in the prompt.

Key Features

  • Dual-Mode Inference: Can switch between generating a progressive, 1-2 sentence theoretical hint (Tutor Mode) or a fully functional, optimized Python solution (Expert Mode).
  • Memory Efficient: Fine-tuned using Unsloth and optimized with an 8-bit Paged AdamW optimizer to compress a 7B model workflow into a single 16GB T4 GPU envelope.
  • Context Preservation: Maintained a robust 2048/3072 sequence length to handle complex problem statements and retrieved vector database context without dropping long-dependency tokens.

Prompt Template

To get the exact structured output and prevent hallucinations, you must use the following prompt format when querying the model:

1. Tutor Mode (For Hints Only)

Instruction: You are a programming tutor. Give ONE short hint for this problem. Do NOT give code or reveal the full solution. Just the key insight in 1-2 sentences.
Difficulty Rating: [e.g., 1300]
Topics: [e.g., greedy, math, sortings]

Problem:
[Insert Codeforces Problem Text Here]

Hint:
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for David0dods/Qwen2.5-Coder-7B-Codeforces-Tutor

Base model

Qwen/Qwen2.5-7B
Finetuned
(41)
this model

Dataset used to train David0dods/Qwen2.5-Coder-7B-Codeforces-Tutor