[HELP] RuntimeError: CUDA error: device-side assert triggered

you need to resize the token vocabulary in the model.
model.resize_token_embeddings(len(tokenizer))

1 Like