Instructions to use cjvt/sloberta-sleng with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cjvt/sloberta-sleng with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="cjvt/sloberta-sleng")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("cjvt/sloberta-sleng") model = AutoModelForMaskedLM.from_pretrained("cjvt/sloberta-sleng") - Notebooks
- Google Colab
- Kaggle
not a CamembertTokenizer?
#3
by AngledLuffa - opened
This model does not seem to use a CamembertTokenizer, but rather uses a BPE tokenizer. As written, it is not functional with transformers 5.3.0
See https://github.com/huggingface/transformers/issues/44488#issuecomment-4097093131
Would you change the model json so that it has the proper tokenizer type, possibly PreTrainedTokenizerFast?