mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-23 21:18:00 +01:00
Load the model by name
This commit is contained in:
parent
f871971de1
commit
6837d4d72a
@ -81,7 +81,7 @@ def load_model(model_name):
|
||||
elif shared.is_RWKV:
|
||||
from modules.RWKV import load_RWKV_model
|
||||
|
||||
return load_RWKV_model(Path('models/RWKV-4-Pile-169M-20220807-8023.pth')), None
|
||||
return load_RWKV_model(Path(f'models/{model_name}')), None
|
||||
|
||||
# Custom
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user