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

add trust remote code option #781

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Conversation

lanking520
Copy link
Contributor

Description

This should fixes: #780

@lanking520 lanking520 requested review from zachgk, frankfliu and a team as code owners May 31, 2023 00:23
@@ -108,6 +108,7 @@ def __init__(self):
self.model_config = None
self.low_cpu_mem_usage = False
self.enable_streaming = False
self.trust_remote_code = os.environ.get("TRUST_REMOTE_CODE", "TRUE").lower() == 'true'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the default should be false, we don't have a way to validate that the code is safe. Users should have to explicitly opt in to downloading additional code

@lanking520 lanking520 merged commit 1081974 into deepjavalibrary:master Jun 1, 2023
KexinFeng pushed a commit to KexinFeng/djl-serving-forked that referenced this pull request Aug 16, 2023
KexinFeng pushed a commit to KexinFeng/djl-serving-forked that referenced this pull request Aug 16, 2023
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.

MosaicML/MPT7b model not working on DJLServing handler
4 participants