mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-29 10:59:32 +01:00
Fix RWKV paths on Windows (attempt)
This commit is contained in:
parent
955cf431e8
commit
449116a510
@ -25,8 +25,8 @@ class RWKVModel:
|
|||||||
def from_pretrained(self, path, dtype="fp16", device="cuda"):
|
def from_pretrained(self, path, dtype="fp16", device="cuda"):
|
||||||
tokenizer_path = Path(f"{path.parent}/20B_tokenizer.json")
|
tokenizer_path = Path(f"{path.parent}/20B_tokenizer.json")
|
||||||
|
|
||||||
model = RWKV(model=path.as_posix(), strategy=f'{device} {dtype}')
|
model = RWKV(model=os.path.abspath(path), strategy=f'{device} {dtype}')
|
||||||
pipeline = PIPELINE(model, tokenizer_path.as_posix())
|
pipeline = PIPELINE(model, os.path.abspath(tokenizer_path))
|
||||||
|
|
||||||
result = self()
|
result = self()
|
||||||
result.pipeline = pipeline
|
result.pipeline = pipeline
|
||||||
|
Loading…
Reference in New Issue
Block a user