sentence-transformers
Safetensors
English
nomic_bert
flash-attention
code-retrieval
nomic-bert
bf16
custom_code
Instructions to use handwoven8588/CodeRankEmbed-flash-attn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use handwoven8588/CodeRankEmbed-flash-attn with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("handwoven8588/CodeRankEmbed-flash-attn", trust_remote_code=True) 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
Commit History
28 days ago
-
Card: long-format tables (model / attention / compiled); cornstack only
Verified signature2ea1968 -
Card: one GPU (RTX 3090 Ti); tables without the 5090 columns
Verified signaturec417c7a
29 days ago
-
Card: every comparison against nomic-ai/CodeRankEmbed; plain wording; citation fixed
Verified signature7e68637 -
Padding-free encoder, flattening opt-in, torch.compile recipe; card measured on public corpora (#1)
- Padding-free encoder, flattening opt-in, torch.compile recipe; card measured on public corpora (ee5869f4dc3a6e83f1fd16ba667b4bb9ce8078da) - Card: three charts, full tables folded; trim two Behavior bullets (6aca1e607a6d624dbaa56ef6a9c7fc66213749d7) - Card: cut the charts; three compact tables (3984746057bf343176c6f31fbd66047057bb018e)540e0bb
30 days ago
-
Card: parity table at 1954de4 and real-document results at the model defaults
Verified signature5265f03
-
Card: table generated from idle-bracketed gate runs at 1954de4; state what encode peak measures and how much wall time varies
Verified signatured1021c8 -
Pin weights to the requested revision; harden the varlen probe; card: all tiers measured on one GPU with stated batch sizes
Verified signature1954de4
-
Auto mode probes the varlen kernel and falls back; eager accepts a 2-D mask
Verified signature4c04d49 -
Three-tier attention: torch varlen, flash_attn, eager (inline mask)
Verified signature8187d6a
-
README: drop pipeline_tag (feature-extraction)
Verified signaturee361c6f -
README: reframe bf16 weights — reason is flash_attn half-precision + runtime-bf16 (not download size)
Verified signatureaa2548a -
README pass: base_model_relation=quantized, fix CPU-eager wording (bf16, not bit-identical), drop internal refs + first-person plural
Verified signature7961156 -
README: fill 3090 Ti perf table (bf16 flash 2.1GB/162k tok/s vs fp32 eager 6.7GB/52k tok/s; cosine 0.9986)
Verified signatureb283422 -
v2: bf16 weights (547->274MB) + from_pretrained torch_dtype fix (loads bf16 natively) + corrected model tree (base_model=nomic-ai/CodeRankEmbed only) + bf16-derivative README
Verified signature581207a
-
CodeRankEmbed with native flash-attn varlen forward (derivative of nomic-ai/CodeRankEmbed; identical weights; flash-vs-fp32 parity cosine 0.99999, eager fallback bit-identical)
Verified signature22d2b3c