packaging.version.InvalidVersion: Invalid version: ' '
I am trying to run text generation example provided in ‘GitHub - huggingface/optimum-habana: Easy and lightning fast training of 🤗 Transformers on Habana Gaudi processor (HPU)’ in AWS DL1 instance. I receive Invalid Version error. I tried using the AMI as well but still receive the same. Not sure if I am missing something. Sharing the error:Traceback (most recent call last):File “/home/ubuntu/optimum-habana/examples/text-generation/…/gaudi_spawn.py”, line 35, infrom optimum.habana.distributed import DistributedRunnerFile “/home/ubuntu/.local/lib/python3.10/site-packages/optimum/habana/init.py”, line 29, incheck_synapse_version()File “/home/ubuntu/.local/lib/python3.10/site-packages/optimum/habana/utils.py”, line 180, in check_synapse_versionhabana_frameworks_version_number = get_habana_frameworks_version()File “/home/ubuntu/.local/lib/python3.10/site-packages/optimum/habana/utils.py”, line 218, in get_habana_frameworks_versionreturn version.parse(output.stdout.split(“\n”)[0].split(" “)[-1])File “/home/ubuntu/.local/lib/python3.10/site-packages/packaging/version.py”, line 54, in parsereturn Version(version)File “/home/ubuntu/.local/lib/python3.10/site-packages/packaging/version.py”, line 200, ininitraise InvalidVersion(f"Invalid version: ‘{version}’”)packaging.version.InvalidVersion: Invalid version: ‘’I face the same issue while running other examples available in the repo.
2024-01-10T09:01:06Z
Hi@ashwintcs!This PRmust have solved this issue. Have you tried again with the latest release or installing Optimum Habana from source?