Text Generation
PEFT
Safetensors
GGUF
English
code
leetcode
cpp
code-generation
competitive-programming
qwen2.5-coder
dora
qdora
weight-decomposed-lora
instruction-tuned
sft
algorithm-generation
function-generation
coding-assistant
on-device
ollama
vllm
text-generation-inference
doocs-leetcode
synthetic-verification
quantized
algorithms
conversational
Run this model with HF Jobs
Run AmareshHebbar/leetcode-cpp-qwen25-coder-7b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use AmareshHebbar/leetcode-cpp-qwen25-coder-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AmareshHebbar/leetcode-cpp-qwen25-coder-7b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "AmareshHebbar/leetcode-cpp-qwen25-coder-7b") - Notebooks
- Google Colab
- Kaggle
docs: v3 model card - QDoRA rationale, richer inference samples, expanded tags
Browse files29 unmodified lines3031323334353611 unmodified lines4849505152535433 unmodified lines8889909192939438 unmodified lines133134135136137138139243 unmodified lines38338438538638738838929 unmodified lineslibrary_name: peftpipeline_tag: text-generationdatasets:- AmareshHebbar/leetcode-code-gen-datasetsco2_eq_emissions:emissions: 0source: "estimate, not measured with a carbon-tracking tool"11 unmodified lines### Qwen2.5-Coder-7B, QDoRA fine-tuned to solve LeetCode problems in C++[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b)[](https://huggingface.co/datasets/AmareshHebbar/leetcode-code-gen-datasets)[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b-GGUF)[](https://www.apache.org/licenses/LICENSE-2.0)[](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct)33 unmodified lines|---|---|| **Base model** | [unsloth/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct) || **Method** | QDoRA (quantized DoRA, not plain LoRA) || **Training data** | [leetcode-code-gen-datasets](https://huggingface.co/datasets/AmareshHebbar/leetcode-code-gen-datasets) config `cpp` || **Data provenance** | scraped from [doocs/leetcode](https://github.com/doocs/leetcode) (3,977 problems), execution-verified, no synthetic/LLM-generated solutions || **Data quality** | execution-checked against sample I/O (see dataset card for exact rate) || **Weights here** | QDoRA adapter only (~160MB) β load on top of the base model |38 unmodified lines|---|---|---|---|---|| [HumanEval-X](https://huggingface.co/datasets/THUDM/humaneval-x) | C++ | _run benchmark_suite.py_ | _run benchmark_suite.py_ | 164 problems, execution-verified || [MultiPL-E](https://huggingface.co/datasets/nuprl/MultiPL-E) (HumanEval subset) | C++ | _run benchmark_suite.py_ | β | cross-check vs HumanEval-X || Held-out LeetCode test split | C++ | _run benchmark_suite.py_ | β | from `leetcode-code-gen-datasets` (`cpp`) test split, exact I/O match || Tokens/sec (fp16, A40) | C++ | β | β | latency benchmark, see script || Tokens/sec (GGUF q4_k_m, CPU) | C++ | β | β | latency benchmark, see script |243 unmodified lines| `build_language_datasets.py` | splits into per-language configs and writes the final train/val/test SFT rows |execution-checked against sample I/O (see dataset card for exact rate). Full extraction/verification/build code lives alongside the[leetcode-code-gen-datasets](https://huggingface.co/datasets/AmareshHebbar/leetcode-code-gen-datasets) dataset card.### Hyperparameters29 unmodified lines3031323334353611 unmodified lines4849505152535433 unmodified lines8889909192939438 unmodified lines133134135136137138139243 unmodified lines38338438538638738838929 unmodified lineslibrary_name: peftpipeline_tag: text-generationdatasets:- AmareshHebbar/leetcode-codegen-cppco2_eq_emissions:emissions: 0source: "estimate, not measured with a carbon-tracking tool"11 unmodified lines### Qwen2.5-Coder-7B, QDoRA fine-tuned to solve LeetCode problems in C++[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b)[](https://huggingface.co/datasets/AmareshHebbar/leetcode-codegen-cpp)[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b-GGUF)[](https://www.apache.org/licenses/LICENSE-2.0)[](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct)33 unmodified lines|---|---|| **Base model** | [unsloth/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct) || **Method** | QDoRA (quantized DoRA, not plain LoRA) || **Training data** | [leetcode-codegen-cpp](https://huggingface.co/datasets/AmareshHebbar/leetcode-codegen-cpp) || **Data provenance** | scraped from [doocs/leetcode](https://github.com/doocs/leetcode) (3,977 problems), execution-verified, no synthetic/LLM-generated solutions || **Data quality** | execution-checked against sample I/O (see dataset card for exact rate) || **Weights here** | QDoRA adapter only (~160MB) β load on top of the base model |38 unmodified lines|---|---|---|---|---|| [HumanEval-X](https://huggingface.co/datasets/THUDM/humaneval-x) | C++ | _run benchmark_suite.py_ | _run benchmark_suite.py_ | 164 problems, execution-verified || [MultiPL-E](https://huggingface.co/datasets/nuprl/MultiPL-E) (HumanEval subset) | C++ | _run benchmark_suite.py_ | β | cross-check vs HumanEval-X || Held-out LeetCode test split | C++ | _run benchmark_suite.py_ | β | from `leetcode-codegen-cpp` test split, exact I/O match || Tokens/sec (fp16, A40) | C++ | β | β | latency benchmark, see script || Tokens/sec (GGUF q4_k_m, CPU) | C++ | β | β | latency benchmark, see script |243 unmodified lines| `build_language_datasets.py` | splits into per-language configs and writes the final train/val/test SFT rows |execution-checked against sample I/O (see dataset card for exact rate). Full extraction/verification/build code lives alongside the[leetcode-codegen-cpp](https://huggingface.co/datasets/AmareshHebbar/leetcode-codegen-cpp) dataset card.### Hyperparameters
README.md+5-5