mirror of https://github.com/ollama/ollama
revert granite-embedding (#13505)
This commit is contained in:
parent
45c4739374
commit
f6a016f49d
|
|
@ -157,8 +157,6 @@ func New(c fs.Config) (model.Model, error) {
|
||||||
switch c.String("tokenizer.ggml.model", "bert") {
|
switch c.String("tokenizer.ggml.model", "bert") {
|
||||||
case "bert":
|
case "bert":
|
||||||
processor = model.NewWordPiece(vocab, true)
|
processor = model.NewWordPiece(vocab, true)
|
||||||
case "gpt2":
|
|
||||||
processor = model.NewBytePairEncoding(vocab)
|
|
||||||
default:
|
default:
|
||||||
return nil, model.ErrUnsupportedTokenizer
|
return nil, model.ErrUnsupportedTokenizer
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue