mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-22 03:10:03 +00:00
fixed horde worker flag
This commit is contained in:
parent
7967377ebc
commit
1effe16861
1 changed files with 14 additions and 8 deletions
22
koboldcpp.py
22
koboldcpp.py
|
|
@ -3009,13 +3009,16 @@ def main(launch_args,start_server=True):
|
|||
friendlymodelname = "debug-" + friendlymodelname
|
||||
if not friendlymodelname.startswith("koboldcpp/"):
|
||||
friendlymodelname = "koboldcpp/" + friendlymodelname
|
||||
if args.hordegenlen and args.hordegenlen > 0:
|
||||
maxhordelen = int(args.hordegenlen)
|
||||
if args.hordemaxctx and args.hordemaxctx > 0:
|
||||
maxhordectx = int(args.hordemaxctx)
|
||||
|
||||
if (args.hordemodelname and args.hordemodelname!="") or (args.hordeworkername and args.hordeworkername!="") or (args.hordekey and args.hordekey!=""):
|
||||
if args.debugmode == 0:
|
||||
args.debugmode = -1
|
||||
|
||||
if args.hordegenlen and args.hordegenlen > 0:
|
||||
maxhordelen = int(args.hordegenlen)
|
||||
if args.hordemaxctx and args.hordemaxctx > 0:
|
||||
maxhordectx = int(args.hordemaxctx)
|
||||
|
||||
if args.debugmode != 1:
|
||||
showdebug = False
|
||||
|
||||
|
|
@ -3215,10 +3218,13 @@ def main(launch_args,start_server=True):
|
|||
except:
|
||||
print("--launch was set, but could not launch web browser automatically.")
|
||||
|
||||
if args.hordekey and args.hordekey!="" and args.hordemodelname and args.hordemodelname!="" and args.hordeworkername and args.hordeworkername!="":
|
||||
horde_thread = threading.Thread(target=run_horde_worker,args=(args,args.hordekey,args.hordeworkername))
|
||||
horde_thread.daemon = True
|
||||
horde_thread.start()
|
||||
if args.hordekey and args.hordekey!="":
|
||||
if args.hordeworkername and args.hordeworkername!="":
|
||||
horde_thread = threading.Thread(target=run_horde_worker,args=(args,args.hordekey,args.hordeworkername))
|
||||
horde_thread.daemon = True
|
||||
horde_thread.start()
|
||||
else:
|
||||
print("Horde worker could not start. You need to specify a horde worker name with --hordeworkername")
|
||||
|
||||
#if post-ready script specified, execute it
|
||||
if args.onready:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue