Spaces:
Paused
Paused
Arturo Jiménez de los Galanes Reguillos
commited on
Commit
·
43c389f
1
Parent(s):
fde3482
Typo fix
Browse files
app.py
CHANGED
@@ -5,9 +5,6 @@ from threading import Thread
|
|
5 |
import torch
|
6 |
|
7 |
MODEL = "m-a-p/OpenCodeInterpreter-DS-33B"
|
8 |
-
"bos_token": "<|begin_of_text|>",
|
9 |
-
CHAT_TEMPLATE = "{{ bos_token }}{% for message in messages %}{%
|
10 |
-
if message['role'] == 'user' %}{{ '<|start_header_id|>user<|end_header_id|>\n\n' + message['content'] | trim + '<|eot_id|>' }}{% elif message['role'] == 'assistant' %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' + message['content'] | trim + '<|eot_id|>' }}{% else %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n' + message['content'] | trim + '<|eot_id|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}"
|
11 |
|
12 |
system_message = "You are a computer programmer that can translate python code to C++ in order to improve performance"
|
13 |
|
|
|
5 |
import torch
|
6 |
|
7 |
MODEL = "m-a-p/OpenCodeInterpreter-DS-33B"
|
|
|
|
|
|
|
8 |
|
9 |
system_message = "You are a computer programmer that can translate python code to C++ in order to improve performance"
|
10 |
|