py : add GPT4All conversion script

For now: copy-paste
Too much time for me to deduplicate the python code
This commit is contained in:
Georgi Gerganov 2023-03-29 19:29:26 +03:00
parent 41318d708e
commit 53635c081c
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
2 changed files with 108 additions and 1 deletions

View file

@ -27,7 +27,7 @@ def write_header(f_out, header):
if magic != 0x67676d6c:
raise Exception('Invalid file magic. Must be an old style ggml file.')
values = [
0x67676d66, # magic: ggml in hex
1, # file version