Downloads · 30 days
85
19% of all-time downloads
subrace/NepBERTa-pytorch
NepBERTa-pytorch is a machine learning model from subrace. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
A faithful PyTorch conversion of the official NepBERTa/NepBERTa checkpoint, which ships only TensorFlow weights (tfmodel.h5) that transformers v5 can no longer load.
Downloads · 30 days
85
19% of all-time downloads
All-time downloads
453
Public
Parameters
109M
436 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
A faithful PyTorch conversion of the official
NepBERTa/NepBERTa checkpoint,
which ships only TensorFlow weights (tf_model.h5) that transformers v5
can no longer load.
NepBERTa/NepBERTa @ tf_model.h5 (TFBertForMaskedLM, 207 tensors).transformers 4.57.6 / tensorflow-cpu 2.21.0
via load_tf2_checkpoint_in_pytorch_model into a BertModel.vocab.txt md5 edfd394677436b306fb062159ec46c72).torch.equal) to the independent community port
Rajan/nepbertaTorch
on all 198 tensors that repo shares with the official checkpoint.from transformers import AutoModelForSequenceClassification, AutoTokenizer
tok = AutoTokenizer.from_pretrained("subrace/NepBERTa-pytorch")
model = AutoModelForSequenceClassification.from_pretrained(
"subrace/NepBERTa-pytorch", num_labels=2)
All credit for the model itself goes to the NepBERTa authors (paper); this repo exists only so the weights load in modern PyTorch-only transformers.