Quantized and unquantized embedding models in GGUF format for use with
llama.cpp
. A large benefit over
transformers
is almost guaranteed and the benefit over ONNX will vary based on the application, but this seems to provide a large speedup on CPU and a modest speedup on GPU for larger models. Due to the relatively small size of these models, quantization will not provide huge benefits, but it does generate up to a 30% speedup on CPU with minimal loss in accuracy.
These model files can be used with pure
llama.cpp
or with the
llama-cpp-python
Python bindings
from llama_cpp import Llama
model = Llama(gguf_path, embedding=True)
embed = model.embed(texts)
Here
texts
can either be a string or a list of strings, and the return value is a list of embedding vectors. The inputs are grouped into batches automatically for efficient execution. There is also LangChain integration through
langchain_community.embeddings.LlamaCppEmbeddings
.
Runs of CompendiumLabs bge-base-zh-v1.5-gguf on huggingface.co
440
Total runs
13
24-hour runs
45
3-day runs
14
7-day runs
102
30-day runs
More Information About bge-base-zh-v1.5-gguf huggingface.co Model
bge-base-zh-v1.5-gguf huggingface.co is an AI model on huggingface.co that provides bge-base-zh-v1.5-gguf's model effect (), which can be used instantly with this CompendiumLabs bge-base-zh-v1.5-gguf model. huggingface.co supports a free trial of the bge-base-zh-v1.5-gguf model, and also provides paid use of the bge-base-zh-v1.5-gguf. Support call bge-base-zh-v1.5-gguf model through api, including Node.js, Python, http.
bge-base-zh-v1.5-gguf huggingface.co is an online trial and call api platform, which integrates bge-base-zh-v1.5-gguf's modeling effects, including api services, and provides a free online trial of bge-base-zh-v1.5-gguf, you can try bge-base-zh-v1.5-gguf online for free by clicking the link below.
CompendiumLabs bge-base-zh-v1.5-gguf online free url in huggingface.co:
bge-base-zh-v1.5-gguf is an open source model from GitHub that offers a free installation service, and any user can find bge-base-zh-v1.5-gguf on GitHub to install. At the same time, huggingface.co provides the effect of bge-base-zh-v1.5-gguf install, users can directly use bge-base-zh-v1.5-gguf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bge-base-zh-v1.5-gguf install url in huggingface.co: