How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("fill-mask", model="ClassCat/roberta-base-catalan")
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("ClassCat/roberta-base-catalan")
model = AutoModelForMaskedLM.from_pretrained("ClassCat/roberta-base-catalan")
Quick Links

RoBERTa Catalan base model (Uncased)

Prerequisites

transformers==4.19.2

Model architecture

This model uses RoBERTa base setttings except vocabulary size.

Tokenizer

Using BPE tokenizer with vocabulary size 50,000.

Training Data

  • wiki40b/ca (Catalan Wikipedia)
  • Subset of CC-100/ca : Monolingual Datasets from Web Crawl Data

Usage

from transformers import pipeline

unmasker = pipeline('fill-mask', model='ClassCat/roberta-base-catalan')
unmasker("Jo <mask> japonès.")
Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train ClassCat/roberta-base-catalan

Space using ClassCat/roberta-base-catalan 1