stanford_alpaca icon indicating copy to clipboard operation
stanford_alpaca copied to clipboard

TypeError: 'type' object is not subscriptable

Open WYXG233 opened this issue 1 year ago • 2 comments

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

WYXG233 avatar Jun 21 '23 08:06 WYXG233

same problem

dongguanting avatar Jul 05 '23 12:07 dongguanting

#171

zhangyx0417 avatar Aug 12 '23 07:08 zhangyx0417