mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 08:44:57 +02:00
multiuser default 10
This commit is contained in:
+3
-2
@@ -62,6 +62,7 @@ default_genlen = 1024
|
||||
overridekv_max = 16
|
||||
default_autofit_padding = 1024
|
||||
lora_filenames_max = 4
|
||||
multiuser_concurrent_limit = 10
|
||||
|
||||
# abuse prevention
|
||||
stop_token_max = 256
|
||||
@@ -5801,8 +5802,8 @@ Change Mode<br>
|
||||
muint = int(args.multiuser)
|
||||
if muint<=0 and ((args.whispermodel and args.whispermodel!="") or (args.sdmodel and args.sdmodel!="") or (args.ttsmodel and args.ttsmodel!="") or (args.embeddingsmodel and args.embeddingsmodel!="")):
|
||||
muint = 2 # this prevents errors when using voice/img together with text
|
||||
multiuserlimit = ((muint-1) if muint > 1 else 6)
|
||||
#backwards compatibility for up to 7 concurrent requests, use default limit of 7 if multiuser set to 1
|
||||
multiuserlimit = ((muint-1) if muint > 1 else multiuser_concurrent_limit)
|
||||
#backwards compatibility for up to X concurrent requests, use default limit of X if multiuser set to 1
|
||||
if muint > 0 and requestsinqueue < multiuserlimit:
|
||||
reqblocking = True
|
||||
requestsinqueue += 1
|
||||
|
||||
Reference in New Issue
Block a user