Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

minishlab
/
blink-code-16M

Feature Extraction
Model2Vec
Safetensors
sentence-transformers
code
embeddings
retrieval
static-embeddings
sentence-similarity
Model card Files Files and versions
xet
Community
1

Instructions to use minishlab/blink-code-16M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Model2Vec

    How to use minishlab/blink-code-16M with Model2Vec:

    from model2vec import StaticModel
    
    model = StaticModel.from_pretrained("minishlab/blink-code-16M")
    
    embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."])
    print(embeddings.shape)
  • sentence-transformers

    How to use minishlab/blink-code-16M with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("minishlab/blink-code-16M")
    
    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
blink-code-16M
65.3 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
Pringled's picture
Pringled
Card: feature-extraction and sentence-similarity tags, as the other blink models
7873955 verified about 5 hours ago
  • figures
    Card: CoIR vs RTEB(Code) plot and recipe ablation 4 days ago
  • .gitattributes
    1.58 kB
    Card: CoIR vs RTEB(Code) plot and recipe ablation 4 days ago
  • README.md
    11.6 kB
    Card: feature-extraction and sentence-similarity tags, as the other blink models about 5 hours ago
  • config.json
    89 Bytes
    config: max_length null (no truncation), as the tokenizer 4 days ago
  • model.safetensors
    64 MB
    xet
    Two-round CoIR hard negatives (CodeRankEmbed, then re-mined): CoIR 46.82, RTEB 34.67, CodeEditSearch 49.58 4 days ago
  • modules.json
    291 Bytes
    blink-code-16M weights (exp4) 5 days ago
  • tokenizer.json
    1.13 MB
    blink-code-16M weights (exp4) 5 days ago