Commit a75c5e4 1 parent 4febd2e commit a75c5e4 Copy full SHA for a75c5e4
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,14 @@ def main() -> int:
156
156
print (response )
157
157
if "Ok" in response [0 ].keys ():
158
158
# Check if the number of generated tokens is less than the requested tokens
159
- if response [0 ]["Ok" ]["num_tokens" ] < prompt [' steps' ]:
159
+ if response [0 ]["Ok" ]["num_tokens" ] < prompt [" steps" ]:
160
160
print (f'The end! - num_tokens = { response [0 ]["Ok" ]["num_tokens" ]} ' )
161
161
break
162
162
# Check if the response is an empty string. If it is, break out of the loop.
163
163
if response [0 ]["Ok" ]["inference" ] == "" :
164
- print ("The end! - we got an empty string. THIS IS AN ERROR ACTUALLY. WE SHOULD NOT GET HERE.." )
164
+ print (
165
+ "The end! - we got an empty string. ERROR. WE SHOULD NOT GET HERE.."
166
+ )
165
167
print ("Something went wrong:" )
166
168
sys .exit (1 )
167
169
else :
Original file line number Diff line number Diff line change
1
+ # WIP
2
+
3
+ We are hard at work to port llama.cpp to the Internet Computer as part of a DFINITY Foundation AI grant.
4
+
5
+ Stay tuned...
You can’t perform that action at this time.
0 commit comments