mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-14 02:38:50 +02:00
use a portable exit function
This commit is contained in:
+2
-2
@@ -251,13 +251,13 @@ if __name__ == '__main__':
|
||||
|
||||
if argc<2:
|
||||
print("Usage: " + sys.argv[0] + " model_file_q4_0.bin [port]")
|
||||
exit()
|
||||
sys.exit(0)
|
||||
if argc>=3:
|
||||
port = int(sys.argv[2])
|
||||
|
||||
if not os.path.exists(sys.argv[1]):
|
||||
print("Cannot find model file: " + sys.argv[1])
|
||||
exit()
|
||||
sys.exit(0)
|
||||
|
||||
mdl_nparts = 1
|
||||
for n in range(1,9):
|
||||
|
||||
Reference in New Issue
Block a user