mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix generating before first core generate
This commit is contained in:
@@ -5710,7 +5710,10 @@ def torch_raw_generate(
|
||||
koboldai_vars.inference_config.stop_at_genamt = do_dynamic_wi
|
||||
|
||||
# Makes stopping criteria hook happy
|
||||
model.kai_scanner_excluded_world_info = model.kai_scanner_excluded_world_info or set()
|
||||
try:
|
||||
model.kai_scanner_excluded_world_info = model.kai_scanner_excluded_world_info
|
||||
except AttributeError:
|
||||
model.kai_scanner_excluded_world_info = set()
|
||||
|
||||
logger.debug("torch_raw_generate: setup inference_config {}s".format(time.time()-start_time))
|
||||
|
||||
|
Reference in New Issue
Block a user