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

xmanii
/
maux-gte-persian

Sentence Similarity
sentence-transformers
Safetensors
new
feature-extraction
Generated from Trainer
dataset_size:2000
loss:CosineSimilarityLoss
persian
farsi
gpt4-translated
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use xmanii/maux-gte-persian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use xmanii/maux-gte-persian with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("xmanii/maux-gte-persian", trust_remote_code=True)
    
    sentences = [
        "انقلاب صنعتی چگونه جامعه را تغییر داد؟",
        "انقلاب صنعتی منجر به شهرنشینی شد زیرا مردم به شهرها نقل مکان کردند تا در کارخانه‌ها کار کنند.",
        "انقلاب صنعتی منجر به شهرنشینی شد زیرا مردم به شهرها نقل مکان کردند تا در کارخانه‌ها کار کنند.",
        "انقلاب صنعتی چگونه جامعه را تغییر داد؟"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
maux-gte-persian
1.24 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
xmanii's picture
xmanii
Update README.md
797be4f verified about 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model about 2 years ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model about 2 years ago
  • README.md
    6.4 kB
    Update README.md about 2 years ago
  • config.json
    1.58 kB
    Add new SentenceTransformer model about 2 years ago
  • config_sentence_transformers.json
    201 Bytes
    Add new SentenceTransformer model about 2 years ago
  • model.safetensors
    1.22 GB
    xet
    Add new SentenceTransformer model about 2 years ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model about 2 years ago
  • sentence_bert_config.json
    54 Bytes
    Add new SentenceTransformer model about 2 years ago
  • special_tokens_map.json
    964 Bytes
    Add new SentenceTransformer model about 2 years ago
  • tokenizer.json
    17.1 MB
    xet
    Add new SentenceTransformer model about 2 years ago
  • tokenizer_config.json
    1.15 kB
    Add new SentenceTransformer model about 2 years ago