FSSpec requires additional libraries: aiohttp
and requests
(mingpt) ubuntu@ip-172-31-11-224:~/workspace/pytorch_examples/distributed/minGPT-ddp/mingpt$ MASTER_PORT=25000 MASTER_ADDR=$(hostname) RANK=0 WORLD_SIZE=1 python main.py
[2022-12-28 17:48:09,024][torch.distributed.distributed_c10d][INFO] - Added key: store_based_barrier_key:1 to store for rank: 0
[2022-12-28 17:48:09,025][torch.distributed.distributed_c10d][INFO] - Rank 0: Completed store-based barrier for key:store_based_barrier_key:1 with 1 nodes.
Error executing job with overrides: []
Traceback (most recent call last):
File "/home/ubuntu/venv/mingpt/lib/python3.8/site-packages/fsspec/registry.py", line 243, in get_filesystem_class
register_implementation(protocol, _import_class(bit["class"]))
File "/home/ubuntu/venv/mingpt/lib/python3.8/site-packages/fsspec/registry.py", line 266, in _import_class
mod = importlib.import_module(mod)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/ubuntu/venv/mingpt/lib/python3.8/site-packages/fsspec/implementations/http.py", line 11, in <module>
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "main.py", line 33, in main
model, optimizer, train_data, test_data = get_train_objs(gpt_cfg, opt_cfg, data_cfg)
File "main.py", line 13, in get_train_objs
dataset = CharDataset(data_cfg)
File "/home/ubuntu/workspace/pytorch_examples/distributed/minGPT-ddp/mingpt/char_dataset.py", line 20, in __init__
data = fsspec.open(data_cfg.path).open().read().decode('utf-8')
File "/home/ubuntu/venv/mingpt/lib/python3.8/site-packages/fsspec/core.py", line 441, in open
return open_files(
File "/home/ubuntu/venv/mingpt/lib/python3.8/site-packages/fsspec/core.py", line 273, in open_files
fs, fs_token, paths = get_fs_token_paths(
File "/home/ubuntu/venv/mingpt/lib/python3.8/site-packages/fsspec/core.py", line 621, in get_fs_token_paths
cls = get_filesystem_class(protocol)
File "/home/ubuntu/venv/mingpt/lib/python3.8/site-packages/fsspec/registry.py", line 245, in get_filesystem_class
raise ImportError(bit["err"]) from e
ImportError: HTTPFileSystem requires "requests" and "aiohttp" to be installed
cla signed