Просмотр исходного кода

Fix encoding in python scripts (#7733)

Galunid 1 год назад
Родитель
Сommit
7672adeec7
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      convert-hf-to-gguf-update.py
  2. 1 0
      convert-hf-to-gguf.py

+ 1 - 0
convert-hf-to-gguf-update.py

@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 
 # This script downloads the tokenizer models of the specified models from Huggingface and
 # generates the get_vocab_base_pre() function for convert-hf-to-gguf.py

+ 1 - 0
convert-hf-to-gguf.py

@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 
 from __future__ import annotations