I am running inference using the pipeline api. But I get the following warning which recommends using the Dataset api. How can I do so?
transformers4/lib/python3.8/site-packages/transformers/pipelines/base.py:899: 
UserWarning: You seem to be using the pipelines sequentially on GPU. 
In order to maximize efficiency please use a dataset
  warnings.warn()

sentiment_analysis = pipeline("sentiment-analysis", model="siebert/sentiment-roberta-large-english", device=0)

def roberta_sent(verb):
    
    result = sentiment_analysis(verb)[0]    
            
    return result["label"], result["score"]



df = pd.read_csv(file)

df["roberta_sentiment"] = df["sentences"].apply(roberta_sent)