Update README.md
Browse files
README.md
CHANGED
|
@@ -67,7 +67,7 @@ prefix = "def add_numbers(a, b):\n "
|
|
| 67 |
suffix = "\n return result"
|
| 68 |
|
| 69 |
# Combine prefix and suffix following the FIM format
|
| 70 |
-
fim_input = '<[
|
| 71 |
|
| 72 |
output = pipeline(fim_input, max_new_tokens=512)
|
| 73 |
print(output[0]["generated_text"])
|
|
|
|
| 67 |
suffix = "\n return result"
|
| 68 |
|
| 69 |
# Combine prefix and suffix following the FIM format
|
| 70 |
+
fim_input = '<[fim-suffix]>' + suffix + '<[fim-prefix]>' + prefix + '<[fim-middle]>'
|
| 71 |
|
| 72 |
output = pipeline(fim_input, max_new_tokens=512)
|
| 73 |
print(output[0]["generated_text"])
|