Browse Source

Fix encoding in python scripts (#7733)

Galunid 1 year ago
parent
commit
7672adeec7
2 changed files with 2 additions and 0 deletions
  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
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 
 
 # This script downloads the tokenizer models of the specified models from Huggingface and
 # 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
 # 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
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 
 
 from __future__ import annotations
 from __future__ import annotations