Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

AnanyaCoder
/
XLsim_en-de

Sentence Similarity
sentence-transformers
PyTorch
Transformers
xlm-roberta
feature-extraction
MT Evaluation
Metrics
Evaluation
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use AnanyaCoder/XLsim_en-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use AnanyaCoder/XLsim_en-de with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("AnanyaCoder/XLsim_en-de")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use AnanyaCoder/XLsim_en-de with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("AnanyaCoder/XLsim_en-de")
    model = AutoModel.from_pretrained("AnanyaCoder/XLsim_en-de")
  • Notebooks
  • Google Colab
  • Kaggle
XLsim_en-de
1.13 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
AnanyaCoder's picture
AnanyaCoder
Upload 3 files
ad78442 verified about 2 years ago
  • 1_Pooling
    Upload 3 files about 2 years ago
  • eval
    Upload 3 files about 2 years ago
  • .gitattributes
    1.57 kB
    Upload 10 files about 2 years ago
  • README.md
    3.22 kB
    Update README.md about 2 years ago
  • config.json
    701 Bytes
    Upload 10 files about 2 years ago
  • config_sentence_transformers.json
    117 Bytes
    Upload 10 files about 2 years ago
  • modules.json
    229 Bytes
    Upload 10 files about 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage",
    • "torch.LongStorage"

    What is a pickle import?

    1.11 GB
    xet
    Upload 10 files about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Upload 10 files about 2 years ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Upload 10 files about 2 years ago
  • similarity_evaluation_sts-test_results.csv
    299 Bytes
    Upload 3 files about 2 years ago
  • special_tokens_map.json
    280 Bytes
    Upload 10 files about 2 years ago
  • tokenizer.json
    17.1 MB
    xet
    Upload 10 files about 2 years ago
  • tokenizer_config.json
    418 Bytes
    Upload 10 files about 2 years ago