Multilabel Text Classification Model Training Error

Hello - I am trying to train the Multilabel Text Classification model when I receive the following error: packaging.version.InvalidVersion: Invalid version: ‘0.10.1,<0.11’

Has anyone encountered this?

the full text is below:
Traceback (most recent call last):
File “/microservice/training_wrapper.py”, line 45, in get_training_plugin
training_plugin = importlib.import_module(“uipath_core.training_plugin”)
File “/usr/local/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 14, in
import train
File “/microservice/train.py”, line 18, in
import model
File “</microservice/model.py>”, line 1, in
File “”, line 10, in
File “</microservice/network.py>”, line 1, in
File “”, line 8, in
File “/microservice/utils.py”, line 4, in
from transformers import AutoModelForSequenceClassification, AutoTokenizer
File “/home/aicenter/.local/lib/python3.8/site-packages/transformers/init.py”, line 43, in
from . import dependency_versions_check
File “/home/aicenter/.local/lib/python3.8/site-packages/transformers/dependency_versions_check.py”, line 41, in
require_version_core(deps[pkg])
File “/home/aicenter/.local/lib/python3.8/site-packages/transformers/utils/versions.py”, line 94, in require_version_core
return require_version(requirement, hint)
File “/home/aicenter/.local/lib/python3.8/site-packages/transformers/utils/versions.py”, line 85, in require_version
if want_ver is not None and not ops[op](version.parse(got_ver), version.parse(want_ver)):
File “/home/aicenter/.local/lib/python3.8/site-packages/packaging/version.py”, line 52, in parse
return Version(version)
File “/home/aicenter/.local/lib/python3.8/site-packages/packaging/version.py”, line 197, in init
raise InvalidVersion(f"Invalid version: ‘{version}’")
packaging.version.InvalidVersion: Invalid version: ‘0.10.1,<0.11’

Hi @kartik.gupte ,

As the error doesn’t really seem to be because of any issues with the dataset used. Maybe you could raise a request to UiPath Support Team and ask about this issue.

However, Do check on the documentation and the dataset formats used :

Let us know if you have already checked with the documentation and if there is any difference between the suggested method/configuration in the Doc and your configuration.

Thanks @supermanPunch . I have checked the documentation and thanks for confirming that the dataset is not an issue. I have raised the issue to our TSM; Will also try support.

Hi @kartik.gupte
We are looking into this, note that this ML Package is actually in preview only. I would recommend you to start using our new CommsMining product for multilabel text classificaiton. Would that work with your use case?

Jeremy

1 Like