Undo disable of hpu graphs for starcoder (#201)

This commit is contained in:
Vidya Galli 2024-08-26 01:58:01 -07:00 committed by GitHub
parent 0c3239e710
commit c925bd2872
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,10 +36,6 @@ class StarCoder(CausalLM):
dtype: Optional[torch.dtype] = None, dtype: Optional[torch.dtype] = None,
): ):
# Bypasses runtime error "Empty tensor optional" with hpu graphs
os.environ["ENABLE_HPU_GRAPH"] = "false"
logger.warning("Disabling HPU graphs as they are not supported with Starcoder model!")
super(StarCoder, self).__init__( super(StarCoder, self).__init__(
model_id=model_id, model_id=model_id,
revision=revision, revision=revision,