bert.cpp
bert.cpp copied to clipboard
Bugfix: missing hparam `type_vocab_size`
-
type_vocab_sizeis also a hparam (can not use const as 2). - so does the converter.
Here is some of the model upon bert DO NOT use type_vocab_size=2 but type_vocab_size=1 (like e5).
https://huggingface.co/intfloat/multilingual-e5-base/blob/main/config.json#L25
Hi, This seems like a good change.
But surely bert.cpp:358 also needs to be changed? Where the hparams are read from the model file
Hi, This seems like a good change.
But surely bert.cpp:358 also needs to be changed? Where the hparams are read from the model file
sure, I will add it.