Downloads · 30 days
4.2K
4% of all-time downloads
adalbertojunior/distilbert-portuguese-cased
distilbert-portuguese-cased is a feature extraction model from adalbertojunior. Use it when you need embeddings to search or compare text. It is set up for transformers.
Downloads · 30 days
4.2K
4% of all-time downloads
All-time downloads
103K
Public
Parameters
66.4M
531 MB on disk
Likes
22
Public
Click a slice to open those files.
.bin266 MB · 50%
How the weights are stored.
F3266.4M · 100%
From the Hugging Face model README
This model was distilled from BERTimbau
from transformers import AutoTokenizer # Or BertTokenizer
from transformers import AutoModelForPreTraining # Or BertForPreTraining for loading pretraining heads
from transformers import AutoModel # or BertModel, for BERT without pretraining heads
model = AutoModelForPreTraining.from_pretrained('adalbertojunior/distilbert-portuguese-cased')
tokenizer = AutoTokenizer.from_pretrained('adalbertojunior/distilbert-portuguese-cased', do_lower_case=False)
You should fine tune it on your own data.
It can achieve accuracy up to 99% relative to the original BERTimbau in some tasks.
@misc {adalberto_ferreira_barbosa_junior_2024,
author = { {Adalberto Ferreira Barbosa Junior} },
title = { distilbert-portuguese-cased (Revision df1fa7a) },
year = 2024,
url = { https://huggingface.co/adalbertojunior/distilbert-portuguese-cased },
doi = { 10.57967/hf/3041 },
publisher = { Hugging Face }
}