Instructions to use herMaster/jina-code-embeddings-1.5b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use herMaster/jina-code-embeddings-1.5b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="herMaster/jina-code-embeddings-1.5b-GGUF", filename="jina-code-embeddings-1.5b.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use herMaster/jina-code-embeddings-1.5b-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf herMaster/jina-code-embeddings-1.5b-GGUF # Run inference directly in the terminal: llama-cli -hf herMaster/jina-code-embeddings-1.5b-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf herMaster/jina-code-embeddings-1.5b-GGUF # Run inference directly in the terminal: llama-cli -hf herMaster/jina-code-embeddings-1.5b-GGUF
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 herMaster/jina-code-embeddings-1.5b-GGUF # Run inference directly in the terminal: ./llama-cli -hf herMaster/jina-code-embeddings-1.5b-GGUF
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 herMaster/jina-code-embeddings-1.5b-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf herMaster/jina-code-embeddings-1.5b-GGUF
Use Docker
docker model run hf.co/herMaster/jina-code-embeddings-1.5b-GGUF
- LM Studio
- Jan
- Ollama
How to use herMaster/jina-code-embeddings-1.5b-GGUF with Ollama:
ollama run hf.co/herMaster/jina-code-embeddings-1.5b-GGUF
- Unsloth Studio new
How to use herMaster/jina-code-embeddings-1.5b-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 herMaster/jina-code-embeddings-1.5b-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 herMaster/jina-code-embeddings-1.5b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for herMaster/jina-code-embeddings-1.5b-GGUF to start chatting
- Docker Model Runner
How to use herMaster/jina-code-embeddings-1.5b-GGUF with Docker Model Runner:
docker model run hf.co/herMaster/jina-code-embeddings-1.5b-GGUF
- Lemonade
How to use herMaster/jina-code-embeddings-1.5b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull herMaster/jina-code-embeddings-1.5b-GGUF
Run and chat with the model
lemonade run user.jina-code-embeddings-1.5b-GGUF-{{QUANT_TAG}}List all available models
lemonade list
π§ jina-code-embeddings-1.5b β GGUF
This repository provides GGUF-format builds of
Jina AIβs jina-code-embeddings-1.5b for efficient local inference using:
- llama.cpp
- LM Studio
- Ollama
- KoboldCpp
- any GGUF-compatible runtime
These files allow you to run a state-of-the-art code embedding model locally on CPU or GPU without PyTorch.
πΉ Model files
| File | Description |
|---|---|
jina-code-embeddings-1.5b.gguf |
Full precision conversion |
π Original model
This is a format conversion only of the original Jina AI model:
Upstream model:
https://huggingface.co/jinaai/jina-code-embeddings-1.5b
Paper:
Efficient Code Embeddings from Code Generation Models (Kryvosheieva et al., 2025)
All model weights, training, and research belong to Jina AI.
This repository only provides GGUF format conversions by herMaster.
π§© What this model does
This is a code embedding model, not a chat LLM.
It generates vector embeddings for:
- Text β Code search
- Code β Code similarity
- Code β Text explanation
- Code completion retrieval
- Technical Q&A
It supports 15+ programming languages and produces 1536-dimensional embeddings (which can be truncated for smaller vectors).
β οΈ Important: GGUF usage notes
Unlike the original Transformers version, GGUF engines do not apply instruction prefixes or pooling automatically.
To get correct embeddings you must:
- Add the correct instruction prefix
- Run inference
- Use the last token embedding as the vector
Example (NL β Code)
Query:
Find the most relevant code snippet given the following query:
print hello world in python
Candidate code:
Candidate code snippet:
print("Hello world")
If you do not include the instruction text, embedding quality will be significantly worse.
π llama.cpp example (https://github.com/ggml-org/llama.cpp)
./llama-embedding \
-m jina-code-embeddings-1.5b.gguf \
-p "Find the most relevant code snippet given the following query:
print hello world in python"
This returns a 1536-dimension vector you can store in FAISS, Qdrant, Milvus, etc.
π License
This model is licensed under:
Creative Commons Attribution-NonCommercial 4.0 (CC-BY-NC-4.0)
You may:
- Use it for research
- Use it for personal projects
- Share it freely
You may not:
- Use it in commercial products
- Run it in paid APIs or SaaS
- Sell access to it
This license is inherited from the original Jina AI release.
π Credits
- Model & training: Jina AI
- GGUF conversion: herMaster
All model weights, architecture, and training data belong to Jina AI. This repository only provides format-converted GGUF files for easier local inference.
If you use this model in academic or technical work, please cite the original Jina AI paper:
Efficient Code Embeddings from Code Generation Models Daria Kryvosheieva, Saba Sturua, Michael GΓΌnther, Scott Martens, Han Xiao (2025)
This ensures proper credit is given to the original authors and helps support continued research in high-quality code embeddings.
- Downloads last month
- 14
We're not able to determine the quantization variants.
Model tree for herMaster/jina-code-embeddings-1.5b-GGUF
Base model
Qwen/Qwen2.5-1.5B