It comes in many forms and usually needs processing/adaptation for model input. Look into transformers examples to start.
If you are asking about the datasets project specifically - it makes it even simpler to do the above. There are many prepared datasets ready to go. Read through documentation.