from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)

model = AutoModelForSequenceClassification.from_pretrained('techthiyanes/Bert_Bahasa_Sentiment')

inputs = tokenizer("saya tidak", return_tensors="pt")

labels = torch.tensor([1]).unsqueeze(0) 

outputs = model(**inputs, labels=labels)

loss = outputs.loss

logits = outputs.logits

outputs
hello

{}
transformers pytorch tf jax bert text-classification autotrain_compatible endpoints_compatible region:us
TAGS
#transformers #pytorch #tf #jax #bert #text-classification #autotrain_compatible #endpoints_compatible #region-us 

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)

model = AutoModelForSequenceClassification.from_pretrained('techthiyanes/Bert_Bahasa_Sentiment')

inputs = tokenizer("saya tidak", return_tensors="pt")

labels = URL([1]).unsqueeze(0) 

outputs = model(inputs, labels=labels)

loss = URL

logits = URL

outputs
hello

TAGS
#transformers #pytorch #tf #jax #bert #text-classification #autotrain_compatible #endpoints_compatible #region-us 

passage: TAGS
#transformers #pytorch #tf #jax #bert #text-classification #autotrain_compatible #endpoints_compatible #region-us 
