rlx-jina-v2-small-sdlc (Stage 1 Pilot v2 β€” 24.6K Real SWE + EN/VI, ONNX INT8)

Fine-tuned 512-dimensional bi-encoder embedding model for rlx β€” SDLC Memory Intelligence, trained with GradCache (CachedMultipleNegativesRankingLoss, effective batch 128, mini-batch 16) on 19,483 real deduplicated SWE + EN/VI SDLC query groups across 3,464 repositories, and exported as an offline-verified dynamic INT8 ONNX model pack (39.18 MB, ALiBi sliced to max_length=512).

Model Details

  • Base Backbone: jinaai/jina-embeddings-v2-small-en (~33M params, Apache-2.0)
  • Dataset: niko0xdev/rlx-sdlc-memory-pilot (v2: SWE-Gym MIT + SWE-rebench CC-BY-4.0 + rlx-curated-pilot-v1 Apache-2.0; zero repo-family overlap)
  • Training: 1 epoch, GradCache effective batch 128 (mini_batch_size=16), LR 2e-5, fp16 AMP on Tesla T4 (812.76 s)
  • Artifact Size: FP32 ONNX 131.84 MB β†’ Dynamic INT8 ONNX 39.18 MB (SHA-256 verified via manifest.json)
  • Source Code: niko0xdev/rlx

Measured Evaluation Results (private_test, full-split retrieval across 2,314 unseen queries / ~4,600 real patches)

Variant Recall@5 Recall@20 NDCG@10 MRR EN NDCG@10 VI NDCG@10 Mixed NDCG@10
Baseline jina-embeddings-v2-small-en (FP32, 2,314 q) 0.7057 0.8608 0.5767 0.5109 0.5826 0.4587 0.5644
Fine-tuned v2 (FP32, 2,314 q) 0.8587 (+15.30 pp) 0.9520 (+9.12 pp) 0.7173 (+14.06 pp) 0.6567 (+14.58 pp) 0.7317 0.4871 0.6134
Fine-tuned v2 (ONNX INT8, 525 stratified q) 0.8133 0.9657 0.6794 0.6077 0.7789 0.5126 0.4372

Offline Rust FastEmbed Parity & CPU Latency (Apple M1 Pro)

Verified offline via RLX_REAL_MODEL_PACKS_DIR=... cargo test -p rlx-inference-fastembed --test real_pack_parity:

  • Python FP32 Golden vs Rust FastEmbed INT8: min_cosine = 0.89817, max_abs_diff = 0.07726.
  • Single-query CPU Latency (Apple M1 Pro): P50 = 6.25 ms, P95 = 10.13 ms.

Usage with rlx

hf download niko0xdev/rlx-jina-v2-small-sdlc --local-dir models/packs/rlx-jina-v2-small-sdlc
rlx-inference-server --model-pack models/packs/rlx-jina-v2-small-sdlc

Limitations

  • Backbone is English-first (jina-embeddings-v2-small-en); while Vietnamese private_test Recall@5 improved from 0.7000 -> 0.9000 (FP32) / 0.8100 (INT8), a multilingual backbone or larger audited VI technical corpus is recommended before making strong Vietnamese production guarantees.
  • Max sequence length is fixed at 512 tokens.
Downloads last month
106
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for niko0xdev/rlx-jina-v2-small-sdlc

Quantized
(9)
this model

Dataset used to train niko0xdev/rlx-jina-v2-small-sdlc