mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-05-04 05:42:44 -04:00
fix(mpt): trust remote code
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user