Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make test prediction at end of setup #31

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

joehoover
Copy link
Contributor

In general, it is possible for Predict to be broken, even if setup completes. While it would be preferable to never push a model with a broken Predict, it's still useful to mitigate this risk by failing models with broken Predict during setup.

This commit makes a short test prediction at the end of setup. If the prediction fails, the model is broken and will fail setup.

It also fixes a bug where default prompt templates were not correctly used to format prompts.

In general, it is possible for Predict to be broken, even if setup completes.
While it would be preferable to never push a model with a broken Predict, it's still useful to mitigate this risk by failing models with broken Predict during setup.

This commit makes a short test prediction at the end of setup. If the prediction fails, the model is broken and will fail setup.
@joehoover joehoover merged commit 10fdf2b into main Aug 1, 2024
2 checks passed
@joehoover joehoover deleted the joe/make-test-prediction-at-end-of-setup branch August 1, 2024 13:26
joehoover added a commit that referenced this pull request Aug 1, 2024
joehoover added a commit that referenced this pull request Aug 1, 2024
@joehoover joehoover restored the joe/make-test-prediction-at-end-of-setup branch August 1, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant