mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-21 14:52:20 +00:00
13 lines
348 B
Python
13 lines
348 B
Python
|
from optimum.habana.utils import get_driver_version
|
||
|
from packaging.version import Version
|
||
|
|
||
|
MIN_TGI_GAUDI_SYNAPSE_VERSION = Version("1.19.0")
|
||
|
|
||
|
|
||
|
def is_driver_compatible():
|
||
|
driver_version = get_driver_version()
|
||
|
if driver_version is not None:
|
||
|
if driver_version < MIN_TGI_GAUDI_SYNAPSE_VERSION:
|
||
|
return False
|
||
|
return True
|