newfacade/LeetCodeDataset
Viewer • Updated • 2.87k • 3.6k • 81
How to use amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit", device_map="auto")This model is a fine-tuned version of unsloth/Qwen2.5-Coder-0.5B-bnb-4bit, specialized for solving competitive programming problems, specifically from the LeetCode platform.
The model was trained using the SFT (Supervised Fine-Tuning) method to transform the base completion model into a helpful coding assistant.
This model is intended for:
In internal evaluations, this fine-tuned version significantly outperformed the base model in:
Base model
Qwen/Qwen2.5-0.5B