Views
No views yet
anant1213/bert-base-banking77-student-pseudo-v1 (BERT Student — Pseudo-Label Distilled)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}1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4repo_id = "anant1213/bert-base-banking77-student-pseudo-v1"
5tokenizer = AutoTokenizer.from_pretrained(repo_id)
6model = AutoModelForSequenceClassification.from_pretrained(repo_id)
7
8text = "I was charged twice for the same card payment"
9inputs = tokenizer(text, return_tensors="pt", truncation=True)
10
11with torch.no_grad():
12 logits = model(**inputs).logits
13pred_id = int(torch.argmax(logits, dim=-1))
14print("Predicted label id:", pred_id)