Shuu12121 / CodeSearch-ModernBERT-Owl-3.0-Plus

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: -7
30-day runs: -11
Model's Last Updated: June 22 2025
sentence-similarity

Introduction of CodeSearch-ModernBERT-Owl-3.0-Plus

Model Details of CodeSearch-ModernBERT-Owl-3.0-Plus

🦉 CodeModernBERT‑Owl 3.0 SentenceTransformer

多言語・長文コードを対象としたエンコーダ CodeModernBERT‑Owl 3.0 をベースに Sentence Transformer(STS)形式で微調整したモデルです。1024 token までのソースコード/自然言語を 768 次元の密ベクトルに写像し、コード検索・類似度計算・クラスタリングなど幅広い下流タスクに活用できます。

A multilingual, long‑context SentenceTransformer fine‑tuned from CodeModernBERT‑Owl 3.0 . It encodes code and natural‑language snippets (≤ 1024 tokens) into 768‑dimensional vectors for semantic search, similarity, clustering, and more.


🔥 ハイライト / Highlights
⚙️ 仕様 値
最大シーケンス長 1024 tokens
埋め込み次元 768 d │ Cosine Similarity
プーリング CLS トークン( pooling_mode_cls_token = True )
学習データ 7,059,200 正例ペア(CodeSearchNet + 自作データセット)
ロス関数 MultipleNegativesRankingLoss ( scale = 20.0 )
学習エポック 3 epochs (@ batch size 200, fp16)
基盤モデル Shuu12121/CodeModernBERT‑Owl 3.0

📊 評価結果 / Evaluation
MTEB CodeSearchNet (CSN) ―
Metric COIR Version CSN
Main Score (NDCG@10) 0.8023 0.8928
NDCG@1 0.7175 0.8125
NDCG@3 0.7795 0.8798
NDCG@5 0.7917 0.8879
NDCG@20 0.8085 0.8950
MAP@10 0.7759 0.8707
Recall@10 0.8839 0.9593
MRR@10 0.7759 0.8707

どちらも公式スコアに提出しているCodeSearch-ModernBERT-Crow-Plusと同等以上の成績を残しています.


🚀 使い方 / Quick Start
from sentence_transformers import SentenceTransformer, util

model = SentenceTransformer("Shuu12121/CodeModernBERT-Owl-3.0-ST")

queries = ["get test root"]
docs = [
    "function getRootPath(){ … }",
    "protected Object parseKeyElement(Element keyEle, …)",
]

q_emb = model.encode(queries, normalize_embeddings=True)
d_emb = model.encode(docs,   normalize_embeddings=True)

scores = util.cos_sim(q_emb, d_emb)
print(scores)

🛠️ ファインチューニング / Fine‑tuning
  • ロス関数 : MultipleNegativesRankingLoss はミニバッチ内のネガティブを暗黙的に構成するため大規模ペア生成が不要。

  • ハイパーパラメータ (主要):

    learning_rate: 5e‑5
    per_device_train_batch_size: 200
    fp16: true
    warmup_ratio: 0.0
    max_grad_norm: 1.0
    

⚖️ ライセンス / License

Apache 2.0

Runs of Shuu12121 CodeSearch-ModernBERT-Owl-3.0-Plus on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
-7
7-day runs
-11
30-day runs

More Information About CodeSearch-ModernBERT-Owl-3.0-Plus huggingface.co Model

More CodeSearch-ModernBERT-Owl-3.0-Plus license Visit here:

https://choosealicense.com/licenses/apache-2.0

CodeSearch-ModernBERT-Owl-3.0-Plus huggingface.co

CodeSearch-ModernBERT-Owl-3.0-Plus huggingface.co is an AI model on huggingface.co that provides CodeSearch-ModernBERT-Owl-3.0-Plus's model effect (), which can be used instantly with this Shuu12121 CodeSearch-ModernBERT-Owl-3.0-Plus model. huggingface.co supports a free trial of the CodeSearch-ModernBERT-Owl-3.0-Plus model, and also provides paid use of the CodeSearch-ModernBERT-Owl-3.0-Plus. Support call CodeSearch-ModernBERT-Owl-3.0-Plus model through api, including Node.js, Python, http.

CodeSearch-ModernBERT-Owl-3.0-Plus huggingface.co Url

https://huggingface.co/Shuu12121/CodeSearch-ModernBERT-Owl-3.0-Plus

Shuu12121 CodeSearch-ModernBERT-Owl-3.0-Plus online free

CodeSearch-ModernBERT-Owl-3.0-Plus huggingface.co is an online trial and call api platform, which integrates CodeSearch-ModernBERT-Owl-3.0-Plus's modeling effects, including api services, and provides a free online trial of CodeSearch-ModernBERT-Owl-3.0-Plus, you can try CodeSearch-ModernBERT-Owl-3.0-Plus online for free by clicking the link below.

Shuu12121 CodeSearch-ModernBERT-Owl-3.0-Plus online free url in huggingface.co:

https://huggingface.co/Shuu12121/CodeSearch-ModernBERT-Owl-3.0-Plus

CodeSearch-ModernBERT-Owl-3.0-Plus install

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

CodeSearch-ModernBERT-Owl-3.0-Plus install url in huggingface.co:

https://huggingface.co/Shuu12121/CodeSearch-ModernBERT-Owl-3.0-Plus

Url of CodeSearch-ModernBERT-Owl-3.0-Plus

CodeSearch-ModernBERT-Owl-3.0-Plus huggingface.co Url

Provider of CodeSearch-ModernBERT-Owl-3.0-Plus huggingface.co

Shuu12121
ORGANIZATIONS

Other API from Shuu12121