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

togethercomputer
/
m2-bert-80M-8k-retrieval

Sentence Similarity
Transformers
PyTorch
English
m2_bert
text-classification
custom_code
Model card Files Files and versions
xet
Community
7

Instructions to use togethercomputer/m2-bert-80M-8k-retrieval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use togethercomputer/m2-bert-80M-8k-retrieval with Transformers:

    # Load model directly
    from transformers import AutoModelForSequenceClassification
    model = AutoModelForSequenceClassification.from_pretrained("togethercomputer/m2-bert-80M-8k-retrieval", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
m2-bert-80M-8k-retrieval
351 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 17 commits
Tom Aarsen
Allow loading via AutoModel
cbdd8c4 over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    3.47 kB
    Update README.md over 2 years ago
  • bert_layers.py
    40.7 kB
    Automodel support over 2 years ago
  • bert_padding.py
    5.97 kB
    Automodel support over 2 years ago
  • blockdiag_linear.py
    3.16 kB
    Automodel support over 2 years ago
  • blockdiag_multiply.py
    2.87 kB
    Automodel support over 2 years ago
  • config.json
    1.51 kB
    Allow loading via AutoModel over 2 years ago
  • config.yaml
    922 Bytes
    8k retrieval model over 2 years ago
  • configuration_bert.py
    2.41 kB
    Automodel support over 2 years ago
  • generation_config.json
    130 Bytes
    Automodel support over 2 years ago
  • hyena_utils.py
    8.35 kB
    Automodel support over 2 years ago
  • monarch_mixer_sequence_mixer.py
    5.14 kB
    Automodel support over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (5)

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

    What is a pickle import?

    351 MB
    xet
    Model over 2 years ago
  • structured_linear.py
    2.58 kB
    Automodel support over 2 years ago
  • version.txt

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    2 Bytes
    8k retrieval model over 2 years ago