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

Arthuerwang
/
roberta-base-tutorial

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

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

  • Libraries
  • Transformers

    How to use Arthuerwang/roberta-base-tutorial with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="Arthuerwang/roberta-base-tutorial")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("Arthuerwang/roberta-base-tutorial")
    model = AutoModelForMaskedLM.from_pretrained("Arthuerwang/roberta-base-tutorial", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
roberta-base-tutorial
1.48 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Arthuerwang's picture
Arthuerwang
initial commit
70d140f about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago