Feature Extraction
sentence-transformers
ONNX
Safetensors
GGUF
English
code
roberta
python
javascript
go
java
ruby
php
code-search
code-embeddings
multilingual
matryoshka
unixcoder
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use divakantpandey/code-embed-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use divakantpandey/code-embed-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("divakantpandey/code-embed-v2") 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] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use divakantpandey/code-embed-v2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible embeddings server: llama serve -hf divakantpandey/code-embed-v2:Q8_0 --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf divakantpandey/code-embed-v2:Q8_0 --embeddings
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible embeddings server: ./build/bin/llama serve -hf divakantpandey/code-embed-v2:Q8_0 --embeddings
- Llama new
- LM Studio
- Jan
- Ollama
How to use divakantpandey/code-embed-v2 with Ollama:
ollama run hf.co/divakantpandey/code-embed-v2:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use divakantpandey/code-embed-v2 with Docker Model Runner:
docker model run hf.co/divakantpandey/code-embed-v2:Q8_0
- Lemonade
How to use divakantpandey/code-embed-v2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull divakantpandey/code-embed-v2:Q8_0
Run and chat with the model
lemonade run user.code-embed-v2-Q8_0
List all available models
lemonade list
- Atomic Chat
Commit History
4 days ago
-
docs: standardize benchmark claims to 150M category
Verified signatureda00134
14 days ago
-
Upload README.md with huggingface_hub
Verified signature493ad91 -
Upload README.md with huggingface_hub
Verified signature618910d -
Upload Modelfile with huggingface_hub
Verified signature8067597 -
Upload README.md with huggingface_hub
Verified signature4173047 -
Upload code-embed-v2-q8_0.gguf with huggingface_hub
Verified signature136e647 -
Upload onnx/model.onnx with huggingface_hub
Verified signature0b551e8 -
Upload onnx/model_quantized.onnx with huggingface_hub
Verified signature7a22c1e -
Upload model_optimized.onnx with huggingface_hub
Verified signature6a65705 -
Upload onnx/model_int8.onnx with huggingface_hub
Verified signatureb244950
15 days ago
-
docs: sort model-index and scorecard with lower ranks first (Rank #3 on CoREB, #8 on CoIR, #9 on MTEB Code)
Verified signaturecbb8344 -
docs: add top compact rankings (Rank #3 on CoREB, #8 on CoIR, #9 on MTEB Code) and sort lower ranks first
Verified signaturee9c1091
16 days ago
-
docs: update model card with official MTEB leaderboard scores, ranks, and achievements (Oct 23, 2026 snapshot)
Verified signature0fc5236
17 days ago
-
docs: update context window to 8192 tokens in README
Verified signature4692888 -
config: set max_seq_length to 8192 in sentence_bert_config.json
Verified signaturea9f0ffe -
config: set max_seq_length to 8192 in tokenizer_config.json
Verified signaturee35a99d -
docs: sync README with production usage examples and verified MTEB rankings
Verified signaturef967067 -
Update code-embed-v2: Fast Lane fine-tuned weights (+21.52% macro gain across 17 MTEB benchmarks)
Verified signatured7759ca
18 days ago
-
docs: highlight 8,192 token context window in model card
Verified signaturea2c9cd9 -
clean: remove duplicate folders (sentence_transformers, backbone), remove legacy weights, sync max_seq_length to 1024
Verified signaturee3b5ded -
Clean up rng_state.pt
Verified signature5d860cf -
Clean up scheduler.pt
Verified signature8888a75 -
Clean up optimizer.pt
Verified signature7ce0dd2 -
Release CodeEmbed v2: Multilingual code embeddings (MTEB 40.64% NDCG@10)
Verified signatured6d779b
20 days ago
-
Final model checkpoint at step 6314
Verified signature701873f -
Periodic checkpoint at step 6250 (loss=0.00000)
Verified signature5ade9db -
Periodic checkpoint at step 6000 (loss=0.00000)
Verified signature64922be -
Periodic checkpoint at step 5750 (loss=0.00000)
Verified signature5845824 -
Periodic checkpoint at step 5500 (loss=0.00000)
Verified signaturea8cec4c -
Periodic checkpoint at step 5250 (loss=0.00000)
Verified signature2f47ad4 -
Periodic checkpoint at step 5000 (loss=0.00000)
Verified signature02fab16 -
Periodic checkpoint at step 4750 (loss=0.00000)
Verified signatureba2567a -
Periodic checkpoint at step 4500 (loss=0.00000)
Verified signature1462f31 -
Periodic checkpoint at step 4250 (loss=0.00000)
Verified signature6f529d6 -
Periodic checkpoint at step 4000 (loss=0.00000)
Verified signature8c4a66a -
Periodic checkpoint at step 3750 (loss=0.00000)
Verified signature35d8e90 -
Periodic checkpoint at step 3500 (loss=0.00000)
Verified signature3aa4f4a -
Periodic checkpoint at step 3250 (loss=0.00000)
Verified signature3709bf8 -
Periodic checkpoint at step 3000 (loss=0.00000)
Verified signatureb6494e3 -
Periodic checkpoint at step 2750 (loss=0.00000)
Verified signaturef9d543e -
Periodic checkpoint at step 2500 (loss=0.00000)
Verified signature432b45d -
Periodic checkpoint at step 2250 (loss=0.00000)
Verified signature20a4801 -
Periodic checkpoint at step 2000 (loss=0.00000)
Verified signature1793c86 -
Periodic checkpoint at step 1750 (loss=0.00000)
Verified signaturefaa17ba -
Periodic checkpoint at step 1500 (loss=0.00000)
Verified signaturecf3b756 -
Periodic checkpoint at step 1250 (loss=0.00000)
Verified signature553587c -
Periodic checkpoint at step 1000 (loss=0.00000)
Verified signature1f8536e -
Periodic checkpoint at step 750 (loss=0.00006)
Verified signaturedb004cd -
Periodic checkpoint at step 500 (loss=0.00000)
Verified signature56e09b4 -
Periodic checkpoint at step 250 (loss=0.00004)
Verified signature5b52774