lm-sys / lm-sys/FastChat

RuntimeError when running qa_browser.py

Open
#3,190 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I get the following error when I run python3 qa_browser.py --share as I follow readme instructions.

RuntimeError: Failed to import transformers.generation.utils because of the following error (look up to see its traceback):
'FieldInfo' object has no attribute 'required'

I believe this has to do with incompatible pydantic and transfomers when upgrading gardio. https://github.com/huggingface/transformers/issues/27273

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README instructions and reproduce the failure using python3 qa_browser.py --share. Compare the pydantic and transformers compatibility problem against the linked Transformers issue; done means the command gets past the transformers.generation.utils import without the FieldInfo error.

Written by the indexing model from the issue text.

Assessment

Tech stack
huggingface, python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.