mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-22 07:22:07 +00:00
12 lines
345 B
Python
12 lines
345 B
Python
|
from optimum.habana.utils import get_driver_version
|
||
|
from packaging.version import Version
|
||
|
|
||
|
MIN_TGI_GAUDI_SYNAPSE_VERSION=Version("1.16.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
|