Downloads · 30 days
25
19% of all-time downloads
m4vic/agnews-transformer-encoder
agnews-transformer-encoder is a text classification model from m4vic. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
-- license: apache-2.0 language: - en metrics: - accuracy pipelinetag: text-classification
Downloads · 30 days
25
19% of all-time downloads
All-time downloads
135
Public
Repo size
118 MB
Likes
2
Public
Click a slice to open those files.
.pt118 MB · 99%
From the Hugging Face model README
-- license: apache-2.0 language:
This repository contains a custom Transformer Encoder trained from scratch on the AG News dataset.
The model achieves 91.7% validation accuracy after 13 epochs with the following configuration:
agnews_encoder.pt → trained model weightsconfig.json → model configvocab.json → tokenizer vocabtrain_notebook.ipynb → training code