Instructions to use byesher/plan-then-code-lora-14b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use byesher/plan-then-code-lora-14b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/root/autodl-tmp/Qwen2.5-Coder-14B") model = PeftModel.from_pretrained(base_model, "byesher/plan-then-code-lora-14b") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -39,6 +39,8 @@ print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True
|
|
| 39 |
|
| 40 |
## Results
|
| 41 |
|
|
|
|
|
|
|
| 42 |
| Setting | pass@1 | compile | case_pass |
|
| 43 |
|---|---|---|---|
|
| 44 |
| Bare Coder, chat prompt | 6.2% (20/324) | 26.2% (85/324) | 6.6% (256/3894) |
|
|
@@ -47,6 +49,14 @@ print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True
|
|
| 47 |
|
| 48 |
Relative to the "comment-completion" baseline, SFT improves pass@1 by **+9.0pp** (McNemar test, p < 0.001).
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
## Training
|
| 51 |
|
| 52 |
- **Base model**: Qwen2.5-Coder-14B (base)
|
|
@@ -56,7 +66,7 @@ Relative to the "comment-completion" baseline, SFT improves pass@1 by **+9.0pp**
|
|
| 56 |
|
| 57 |
## Repository
|
| 58 |
|
| 59 |
-
- Code: [byesher/plan-then-code](https://github.com/byesher/plan-then-code)
|
| 60 |
|
| 61 |
## Framework versions
|
| 62 |
|
|
|
|
| 39 |
|
| 40 |
## Results
|
| 41 |
|
| 42 |
+
### Three metrics (324 held-out algorithm problems)
|
| 43 |
+
|
| 44 |
| Setting | pass@1 | compile | case_pass |
|
| 45 |
|---|---|---|---|
|
| 46 |
| Bare Coder, chat prompt | 6.2% (20/324) | 26.2% (85/324) | 6.6% (256/3894) |
|
|
|
|
| 49 |
|
| 50 |
Relative to the "comment-completion" baseline, SFT improves pass@1 by **+9.0pp** (McNemar test, p < 0.001).
|
| 51 |
|
| 52 |
+
### Failure breakdown (324 problems, by failure reason)
|
| 53 |
+
|
| 54 |
+
| Setting | Passed | Compile error | Wrong output (mismatch) | Runtime error | Timeout |
|
| 55 |
+
|---|---|---|---|---|---|
|
| 56 |
+
| Bare Coder, chat prompt | 20 | 239 | 41 | 22 | 2 |
|
| 57 |
+
| Bare Coder, comment-completion | 119 | 2 | 172 | 26 | 5 |
|
| 58 |
+
| **SFT (plan-then-code)** | **148** | **0** | 167 | 8 | 1 |
|
| 59 |
+
|
| 60 |
## Training
|
| 61 |
|
| 62 |
- **Base model**: Qwen2.5-Coder-14B (base)
|
|
|
|
| 66 |
|
| 67 |
## Repository
|
| 68 |
|
| 69 |
+
- Code & full documentation: [byesher/plan-then-code](https://github.com/byesher/plan-then-code)
|
| 70 |
|
| 71 |
## Framework versions
|
| 72 |
|