fix(mpt): trust remote code

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron
2023-07-05 06:26:29 -04:00
parent 775c8c15a5
commit 44a225d2fd

View File

@@ -111,7 +111,7 @@ class MPT(openllm.LLM["transformers.PreTrainedModel", "transformers.GPTNeoXToken
def load_model(self, tag: bentoml.Tag, *args: t.Any, **attrs: t.Any) -> transformers.PreTrainedModel:
torch_dtype = attrs.pop("torch_dtype", torch.float32)
device_map = attrs.pop("device_map", None)
trust_remote_code = attrs.pop("trust_remote_code", False)
trust_remote_code = attrs.pop("trust_remote_code", True)
_ref = bentoml.transformers.get(tag)
config = get_mpt_config(