Skip to content

Commit

Permalink
scribe: allow and report multiple threads (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
g4rg authored Oct 4, 2023
1 parent e715123 commit 6a119e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions worker/bridge_data/scribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def reload_data(self):
super().reload_data()
if hasattr(self, "scribe_name") and not self.args.worker_name:
self.worker_name = self.scribe_name
# KAI doesn't support multiple threads
self.max_threads = 1
if args.kai_url:
self.kai_url = args.kai_url
if args.sfw:
Expand Down
1 change: 1 addition & 0 deletions worker/jobs/poppers.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def __init__(self, mm, bd):
"priority_usernames": self.bridge_data.priority_usernames,
"softprompts": self.bridge_data.softprompts[self.bridge_data.model],
"bridge_agent": self.BRIDGE_AGENT,
"threads": self.bridge_data.max_threads,
}

def horde_pop(self):
Expand Down

0 comments on commit 6a119e7

Please sign in to comment.