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

ML-Intern-lab
/
embeddinggemma2-nli-lora-poc

Feature Extraction
PEFT
Safetensors
sentence-transformers
embedding_gemma2
ml-intern
sentence-similarity
lora
Model card Files Files and versions
xet
Community

Instructions to use ML-Intern-lab/embeddinggemma2-nli-lora-poc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use ML-Intern-lab/embeddinggemma2-nli-lora-poc with PEFT:

    from peft import PeftModel
    from transformers import AutoModel
    
    base_model = AutoModel.from_pretrained("google/embeddinggemma-2")
    model = PeftModel.from_pretrained(base_model, "ML-Intern-lab/embeddinggemma2-nli-lora-poc")
  • sentence-transformers

    How to use ML-Intern-lab/embeddinggemma2-nli-lora-poc with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("ML-Intern-lab/embeddinggemma2-nli-lora-poc")
    
    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
embeddinggemma2-nli-lora-poc
20.2 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
abidlabs's picture
abidlabs HF Staff
Remove redundant 1.5GB full-model copy; trained LoRA weights verified in adapter_model.safetensors (all 168 lora_B non-zero)
dc2d174 verified 24 days ago
  • .gitattributes
    1.52 kB
    initial commit 24 days ago
  • README.md
    3 kB
    Update model card: adapter-only package 24 days ago
  • adapter_config.json
    1.16 kB
    Upload folder using huggingface_hub 24 days ago
  • adapter_model.safetensors
    20.2 MB
    xet
    Upload folder using huggingface_hub 24 days ago
  • config.json
    4.47 kB
    Upload folder using huggingface_hub 24 days ago