mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-30 06:00:15 +01:00
Update exllama.py - Respect model dir parameter (#2744)
This commit is contained in:
parent
5b4c0155f6
commit
3cae1221d4
@ -17,7 +17,7 @@ class ExllamaModel:
|
||||
@classmethod
|
||||
def from_pretrained(self, path_to_model):
|
||||
|
||||
path_to_model = Path("models") / Path(path_to_model)
|
||||
path_to_model = Path(f'{shared.args.model_dir}') / Path(path_to_model)
|
||||
tokenizer_model_path = path_to_model / "tokenizer.model"
|
||||
model_config_path = path_to_model / "config.json"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user