jinaai / jina-code-embeddings-0.5b-GGUF

huggingface.co
Total runs: 859
24-hour runs: 0
7-day runs: -25
30-day runs: 277
Model's Last Updated: September 04 2025

Introduction of jina-code-embeddings-0.5b-GGUF

Model Details of jina-code-embeddings-0.5b-GGUF

Jina AI: Your Search Foundation, Supercharged!

The GGUF version of the code embedding model trained by Jina AI .

Jina Code Embeddings: A Small but Performant Code Embedding Model

Intended Usage & Model Info

jina-code-embeddings-0.5b-GGUF is the GGUF export of our jina-code-embeddings-0.5b , built on Qwen/Qwen2.5-Coder-0.5B .

The model supports code retrieval and technical QA across 15+ programming languages and multiple domains, including web development, software development, machine learning, data science, and educational coding problems.

Key Features
Feature Jina Code Embeddings 0.5B GGUF
Base Model Qwen2.5-Coder-0.5B
Supported Tasks nl2code , code2code , code2nl , code2completion , qa
Max Sequence Length 32768 ( recommended ≤ 8192 )
Embedding Vector Dim 896
Matryoshka Dimensions 64, 128, 256, 512, 896 ( client-side slice )
Pooling Strategy MUST use --pooling last (EOS)

Matryoshka note: llama.cpp always returns 896-d embeddings for this model. To use 64/128/256/512, slice client-side (e.g., take the first k elements).


Task Instructions

Prefix inputs with task-specific instructions:

INSTRUCTION_CONFIG = {
  "nl2code": {
    "query": "Find the most relevant code snippet given the following query:\n",
    "passage": "Candidate code snippet:\n"
  },
  "qa": {
    "query": "Find the most relevant answer given the following question:\n",
    "passage": "Candidate answer:\n"
  },
  "code2code": {
    "query": "Find an equivalent code snippet given the following code snippet:\n",
    "passage": "Candidate code snippet:\n"
  },
  "code2nl": {
    "query": "Find the most relevant comment given the following code snippet:\n",
    "passage": "Candidate comment:\n"
  },
  "code2completion": {
    "query": "Find the most relevant completion given the following start of code snippet:\n",
    "passage": "Candidate completion:\n"
  }
}

Use the appropriate prefix for queries and passages at inference time.


Install llama.cpp

Follow the official instructions: https://github.com/ggml-org/llama.cpp


Model files

Hugging Face repo (GGUF): https://huggingface.co/jinaai/jina-code-embeddings-0.5b-GGUF

Pick a file (e.g., jina-code-embeddings-0.5b-F16.gguf ). You can either:

  • auto-download by passing the repo and file directly to llama.cpp
  • use a local path with -m

A) CLI embeddings with llama-embedding
Auto-download from Hugging Face (repo + file)
./llama-embedding \
  --hf-repo jinaai/jina-code-embeddings-0.5b-GGUF \
  --hf-file jina-code-embeddings-0.5b-F16.gguf \
  --pooling last \
  -p "Find the most relevant code snippet given the following query:
print hello world in python"
Local file
./llama-embedding \
  -m /path/to/jina-code-embeddings-0.5b-F16.gguf \
  --pooling last \
  -p "Find the most relevant code snippet given the following query:
print hello world in python"

Outputs a single 896-d vector to stdout. For smaller sizes, slice client-side.


B) HTTP service with llama-server
Auto-download from Hugging Face (repo + file)
./llama-server \
  --embedding \
  --hf-repo jinaai/jina-code-embeddings-0.5b-GGUF \
  --hf-file jina-code-embeddings-0.5b-F16.gguf \
  --host 0.0.0.0 \
  --port 8080 \
  --ctx-size 32768 \
  --ubatch-size 8192 \
  --pooling last
Local file
./llama-server \
  --embedding \
  -m /path/to/jina-code-embeddings-0.5b-F16.gguf \
  --host 0.0.0.0 \
  --port 8080 \
  --ctx-size 32768 \
  --ubatch-size 8192 \
  --pooling last

Tips: -ngl <N> to offload layers to GPU. Max context is 32768 but stick to --ubatch-size ≤ 8192 for best results.


Query examples (HTTP)
Native endpoint ( /embedding )
curl -X POST http://localhost:8080/embedding \
  -H "Content-Type: application/json" \
  -d '{
        "content": [
          "Find the most relevant code snippet given the following query:\nprint hello world in python",
          "Candidate code snippet:\nprint(\"Hello World!\")"
        ]
      }'
OpenAI-compatible ( /v1/embeddings )
curl http://localhost:8080/v1/embeddings \
  -H "Content-Type: application/json" \
  -d '{
        "input": [
          "Find the most relevant code snippet given the following query:\nprint hello world in python",
          "Candidate code snippet:\nprint(\"Hello World!\")"
        ]
      }'

Training & Evaluation

See our technical report: https://arxiv.org/abs/2508.21290


Contact

Join our Discord: https://discord.jina.ai

Runs of jinaai jina-code-embeddings-0.5b-GGUF on huggingface.co

859
Total runs
0
24-hour runs
-24
3-day runs
-25
7-day runs
277
30-day runs

More Information About jina-code-embeddings-0.5b-GGUF huggingface.co Model

More jina-code-embeddings-0.5b-GGUF license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

jina-code-embeddings-0.5b-GGUF huggingface.co

jina-code-embeddings-0.5b-GGUF huggingface.co is an AI model on huggingface.co that provides jina-code-embeddings-0.5b-GGUF's model effect (), which can be used instantly with this jinaai jina-code-embeddings-0.5b-GGUF model. huggingface.co supports a free trial of the jina-code-embeddings-0.5b-GGUF model, and also provides paid use of the jina-code-embeddings-0.5b-GGUF. Support call jina-code-embeddings-0.5b-GGUF model through api, including Node.js, Python, http.

jina-code-embeddings-0.5b-GGUF huggingface.co Url

https://huggingface.co/jinaai/jina-code-embeddings-0.5b-GGUF

jinaai jina-code-embeddings-0.5b-GGUF online free

jina-code-embeddings-0.5b-GGUF huggingface.co is an online trial and call api platform, which integrates jina-code-embeddings-0.5b-GGUF's modeling effects, including api services, and provides a free online trial of jina-code-embeddings-0.5b-GGUF, you can try jina-code-embeddings-0.5b-GGUF online for free by clicking the link below.

jinaai jina-code-embeddings-0.5b-GGUF online free url in huggingface.co:

https://huggingface.co/jinaai/jina-code-embeddings-0.5b-GGUF

jina-code-embeddings-0.5b-GGUF install

jina-code-embeddings-0.5b-GGUF is an open source model from GitHub that offers a free installation service, and any user can find jina-code-embeddings-0.5b-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of jina-code-embeddings-0.5b-GGUF install, users can directly use jina-code-embeddings-0.5b-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

jina-code-embeddings-0.5b-GGUF install url in huggingface.co:

https://huggingface.co/jinaai/jina-code-embeddings-0.5b-GGUF

Url of jina-code-embeddings-0.5b-GGUF

jina-code-embeddings-0.5b-GGUF huggingface.co Url

Provider of jina-code-embeddings-0.5b-GGUF huggingface.co

jinaai
ORGANIZATIONS

Other API from jinaai

huggingface.co

Total runs: 80.9K
Run Growth: -29.0K
Growth Rate: -35.91%
Updated:April 08 2026
huggingface.co

Total runs: 72.8K
Run Growth: -151.6K
Growth Rate: -208.22%
Updated:August 20 2026
huggingface.co

Total runs: 68.2K
Run Growth: -45.2K
Growth Rate: -66.25%
Updated:April 08 2026
huggingface.co

Total runs: 3.1K
Run Growth: 1.7K
Growth Rate: 54.06%
Updated:September 18 2026
huggingface.co

Total runs: 1.5K
Run Growth: 378
Growth Rate: 25.82%
Updated:March 04 2025
huggingface.co

Total runs: 1.3K
Run Growth: 785
Growth Rate: 61.81%
Updated:April 03 2026
huggingface.co

Total runs: 271
Run Growth: 16
Growth Rate: 5.90%
Updated:December 17 2025