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
/
poc-gemma

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

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

  • Libraries
  • sentence-transformers

    How to use blachang28/poc-gemma with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("blachang28/poc-gemma")
    
    sentences = [
        "Alice and Bob play a game involving a circle whose circumference is divided by 12 equally-spaced points. The points are numbered clockwise, from 1 to 12. Both start on point 12. Alice moves clockwise and Bob, counterclockwise. In a turn of the game, Alice moves 5 points clockwise and Bob moves 9 points counterclockwise. The game ends when they stop on the same point. How many turns will this take?",
        "How many distinct triangles can be drawn using three of the dots below as vertices? [asy]dot(origin^^(1,0)^^(2,0)^^(0,1)^^(1,1)^^(2,1));[/asy]",
        "Tess runs counterclockwise around rectangular block $JKLM$. She lives at corner $J$. Which graph could represent her straight-line distance from home?",
        "Which triplet of numbers has a sum NOT equal to 1?"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
poc-gemma
1.27 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
blachang28's picture
blachang28
Add new SentenceTransformer model
7c241b9 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
    23.2 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