Skip to content

TypeError: 'type' object is not subscriptable #171

Closed
@sanjibnarzary

Description

Traceback (most recent call last):
  File "train.py", line 25, in <module>
    import utils
  File "./fine-tuned/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
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 3020123) of binary: /home/sn/miniconda3/envs/chatllama/bin/python
Traceback (most recent call last):
  File "/home/sn/miniconda3/envs/chatllama/bin/torchrun", line 8, in <module>
    sys.exit(main())
  File "/home/sn/miniconda3/envs/chatllama/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper
    return f(*args, **kwargs)
  File "/home/sn/miniconda3/envs/chatllama/lib/python3.8/site-packages/torch/distributed/run.py", line 794, in main
    run(args)
  File "/home/sn/miniconda3/envs/chatllama/lib/python3.8/site-packages/torch/distributed/run.py", line 785, in run
    elastic_launch(
  File "/home/sn/miniconda3/envs/chatllama/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 134, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/home/sn/miniconda3/envs/chatllama/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError: 
============================================================
train.py FAILED

[TRUNCATED]

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions