mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-12 16:29:44 +00:00
convert : fix invalid params in write_vocab_only (#1975)
This commit is contained in:
parent
f2c754e1c3
commit
c943d823c1
1 changed files with 2 additions and 2 deletions
|
@ -998,9 +998,9 @@ class OutputFile:
|
||||||
def write_vocab_only(fname_out: Path, vocab: Vocab) -> None:
|
def write_vocab_only(fname_out: Path, vocab: Vocab) -> None:
|
||||||
of = OutputFile(fname_out)
|
of = OutputFile(fname_out)
|
||||||
params = Params(n_vocab=vocab.vocab_size, n_embd=0, n_mult=0,
|
params = Params(n_vocab=vocab.vocab_size, n_embd=0, n_mult=0,
|
||||||
n_head=1, n_layer=0, file_type=GGMLFileType.AllF32)
|
n_head=1, n_layer=0)
|
||||||
of = OutputFile(fname_out)
|
of = OutputFile(fname_out)
|
||||||
of.write_file_header(params)
|
of.write_file_header(params, file_type=GGMLFileType.AllF32)
|
||||||
of.write_vocab(vocab)
|
of.write_vocab(vocab)
|
||||||
of.fout.close()
|
of.fout.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue