mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-21 23:12:07 +00:00
* wip(gaudi): import server and dockerfile from tgi-gaudi fork * feat(gaudi): new gaudi backend working * fix: fix style * fix prehooks issues * fix(gaudi): refactor server and implement requested changes
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
|