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

  • Log In
  • Sign Up

xcjthu
/
Lawformer

Fill-Mask
Transformers
PyTorch
longformer
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use xcjthu/Lawformer with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="xcjthu/Lawformer")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("xcjthu/Lawformer")
    model = AutoModelForMaskedLM.from_pretrained("xcjthu/Lawformer")
  • Notebooks
  • Google Colab
  • Kaggle
Lawformer
505 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
xcjthu's picture
xcjthu
Create README.md
860b4e2 about 5 years ago
  • .gitattributes
    744 Bytes
    init the model about 5 years ago
  • README.md
    1.13 kB
    Create README.md about 5 years ago
  • config.json
    1.08 kB
    init the model about 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    505 MB
    xet
    init the model about 5 years ago
  • special_tokens_map.json
    112 Bytes
    add tokenizer about 5 years ago
  • tokenizer_config.json
    447 Bytes
    add tokenizer about 5 years ago
  • vocab.txt
    110 kB
    add tokenizer about 5 years ago