Parcourir la source

Load the model by name

oobabooga il y a 2 ans
Parent
commit
6837d4d72a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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: