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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

voyageai
/
voyage-4-nano

Feature Extraction
sentence-transformers
Safetensors
Transformers
multilingual
qwen3
text-generation
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community
10

Instructions to use voyageai/voyage-4-nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use voyageai/voyage-4-nano with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("voyageai/voyage-4-nano", 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]
  • Transformers

    How to use voyageai/voyage-4-nano with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="voyageai/voyage-4-nano", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("voyageai/voyage-4-nano", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained("voyageai/voyage-4-nano", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
voyage-4-nano
704 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 10 commits
hongliu9903's picture
hongliu9903
peichengcheng's picture
peichengcheng
Add vllm example to the readme (#8)
67fabc9 5 months ago
  • 1_Pooling
    Integrate with Transformers & Sentence Transformers (#2) 7 months ago
  • docs
    Update README.md 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • LICENSE.txt
    11.3 kB
    Create LICENSE.txt 7 months ago
  • NOTICE.txt
    797 Bytes
    Create NOTICE.txt 7 months ago
  • README.md
    9.82 kB
    Add vllm example to the readme (#8) 5 months ago
  • config.json
    950 Bytes
    framework support via use_bidirectional_attention - Cheers from your friends at Baseten (#3) 6 months ago
  • config_sentence_transformers.json
    378 Bytes
    Integrate with Transformers & Sentence Transformers (#2) 7 months ago
  • merges.txt
    1.67 MB
    Initial Upload 7 months ago
  • model.safetensors
    693 MB
    xet
    Initial Upload 7 months ago
  • modeling_qwen3_bidirectional.py
    3.09 kB
    Integrate with Transformers & Sentence Transformers (#2) 7 months ago
  • modules.json
    349 Bytes
    Integrate with Transformers & Sentence Transformers (#2) 7 months ago
  • sentence_bert_config.json
    59 Bytes
    Integrate with Transformers & Sentence Transformers (#2) 7 months ago
  • tokenizer.json
    7.03 MB
    Initial Upload 7 months ago
  • tokenizer_config.json
    7.23 kB
    Initial Upload 7 months ago
  • vocab.json
    2.78 MB
    Initial Upload 7 months ago