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

bstds
/
fewshot_re_bert

Transformers
PyTorch
bert
custom_code
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use bstds/fewshot_re_bert with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, BertForFewRelZeroShot
    
    tokenizer = AutoTokenizer.from_pretrained("bstds/fewshot_re_bert", trust_remote_code=True)
    model = BertForFewRelZeroShot.from_pretrained("bstds/fewshot_re_bert", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
fewshot_re_bert
1.35 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 16 commits
bstds's picture
bstds
Update modeling_re_bert.py
599c238 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • config.json
    1.02 kB
    Update config.json over 3 years ago
  • modeling_re_bert.py
    5.81 kB
    Update modeling_re_bert.py over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    1.35 GB
    xet
    Upload BertForFewRelZeroShot over 3 years ago
  • relations.json
    2.91 kB
    Update relations.json over 3 years ago
  • special_tokens_map.json
    125 Bytes
    Upload tokenizer over 3 years ago
  • tokenizer.json
    669 kB
    Upload tokenizer over 3 years ago
  • tokenizer_config.json
    348 Bytes
    Upload tokenizer over 3 years ago
  • vocab.txt
    213 kB
    Upload tokenizer over 3 years ago