Is this the latest tokenizer function?
def tok(example):
  encodings = tokenizer(example['src'], truncation=True, padding=True)
  return encodings

Try this instead:
def tok(example):
  encodings = tokenizer(example['src'], truncation=True, padding="max_length", max_length=2000)
  return encodings

Let me know if this works for you