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

tweak hub install to always run postinstall without prompting unless … #912

Merged
merged 10 commits into from
Jul 16, 2024

Conversation

dtam
Copy link
Contributor

@dtam dtam commented Jul 11, 2024

…remote inferencing is available

@dtam dtam requested review from wylansford and zsimjee July 12, 2024 00:11
install_local_models = local_models

try:
if module_manifest.tags and module_manifest.tags.has_guardrails_endpoint:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also add to this check that the guardrails config file does not contain use_remote_inferencing=true? If use_remote_inferencing=true, we should not show this and just assume that they want to use remote inferencing - i.e. not run post-install.

If they really wanna run post-install/use local models, they can pass a flaaaaag

@dtam dtam requested a review from zsimjee July 12, 2024 21:37
@dtam
Copy link
Contributor Author

dtam commented Jul 12, 2024

ok what a journey. finally green and updated the behavior per comments.

guardrails/validator_base.py Outdated Show resolved Hide resolved
@CalebCourier CalebCourier merged commit 77c081a into 0.5.0-dev Jul 16, 2024
12 checks passed
@CalebCourier CalebCourier deleted the dtam/tweak_hub_install branch July 16, 2024 17:35
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.

3 participants