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

TurkuNLP
/
sbert-cased-finnish-paraphrase

Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
Finnish
bert
feature-extraction
Model card Files Files and versions
xet
Community
2

Instructions to use TurkuNLP/sbert-cased-finnish-paraphrase with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use TurkuNLP/sbert-cased-finnish-paraphrase with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("TurkuNLP/sbert-cased-finnish-paraphrase")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use TurkuNLP/sbert-cased-finnish-paraphrase with Transformers:

    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("TurkuNLP/sbert-cased-finnish-paraphrase")
    model = AutoModel.from_pretrained("TurkuNLP/sbert-cased-finnish-paraphrase", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
sbert-cased-finnish-paraphrase
997 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 15 commits
lhchan's picture
lhchan
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
57b69e9 verified about 2 years ago
  • 1_Pooling
    pytorch model almost 5 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) about 2 years ago
  • README.md
    3.87 kB
    update readme almost 5 years ago
  • added_tokens.json
    3 Bytes
    added_tokens file almost 5 years ago
  • config.json
    617 Bytes
    fix config file almost 5 years ago
  • config_sentence_transformers.json
    118 Bytes
    readme almost 5 years ago
  • model.safetensors
    498 MB
    xet
    Adding `safetensors` variant of this model (#1) about 2 years ago
  • modules.json
    230 Bytes
    fix module almost 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    498 MB
    xet
    pytorch model almost 5 years ago
  • sentence_bert_config.json
    53 Bytes
    pytorch model almost 5 years ago
  • special_tokens_map.json
    112 Bytes
    pytorch model almost 5 years ago
  • tokenizer_config.json
    353 Bytes
    fix tokenizer config almost 5 years ago
  • vocab.txt
    424 kB
    pytorch model almost 5 years ago