Downloads · 30 days
6
22% of all-time downloads
Anant1213/bert-base-banking77-student-pseudo-v1
bert-base-banking77-student-pseudo-v1 is a text classification model from Anant1213. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a BERT-base intent classifier fine-tuned on the BANKING77 dataset using a teacher pseudo-labeling distillation approach (Path 1). A fine-tuned BERT-large teacher generates predicted intent lab…
Downloads · 30 days
6
22% of all-time downloads
All-time downloads
27
Public
Parameters
110M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
anant1213/bert-base-banking77-student-pseudo-v1 (BERT Student — Pseudo-Label Distilled)This repository contains a BERT-base intent classifier fine-tuned on the BANKING77 dataset using a teacher pseudo-labeling distillation approach (Path 1). A fine-tuned BERT-large teacher generates predicted intent labels for each training example; the BERT-base student is then fine-tuned on these teacher-generated labels and evaluated on the original test set.
BertForSequenceClassification (BERT encoder + classification head)google-bert/bert-base-uncased :contentReference[oaicite:1]{index=1}google-bert/bert-large-uncased fine-tuned on BANKING77 :contentReference[oaicite:2]{index=2}google-bert/bert-base-uncased :contentReference[oaicite:3]{index=3}google-bert/bert-large-uncased :contentReference[oaicite:4]{index=4}PolyAI/banking77 :contentReference[oaicite:5]{index=5}from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
repo_id = "anant1213/bert-base-banking77-student-pseudo-v1"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForSequenceClassification.from_pretrained(repo_id)
text = "I was charged twice for the same card payment"
inputs = tokenizer(text, return_tensors="pt", truncation=True)
with torch.no_grad():
logits = model(**inputs).logits
pred_id = int(torch.argmax(logits, dim=-1))
print("Predicted label id:", pred_id)