Instructions to use jc-lab/multilingual-e5-small-ko-v2-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jc-lab/multilingual-e5-small-ko-v2-gguf with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jc-lab/multilingual-e5-small-ko-v2-gguf") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - llama-cpp-python
How to use jc-lab/multilingual-e5-small-ko-v2-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jc-lab/multilingual-e5-small-ko-v2-gguf", filename="ggml-model-f16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jc-lab/multilingual-e5-small-ko-v2-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
Use Docker
docker model run hf.co/jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use jc-lab/multilingual-e5-small-ko-v2-gguf with Ollama:
ollama run hf.co/jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
- Unsloth Studio
How to use jc-lab/multilingual-e5-small-ko-v2-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jc-lab/multilingual-e5-small-ko-v2-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jc-lab/multilingual-e5-small-ko-v2-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jc-lab/multilingual-e5-small-ko-v2-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use jc-lab/multilingual-e5-small-ko-v2-gguf with Docker Model Runner:
docker model run hf.co/jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
- Lemonade
How to use jc-lab/multilingual-e5-small-ko-v2-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jc-lab/multilingual-e5-small-ko-v2-gguf:Q4_K_M
Run and chat with the model
lemonade run user.multilingual-e5-small-ko-v2-gguf-Q4_K_M
List all available models
lemonade list
multilingual-e5-small-ko-v2 GGUF
GGUF quantizations for dragonkue/multilingual-e5-small-ko-v2.
Files:
ggml-model-f16.ggufggml-model-q8_0.ggufggml-model-q4_k_m.gguf
Verification
The original SentenceTransformer embeddings were compared against normalized embeddings produced by the GGUF models on 7 mixed Korean/English samples.
Summary:
| Model | Min cosine to original | Mean cosine to original | Max abs cosine-matrix diff |
|---|---|---|---|
FP16 |
0.997235 |
0.998290 |
0.012590 |
Q8_0 |
0.996689 |
0.997856 |
0.014441 |
Q4_K_M |
0.990426 |
0.992091 |
0.022216 |
The full verification output is included in verification_report.json.
Notes
- For
Q4_K_M, some tensors fall back to other quantization types because several tensor widths are not divisible by the block-size requirements ofQ4_K. The file is still the standard mixedQ4_K_Moutput produced byllama-quantize.
llama.cpp
./build/bin/llama-embedding \
-m ggml-model-q8_0.gguf \
-p "query: ์์ธ์์ ๋ง์๋ ๋๋ฉด์ง ์ถ์ฒํด์ค"
llama-cpp-python
import numpy as np
import llama_cpp
from llama_cpp import Llama
llm = Llama(
model_path="ggml-model-q8_0.gguf",
embedding=True,
pooling_type=llama_cpp.LLAMA_POOLING_TYPE_MEAN,
n_ctx=512,
verbose=False,
)
text = "query: ์์ธ์์ ๋ง์๋ ๋๋ฉด์ง ์ถ์ฒํด์ค"
vec = np.array(llm.create_embedding(text)["data"][0]["embedding"], dtype=np.float32)
vec = vec / np.linalg.norm(vec)
print(vec.shape)
Use the query: / passage: prefixes exactly as in the original E5 model.
- Downloads last month
- 163
4-bit
8-bit
16-bit
Model tree for jc-lab/multilingual-e5-small-ko-v2-gguf
Base model
intfloat/multilingual-e5-small