Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: '<' not supported between instances of 'list' and 'str' #3

Open
carlose2108 opened this issue Sep 30, 2022 · 0 comments
Open

Comments

@carlose2108
Copy link

carlose2108 commented Sep 30, 2022

Hi there!

Any idea how to solve this issue?

Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 2077, in wsgi_app response = self.full_dispatch_request() File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 1523, in full_dispatch_request rv = self.dispatch_request() File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 1509, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/opt/program/predictor.py", line 130, in ping health = ScoringService.get_pipeline() is not None # You can insert a health check here File "/opt/program/predictor.py", line 76, in get_pipeline tokenizer = AutoTokenizer.from_pretrained(model_path) File "/opt/conda/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 608, in from_pretrained return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs) File "/opt/conda/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1775, in from_pretrained return cls._from_pretrained( File "/opt/conda/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1967, in _from_pretrained added_tok_encoder_sorted = list(sorted(added_tok_encoder.items(), key=lambda x: x[1]))

TypeError: '<' not supported between instances of 'list' and 'str'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant