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

JakubJanusz
/
roberta_large_v2_ownRep

Sentence Similarity
sentence-transformers
Safetensors
Transformers
Polish
roberta
feature-extraction
information-retrieval
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use JakubJanusz/roberta_large_v2_ownRep with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use JakubJanusz/roberta_large_v2_ownRep with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("JakubJanusz/roberta_large_v2_ownRep", trust_remote_code=True)
    
    sentences = [
        "[query]: Jak dożyć 100 lat?",
        "Trzeba zdrowo się odżywiać i uprawiać sport.",
        "Trzeba pić alkohol, imprezować i jeździć szybkimi autami.",
        "Gdy trwała kampania politycy zapewniali, że rozprawią się z zakazem niedzielnego handlu."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use JakubJanusz/roberta_large_v2_ownRep with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("JakubJanusz/roberta_large_v2_ownRep", trust_remote_code=True)
    model = AutoModel.from_pretrained("JakubJanusz/roberta_large_v2_ownRep", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
roberta_large_v2_ownRep
1.76 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
Jakub Janusz
initial commit
dca2e94 8 months ago
  • 1_Pooling
    initial commit 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    4.55 kB
    initial commit 8 months ago
  • added_tokens.json
    23 Bytes
    initial commit 8 months ago
  • config.json
    1.04 kB
    initial commit 8 months ago
  • config_sentence_transformers.json
    205 Bytes
    initial commit 8 months ago
  • model.safetensors
    1.74 GB
    xet
    initial commit 8 months ago
  • modules.json
    229 Bytes
    initial commit 8 months ago
  • sentence_bert_config.json
    53 Bytes
    initial commit 8 months ago
  • special_tokens_map.json
    964 Bytes
    initial commit 8 months ago
  • tokenizer.json
    8.59 MB
    initial commit 8 months ago
  • tokenizer_config.json
    1.41 kB
    initial commit 8 months ago
  • unigram.json
    7.56 MB
    initial commit 8 months ago