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

  • Log In
  • Sign Up

infly
/
inf-retriever-v1

Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
Chinese
qwen2
feature-extraction
mteb
custom_code
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
6

Instructions to use infly/inf-retriever-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use infly/inf-retriever-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("infly/inf-retriever-v1", trust_remote_code=True)
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use infly/inf-retriever-v1 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("infly/inf-retriever-v1", trust_remote_code=True)
    model = AutoModel.from_pretrained("infly/inf-retriever-v1", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
inf-retriever-v1
Ctrl+K
Ctrl+K
  • 4 contributors
History: 35 commits
Mosaic-glasses's picture
Mosaic-glasses
Update config.json
6c5b3f3 verified 4 months ago
  • 1_Pooling
    Upload 4 files over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    149 kB
    Update README.md 4 months ago
  • added_tokens.json
    80 Bytes
    Upload 10 files over 1 year ago
  • config.json
    873 Bytes
    Update config.json 4 months ago
  • config_sentence_transformers.json
    284 Bytes
    Upload 4 files over 1 year ago
  • merges.txt
    1.67 MB
    Upload 10 files over 1 year ago
  • model-00001-of-00003.safetensors
    4.87 GB
    xet
    Upload bf16 version over 1 year ago
  • model-00002-of-00003.safetensors
    4.93 GB
    xet
    Upload bf16 version over 1 year ago
  • model-00003-of-00003.safetensors
    4.33 GB
    xet
    Upload bf16 version over 1 year ago
  • model.safetensors.index.json
    25.7 kB
    Upload bf16 version over 1 year ago
  • modeling_qwen.py
    67.6 kB
    Update modeling_qwen.py (#5) 9 months ago
  • modules.json
    349 Bytes
    Upload 4 files over 1 year ago
  • sentence_bert_config.json
    56 Bytes
    Update sentence_bert_config.json over 1 year ago
  • special_tokens_map.json
    370 Bytes
    Upload 10 files over 1 year ago
  • tokenization_qwen.py
    10.8 kB
    Upload 10 files over 1 year ago
  • tokenizer.json
    7.03 MB
    Upload 10 files over 1 year ago
  • tokenizer_config.json
    1.33 kB
    Upload 10 files over 1 year ago
  • vocab.json
    2.78 MB
    Upload 10 files over 1 year ago