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 #33

Merged
merged 1 commit 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.

@joehoover joehoover force-pushed the joe/make-test-prediction-at-end-of-setup branch from 2932375 to ddae533 Compare August 1, 2024 13:49
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.
@joehoover joehoover force-pushed the joe/make-test-prediction-at-end-of-setup branch from ddae533 to a2f4803 Compare August 1, 2024 14:05
@joehoover joehoover merged commit b32418b into main Aug 1, 2024
2 checks passed
@joehoover joehoover deleted the joe/make-test-prediction-at-end-of-setup branch August 1, 2024 14:10
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