chunk_content: res from the model predictions and labels:
  
  
  	Copied
  import numpy as np
  
  
  def compute_metrics(eval_pred):
      predictions, labels = eval_pred
      predictions = np.argmax(predictions, axis=1)
      return metric.compute(predictions=predictions, references=labels)
  
  Preprocess dataset
  	
  Initialize the tokenizer and configure the padding token to use. If you’re using a GPT, OPT, or BLOOM model, you should set the padding_side to the left; otherwise i