mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-16 06:13:09 +00:00
convert scripts: fix AutoConfig typo (#1512)
This commit is contained in:
parent
10f9b49313
commit
22de3c56bd
@ -45,7 +45,7 @@ gguf_writer = gguf.GGUFWriter(fname_out, gguf.MODEL_ARCH_NAMES[ARCH])
|
|||||||
|
|
||||||
print("gguf: get model metadata")
|
print("gguf: get model metadata")
|
||||||
|
|
||||||
config = AutoConfig(dir_model)
|
config = AutoConfig.from_pretrained(dir_model)
|
||||||
|
|
||||||
block_count = config.num_hidden_layers
|
block_count = config.num_hidden_layers
|
||||||
gguf_writer.add_name("BERT")
|
gguf_writer.add_name("BERT")
|
||||||
|
@ -43,7 +43,7 @@ gguf_writer = gguf.GGUFWriter(fname_out, gguf.MODEL_ARCH_NAMES[ARCH])
|
|||||||
|
|
||||||
print("gguf: get model metadata")
|
print("gguf: get model metadata")
|
||||||
|
|
||||||
config = AutoConfig(dir_model)
|
config = AutoConfig.from_pretrained(dir_model)
|
||||||
|
|
||||||
block_count = config.n_layers
|
block_count = config.n_layers
|
||||||
gguf_writer.add_name("Replit")
|
gguf_writer.add_name("Replit")
|
Loading…
Reference in New Issue
Block a user