bsca-bge-micro-v2-contrastive-v14-fresh-clean-v3-eb256-t005-e1-384

BSCA ๋ฐ”์ด๋„ˆ๋ฆฌโ†”์†Œ์Šค ํ•จ์ˆ˜ ์ •๋ ฌ์šฉ contrastive ์ž„๋ฒ ๋”ฉ ๋ชจ๋ธ. TaylorAI/bge-micro-v2๋ฅผ ๋””์ปดํŒŒ์ผ ํ•จ์ˆ˜์™€ ์†Œ์Šค ํ•จ์ˆ˜๋ฅผ ๊ฐ™์€ ๊ณต๊ฐ„์— ์ •๋ ฌํ•˜๋„๋ก contrastive ํŒŒ์ธํŠœ๋‹ํ•œ v14 ์ฑ”ํ”ผ์–ธ(epoch-1) ์ฒดํฌํฌ์ธํŠธ์ž…๋‹ˆ๋‹ค.

  • Base: TaylorAI/bge-micro-v2
  • Dataset: Labradorlabs/bsca-binary-source-aligned-v3-clean-v3 (fingerprint 220d988ac0980dca)
  • Embedding dim: 384 (max_length 384)
  • ES vector field: bge_v14_fresh_e1_384_vector

Full-index ์„ฑ๋Šฅ (15M source-function, 120 queries, query_set_id 943346736accac8b)

metric value
source-function MRR 0.16672
Recall@1 / @10 / @100 / @1000 0.133 / 0.250 / 0.342 / 0.392
component MRR 0.17792
component Recall@1 / @10 / @100 0.142 / 0.258 / 0.375

epoch-1 โ†’ ์ฑ”ํ”ผ์–ธ ์Šน๊ฒฉ ์‹œ source-function MRR +47.7% (relative).

Training

  • contrastive batch 256 (physical 256, grad-accum 1), lr 2e-5, warmup 0.05
  • temperature 0.05, bf16, preprocess v5:both:light
  • in-batch hardest-negative margin 0.2 (weight 0.3), explicit safe-HN ๋ฏธ์‚ฌ์šฉ
  • planned 2 epochs, epoch-1 ์Šน๊ฒฉ (epoch-2๋Š” fixed-pool ํ‡ดํ–‰์œผ๋กœ ๊ธฐ๊ฐ)

training_state.pt(์˜ตํ‹ฐ๋งˆ์ด์ €ยท์Šค์ผ€์ค„๋ŸฌยทRNG ์ƒํƒœ)๊ฐ€ ํฌํ•จ๋˜์–ด epoch-2 strict resume๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

Usage

import torch, torch.nn.functional as F
from transformers import AutoModel, AutoTokenizer

name = "Labradorlabs/bsca-bge-micro-v2-contrastive-v14-fresh-clean-v3-eb256-t005-e1-384"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModel.from_pretrained(name).eval()

def embed(texts):
    enc = tok(texts, padding=True, truncation=True, max_length=384, return_tensors="pt")
    with torch.no_grad():
        out = model(**enc)
    emb = out.last_hidden_state[:, 0]  # CLS
    return F.normalize(emb, p=2, dim=1)
Downloads last month
99
Safetensors
Model size
17.4M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Labradorlabs/bsca-bge-micro-v2-contrastive-v14-fresh-clean-v3-eb256-t005-e1-384

Finetuned
(14)
this model