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
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 files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ language:
|
|
| 30 |
library_name: peft
|
| 31 |
pipeline_tag: text-generation
|
| 32 |
datasets:
|
| 33 |
-
- AmareshHebbar/leetcode-
|
| 34 |
co2_eq_emissions:
|
| 35 |
emissions: 0
|
| 36 |
source: "estimate, not measured with a carbon-tracking tool"
|
|
@@ -48,7 +48,7 @@ model-index:
|
|
| 48 |
### Qwen2.5-Coder-7B, QDoRA fine-tuned to solve LeetCode problems in C++
|
| 49 |
|
| 50 |
[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b)
|
| 51 |
-
[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b-GGUF)
|
| 53 |
[](https://www.apache.org/licenses/LICENSE-2.0)
|
| 54 |
[](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct)
|
|
@@ -88,7 +88,7 @@ public:
|
|
| 88 |
|---|---|
|
| 89 |
| **Base model** | [unsloth/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct) |
|
| 90 |
| **Method** | QDoRA (quantized DoRA, not plain LoRA) |
|
| 91 |
-
| **Training data** | [leetcode-
|
| 92 |
| **Data provenance** | scraped from [doocs/leetcode](https://github.com/doocs/leetcode) (3,977 problems), execution-verified, no synthetic/LLM-generated solutions |
|
| 93 |
| **Data quality** | execution-checked against sample I/O (see dataset card for exact rate) |
|
| 94 |
| **Weights here** | QDoRA adapter only (~160MB) β load on top of the base model |
|
|
@@ -133,7 +133,7 @@ Run `benchmark_suite.py` from the deployment kit to reproduce. All numbers are p
|
|
| 133 |
|---|---|---|---|---|
|
| 134 |
| [HumanEval-X](https://huggingface.co/datasets/THUDM/humaneval-x) | C++ | _run benchmark_suite.py_ | _run benchmark_suite.py_ | 164 problems, execution-verified |
|
| 135 |
| [MultiPL-E](https://huggingface.co/datasets/nuprl/MultiPL-E) (HumanEval subset) | C++ | _run benchmark_suite.py_ | β | cross-check vs HumanEval-X |
|
| 136 |
-
| Held-out LeetCode test split | C++ | _run benchmark_suite.py_ | β | from `leetcode-
|
| 137 |
| Tokens/sec (fp16, A40) | C++ | β | β | latency benchmark, see script |
|
| 138 |
| Tokens/sec (GGUF q4_k_m, CPU) | C++ | β | β | latency benchmark, see script |
|
| 139 |
|
|
@@ -383,7 +383,7 @@ one-to-many problem-to-solution structure rather than picking a single "canonica
|
|
| 383 |
| `build_language_datasets.py` | splits into per-language configs and writes the final train/val/test SFT rows |
|
| 384 |
|
| 385 |
execution-checked against sample I/O (see dataset card for exact rate). Full extraction/verification/build code lives alongside the
|
| 386 |
-
[leetcode-
|
| 387 |
|
| 388 |
### Hyperparameters
|
| 389 |
|
|
|
|
| 30 |
library_name: peft
|
| 31 |
pipeline_tag: text-generation
|
| 32 |
datasets:
|
| 33 |
+
- AmareshHebbar/leetcode-codegen-cpp
|
| 34 |
co2_eq_emissions:
|
| 35 |
emissions: 0
|
| 36 |
source: "estimate, not measured with a carbon-tracking tool"
|
|
|
|
| 48 |
### Qwen2.5-Coder-7B, QDoRA fine-tuned to solve LeetCode problems in C++
|
| 49 |
|
| 50 |
[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b)
|
| 51 |
+
[](https://huggingface.co/datasets/AmareshHebbar/leetcode-codegen-cpp)
|
| 52 |
[](https://huggingface.co/AmareshHebbar/leetcode-cpp-qwen25-coder-7b-GGUF)
|
| 53 |
[](https://www.apache.org/licenses/LICENSE-2.0)
|
| 54 |
[](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct)
|
|
|
|
| 88 |
|---|---|
|
| 89 |
| **Base model** | [unsloth/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct) |
|
| 90 |
| **Method** | QDoRA (quantized DoRA, not plain LoRA) |
|
| 91 |
+
| **Training data** | [leetcode-codegen-cpp](https://huggingface.co/datasets/AmareshHebbar/leetcode-codegen-cpp) |
|
| 92 |
| **Data provenance** | scraped from [doocs/leetcode](https://github.com/doocs/leetcode) (3,977 problems), execution-verified, no synthetic/LLM-generated solutions |
|
| 93 |
| **Data quality** | execution-checked against sample I/O (see dataset card for exact rate) |
|
| 94 |
| **Weights here** | QDoRA adapter only (~160MB) β load on top of the base model |
|
|
|
|
| 133 |
|---|---|---|---|---|
|
| 134 |
| [HumanEval-X](https://huggingface.co/datasets/THUDM/humaneval-x) | C++ | _run benchmark_suite.py_ | _run benchmark_suite.py_ | 164 problems, execution-verified |
|
| 135 |
| [MultiPL-E](https://huggingface.co/datasets/nuprl/MultiPL-E) (HumanEval subset) | C++ | _run benchmark_suite.py_ | β | cross-check vs HumanEval-X |
|
| 136 |
+
| Held-out LeetCode test split | C++ | _run benchmark_suite.py_ | β | from `leetcode-codegen-cpp` test split, exact I/O match |
|
| 137 |
| Tokens/sec (fp16, A40) | C++ | β | β | latency benchmark, see script |
|
| 138 |
| Tokens/sec (GGUF q4_k_m, CPU) | C++ | β | β | latency benchmark, see script |
|
| 139 |
|
|
|
|
| 383 |
| `build_language_datasets.py` | splits into per-language configs and writes the final train/val/test SFT rows |
|
| 384 |
|
| 385 |
execution-checked against sample I/O (see dataset card for exact rate). Full extraction/verification/build code lives alongside the
|
| 386 |
+
[leetcode-codegen-cpp](https://huggingface.co/datasets/AmareshHebbar/leetcode-codegen-cpp) dataset card.
|
| 387 |
|
| 388 |
### Hyperparameters
|
| 389 |
|