mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add more info to custom model error
This commit is contained in:
@@ -26,9 +26,13 @@ class HFInferenceModel(InferenceModel):
|
||||
|
||||
if self.model_name in ["NeoCustom", "GPT2Custom", "TPUMeshTransformerGPTJ", "TPUMeshTransformerGPTNeoX"]:
|
||||
assert utils.koboldai_vars.custmodpth
|
||||
assert os.path.exists(utils.koboldai_vars.custmodpth)
|
||||
|
||||
print("CUSTMODPATH")
|
||||
try:
|
||||
assert os.path.exists(utils.koboldai_vars.custmodpth)
|
||||
except AssertionError:
|
||||
logger.error(f"Custom model at '{utils.koboldai_vars.custmodpth}' doesn't seem to exist")
|
||||
raise
|
||||
|
||||
return utils.koboldai_vars.custmodpth
|
||||
|
||||
basename = utils.koboldai_vars.model.replace("/", "_")
|
||||
|
Reference in New Issue
Block a user