newfacade/LeetCodeDataset
Viewer • Updated • 2.87k • 2.3k • 66
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", dtype="auto")How to use amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit with Unsloth Studio:
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 amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit to start chatting
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 amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="amanmoon/leetcode_finetuned_Qwen2.5-Coder-0.5B-bnb-4bit",
max_seq_length=2048,
)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