Update README.md
Browse files
README.md
CHANGED
|
@@ -65,7 +65,7 @@ Below results are the average of **64 evaluations** on each benchmark.
|
|
| 65 |
|
| 66 |
To run inference on coding problems:
|
| 67 |
|
| 68 |
-
|
| 69 |
import transformers
|
| 70 |
import torch
|
| 71 |
|
|
@@ -92,8 +92,8 @@ You must use ```python for just the final solution code block with the following
|
|
| 92 |
|
| 93 |
messages = [
|
| 94 |
{
|
| 95 |
-
"role": "user",
|
| 96 |
-
"content": prompt.format(user="Write a program to calculate the sum of the first
|
| 97 |
]
|
| 98 |
|
| 99 |
outputs = pipeline(
|
|
@@ -102,7 +102,8 @@ outputs = pipeline(
|
|
| 102 |
)
|
| 103 |
print(outputs[0]["generated_text"][-1]['content'])
|
| 104 |
|
| 105 |
-
|
|
|
|
| 106 |
|
| 107 |
|
| 108 |
## Citation
|
|
|
|
| 65 |
|
| 66 |
To run inference on coding problems:
|
| 67 |
|
| 68 |
+
````python
|
| 69 |
import transformers
|
| 70 |
import torch
|
| 71 |
|
|
|
|
| 92 |
|
| 93 |
messages = [
|
| 94 |
{
|
| 95 |
+
"role": "user",
|
| 96 |
+
"content": prompt.format(user="Write a program to calculate the sum of the first <span class="math-inline">N</span> fibonacci numbers")},
|
| 97 |
]
|
| 98 |
|
| 99 |
outputs = pipeline(
|
|
|
|
| 102 |
)
|
| 103 |
print(outputs[0]["generated_text"][-1]['content'])
|
| 104 |
|
| 105 |
+
````
|
| 106 |
+
|
| 107 |
|
| 108 |
|
| 109 |
## Citation
|