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: 'type' object is not subscriptable #287

Open
WYXG233 opened this issue Jun 21, 2023 · 2 comments
Open

TypeError: 'type' object is not subscriptable #287

WYXG233 opened this issue Jun 21, 2023 · 2 comments

Comments

@WYXG233
Copy link

WYXG233 commented Jun 21, 2023

I'm trying to train the alpaca model using python 3.10. But when I try to train, there is always a bug here:

  File "./stanford_alpaca/weight_diff.py", line 21, in <module>
    from train import smart_tokenizer_and_embedding_resize
  File "./stanford_alpaca/train.py", line 22, in <module>
    import utils
  File "./stanford_alpaca/utils.py", line 40, in <module>
    prompts: Union[str, Sequence[str], Sequence[dict[str, str]], dict[str, str]],
TypeError: 'type' object is not subscriptable
@dongguanting
Copy link

same problem

@zhangyx0417
Copy link

#171

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

3 participants