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

joelniklaus
/
legal-swiss-roberta-base

Fill-Mask
Transformers
PyTorch
TensorBoard
roberta
Model card Files Files and versions
xet
Metrics Training metrics Community
7

Instructions to use joelniklaus/legal-swiss-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use joelniklaus/legal-swiss-roberta-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="joelniklaus/legal-swiss-roberta-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("joelniklaus/legal-swiss-roberta-base")
    model = AutoModelForMaskedLM.from_pretrained("joelniklaus/legal-swiss-roberta-base", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
legal-swiss-roberta-base
2.96 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 21 commits
kapllan's picture
kapllan
Added a model card
2e67c46 about 3 years ago
  • last-checkpoint
    Training in progress, step 950000 over 3 years ago
  • runs
    Training in progress, step 950000 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • .gitignore
    13 Bytes
    Training in progress, step 50000 over 3 years ago
  • README.md
    8.97 kB
    Added a model card about 3 years ago
  • config.json
    695 Bytes
    Training in progress, step 50000 over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    738 MB
    xet
    Training in progress, step 950000 over 3 years ago
  • special_tokens_map.json
    167 Bytes
    Training in progress, step 50000 over 3 years ago
  • tokenizer.json
    6.1 MB
    Training in progress, step 50000 over 3 years ago
  • tokenizer_config.json
    394 Bytes
    Training in progress, step 50000 over 3 years ago
  • training_args.bin

    Detected Pickle imports (6)

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

    How to fix it?

    3.5 kB
    xet
    Training in progress, step 800000 over 3 years ago