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

Duplicated from  google/embeddinggemma-2

liskasYR
/
embeddinggemma-2

Feature Extraction
Transformers
Safetensors
sentence-transformers
multilingual
embedding_gemma2
embedding
multimodal-embedding
multimodal
vision
audio
video
image-feature-extraction
audio-feature-extraction
video-feature-extraction
sentence-similarity
Model card Files Files and versions
xet
Community

Instructions to use liskasYR/embeddinggemma-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use liskasYR/embeddinggemma-2 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="liskasYR/embeddinggemma-2")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoProcessor, AutoModel
    
    processor = AutoProcessor.from_pretrained("liskasYR/embeddinggemma-2")
    model = AutoModel.from_pretrained("liskasYR/embeddinggemma-2", device_map="auto")
  • sentence-transformers

    How to use liskasYR/embeddinggemma-2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("liskasYR/embeddinggemma-2")
    
    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
embeddinggemma-2
1.53 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
liskasYR's picture
liskasYR
sahildua2305's picture
sahildua2305
Duplicate from google/embeddinggemma-2
93f9e91 about 16 hours ago
  • 1_Pooling
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • 2_Normalize
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • .gitattributes
    1.3 kB
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • README.md
    21.7 kB
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • chat_template.jinja
    1.02 kB
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • config.json
    4.46 kB
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • config_sentence_transformers.json
    1.57 kB
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • model.safetensors
    1.49 GB
    xet
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • modules.json
    413 Bytes
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • preprocessor_config.json
    511 Bytes
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • processor_config.json
    1.79 kB
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • sentence_bert_config.json
    747 Bytes
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • tokenizer.json
    32.2 MB
    xet
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • tokenizer.model
    4.69 MB
    xet
    Duplicate from google/embeddinggemma-2 about 16 hours ago
  • tokenizer_config.json
    1.6 kB
    Duplicate from google/embeddinggemma-2 about 16 hours ago