Fix training from scratch in new scripts
# What does this PR do?

This PR fixes a test in the new example scripts when the model can be trained from scratch and the `model_name_or_path` argument can be None. It also updates the template accordingly.

Fixes #8590