"vscode:/vscode.git/clone" did not exist on "27a6dccc68d138860d8e392f80ebaf856b187f21"
fix: model load for unsupported embedding models (#12311)
with #12181, there's now support for embeddings in ollama engine. this is done by mutating the architecture and adding _embed when it detects an embedding model. however this introduced a bug where if an embedding model was run based on an existing ollama engine model without an embedding implementation, e.g. llama4, it will pass the initial arch support check but fail when actually loaded. there's currently two entrypoints to creating a model. previously this second entrypoint was necessary because calling model.New would also load the model. since #11818, this is no longer th case so merge them to reduce complexity
Showing
Please register or sign in to comment