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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

alex-apostolo
/
legal-bert-base-filtered-cuad

Question Answering
Transformers
PyTorch
TensorBoard
bert
Generated from Trainer
Model card Files Files and versions
xet
Metrics Training metrics Community
2

Instructions to use alex-apostolo/legal-bert-base-filtered-cuad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use alex-apostolo/legal-bert-base-filtered-cuad with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # pip install "transformers<5.0.0"
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="alex-apostolo/legal-bert-base-filtered-cuad")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("alex-apostolo/legal-bert-base-filtered-cuad")
    model = AutoModelForQuestionAnswering.from_pretrained("alex-apostolo/legal-bert-base-filtered-cuad", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
legal-bert-base-filtered-cuad
437 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
alex-apostolo's picture
alex-apostolo
Included dataset in preview
dc1576c about 4 years ago
  • runs
    Model save about 4 years ago
  • .gitattributes
    1.34 kB
    initial commit about 4 years ago
  • .gitignore
    13 Bytes
    Training in progress, step 500 about 4 years ago
  • README.md
    1.5 kB
    Included dataset in preview about 4 years ago
  • config.json
    718 Bytes
    Training in progress, step 500 about 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    436 MB
    xet
    Model save about 4 years ago
  • special_tokens_map.json
    125 Bytes
    Training in progress, step 500 about 4 years ago
  • tokenizer.json
    702 kB
    Training in progress, step 500 about 4 years ago
  • tokenizer_config.json
    579 Bytes
    Training in progress, step 500 about 4 years ago
  • training_args.bin

    Detected Pickle imports (6)

    • "transformers.training_args.OptimizerNames",
    • "transformers.trainer_utils.HubStrategy",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.training_args.TrainingArguments",
    • "transformers.trainer_utils.IntervalStrategy",
    • "torch.device"

    How to fix it?

    3.38 kB
    xet
    Training in progress, step 500 about 4 years ago
  • vocab.txt
    222 kB
    Training in progress, step 500 about 4 years ago