Di Zhang
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,9 @@ DESCRIPTION = '''
|
|
| 15 |
SimpleBerry/LLaMA-O1-Supervised-1129: an experimental research model developed by the SimpleBerry.
|
| 16 |
Focused on advancing AI reasoning capabilities.
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
'''
|
| 20 |
|
| 21 |
LICENSE = """
|
|
@@ -37,7 +39,7 @@ def generate_text(message, history, max_tokens=512, temperature=0.9, top_p=0.95)
|
|
| 37 |
inputs = model.tokenize(input_texts[0].encode('utf-8'))
|
| 38 |
for token in model.generate(inputs, top_p=top_p, temp=temperature):
|
| 39 |
#print(f"token: {token}")
|
| 40 |
-
text = model.detokenize([token])
|
| 41 |
#print(f"text detok: {text}")
|
| 42 |
temp += text.decode('utf-8')
|
| 43 |
yield temp
|
|
|
|
| 15 |
SimpleBerry/LLaMA-O1-Supervised-1129: an experimental research model developed by the SimpleBerry.
|
| 16 |
Focused on advancing AI reasoning capabilities.
|
| 17 |
|
| 18 |
+
## This Space was designed by Lyte/LLaMA-O1-Supervised-1129-GGUF, Many Thanks!
|
| 19 |
+
|
| 20 |
+
**To start a new chat**, click "clear" and start a new dialogue.
|
| 21 |
'''
|
| 22 |
|
| 23 |
LICENSE = """
|
|
|
|
| 39 |
inputs = model.tokenize(input_texts[0].encode('utf-8'))
|
| 40 |
for token in model.generate(inputs, top_p=top_p, temp=temperature):
|
| 41 |
#print(f"token: {token}")
|
| 42 |
+
text = model.detokenize([token],special=True)
|
| 43 |
#print(f"text detok: {text}")
|
| 44 |
temp += text.decode('utf-8')
|
| 45 |
yield temp
|