pip install transformers from transformers import automodelforcausallm, autotokenizer import torch torch_device = "cuda" if torch.cuda.is_available() else "cpu" model_name="mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis" tokenizer = autotokenizer.from_pretrained(model_name) model=automodelforcausallm.from_pretrained(model_name,pad_token_id=tokenizer.eos_token_id).to(torch_device) model_inputs=tokenizer('Nvidia reported profits of €10Mio',return_tensors='pt').to(torch_device) output = model(**inputs).logits.argmax(axis=1)

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.

Model tree for unemonti/distilroberta-base

Finetuned
(597)
this model