stanford_alpaca
stanford_alpaca copied to clipboard
TypeError: 'type' object is not subscriptable
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
same problem
#171