Downloads · 30 days
878
11% of all-time downloads
flax-community/bert-swahili-news-classification
bert-swahili-news-classification is a text classification model from flax-community. Use it when you need a label for a piece of text. It is set up for transformers.
This model was trained using HuggingFace's Flax framework and is part of the JAX/Flax Community Week organized by HuggingFace. All training was done on a TPUv3-8 VM sponsored by the Google Cloud team.
Downloads · 30 days
878
11% of all-time downloads
All-time downloads
8.1K
Public
Parameters
109M
1.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin438 MB · 33%
How the weights are stored.
F32109M · 100%
From the Hugging Face model README
This model was trained using HuggingFace's Flax framework and is part of the JAX/Flax Community Week organized by HuggingFace. All training was done on a TPUv3-8 VM sponsored by the Google Cloud team.
This model was used as the base and fine-tuned for this task.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("flax-community/bert-swahili-news-classification")
model = AutoModelForSequenceClassification.from_pretrained("flax-community/bert-swahili-news-classification")
Eval metrics (10% valid set): {'accuracy': 0.9114740008594757}