Explorar o código

Load the model by name

oobabooga %!s(int64=2) %!d(string=hai) anos
pai
achega
6837d4d72a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/models.py

+ 1 - 1
modules/models.py

@@ -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: