We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 867aa85 commit e311e7dCopy full SHA for e311e7d
convert_hf_to_gguf.py
@@ -1083,8 +1083,8 @@ def _set_vocab_rwkv_world(self):
1083
self.gguf_writer.add_token_types(toktypes)
1084
special_vocab = gguf.SpecialVocab(self.dir_model, load_merges=False)
1085
if special_vocab.chat_template is None:
1086
- template_path = Path(sys.path[0]) / "models" / "templates" / "llama-cpp-rwkv-world.jinja"
1087
- if template_path.exists():
+ template_path = Path(__file__).parent / "models" / "templates" / "llama-cpp-rwkv-world.jinja"
+ if template_path.is_file():
1088
with open(template_path, "r", encoding="utf-8") as f:
1089
template = f.read()
1090
else:
0 commit comments