Update README.md
Browse files
README.md
CHANGED
@@ -30,4 +30,29 @@ model-index:
|
|
30 |
type: pass@1
|
31 |
value: 0.3696
|
32 |
verified: false
|
33 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
type: pass@1
|
31 |
value: 0.3696
|
32 |
verified: false
|
33 |
+
---
|
34 |
+
EditCoder-6.7b (version 1) is a fine-tuned version of [DeepSeek Coder](deepseek-ai/deepseek-coder-6.7b-base) (base model, 6.7b parameters) for instructional code editing.
|
35 |
+
We utilize [EditPackFT](https://huggingface.co/datasets/nuprl/EditPackFT) as our fine-tuning dataset, and we show state-of-the-art performance among non-distilled open source models
|
36 |
+
for code editing, using the [CanItEdit](https://huggingface.co/datasets/nuprl/CanItEdit) benchmark.
|
37 |
+
|
38 |
+
More information can be found on [our paper](https://federico.codes/assets/papers/canitedit.pdf).
|
39 |
+
|
40 |
+
# Prompt
|
41 |
+
The model has been trained on the following prompt format:
|
42 |
+
```
|
43 |
+
## Code Before:
|
44 |
+
{before}
|
45 |
+
## Instruction:
|
46 |
+
{instruction}
|
47 |
+
## Code After:
|
48 |
+
{after}
|
49 |
+
```
|
50 |
+
|
51 |
+
Here is a python function that can be used for formatting the prompt correctly:
|
52 |
+
```py
|
53 |
+
def edit_prompt(old, instr):
|
54 |
+
before = f"""## Code Before:\n{old}\n"""
|
55 |
+
instr = f"""## Instruction:\n{instr}\n"""
|
56 |
+
after = f"""## Code After:\n"""
|
57 |
+
return before + instr + after
|
58 |
+
```
|