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

blachang28
/
my-embedding-gemma

Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
dense
Generated from Trainer
dataset_size:2680
loss:MultipleNegativesRankingLoss
Model card Files Files and versions
xet
Community

Instructions to use blachang28/my-embedding-gemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use blachang28/my-embedding-gemma with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("blachang28/my-embedding-gemma")
    
    sentences = [
        "Let $A, M,$ and $C$ be nonnegative integers such that $A + M + C = 12$. What is the maximum value of $A \\cdot M \\cdot C + A \\cdot M + M \\cdot C + A \\cdot C$?",
        "Given that $2^{2004}$ is a $604$-digit number whose first digit is $1$, how many elements of the set $S = \\{2^0,2^1,2^2,\\ldots ,2^{2003}\\}$ have a first digit of $4$?",
        "To complete the grid below, each of the digits 1 through 4 must occur once in each row and once in each column. What number will occupy the lower right-hand square? \\[\\begin{tabular}{|c|c|c|c|}\\hline 1 & & 2 &\\\\ \\hline 2 & 3 & &\\\\ \\hline & &&4\\\\ \\hline & &&\\\\ \\hline\\end{tabular}\\]",
        "Two non-zero real numbers, $a$ and $b,$ satisfy $ab = a - b$. Which of the following is a possible value of $\\frac {a}{b} + \\frac {b}{a} - ab$?"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
my-embedding-gemma
1.27 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
blachang28's picture
blachang28
Add new SentenceTransformer model
99fe6cb verified 6 months ago
  • 1_Pooling
    Add new SentenceTransformer model 6 months ago
  • 2_Dense
    Add new SentenceTransformer model 6 months ago
  • 3_Dense
    Add new SentenceTransformer model 6 months ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model 6 months ago
  • README.md
    21.4 kB
    Add new SentenceTransformer model 6 months ago
  • added_tokens.json
    35 Bytes
    Add new SentenceTransformer model 6 months ago
  • config.json
    1.48 kB
    Add new SentenceTransformer model 6 months ago
  • config_sentence_transformers.json
    992 Bytes
    Add new SentenceTransformer model 6 months ago
  • model.safetensors
    1.21 GB
    xet
    Add new SentenceTransformer model 6 months ago
  • modules.json
    573 Bytes
    Add new SentenceTransformer model 6 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 6 months ago
  • special_tokens_map.json
    662 Bytes
    Add new SentenceTransformer model 6 months ago
  • tokenizer.json
    33.4 MB
    xet
    Add new SentenceTransformer model 6 months ago
  • tokenizer.model
    4.69 MB
    xet
    Add new SentenceTransformer model 6 months ago
  • tokenizer_config.json
    1.16 MB
    Add new SentenceTransformer model 6 months ago