$ conda install -c conda-forge jsonnet
Collecting package metadata (current_repodata.json): done
Solving environment: done
Package Plan
environment location: /home/R-
added / updated specs:
- jsonnet
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2020.12.5 | ha878542_0 137 KB conda-forge
certifi-2020.12.5 | py37h89c1867_1 143 KB conda-forge
jsonnet-0.17.0 | py37h745909e_0 327 KB conda-forge
openssl-1.1.1j | h7f98852_0 2.1 MB conda-forge
------------------------------------------------------------
Total: 2.7 MB
The following NEW packages will be INSTALLED:
jsonnet conda-forge/linux-64::jsonnet-0.17.0-py37h745909e_0
The following packages will be SUPERSEDED by a higher-priority channel:
ca-certificates anaconda/cloud/conda-forge --> conda-forge
certifi anaconda/cloud/conda-forge --> conda-forge
openssl anaconda/cloud/conda-forge --> conda-forge
Proceed ([y]/n)? y
Downloading and Extracting Packages
jsonnet-0.17.0 | 327 KB | ############################################################# | 100%
openssl-1.1.1j | 2.1 MB | ############################################################# | 100%
certifi-2020.12.5 | 143 KB | ############################################################# | 100%
ca-certificates-2020 | 137 KB | ############################################################# | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(/home/R-) admin@admin:/m/$
$ pip install -i https://pypi.tuna
.tsinghua.edu.cn/simple allennlp==1.0.0
$ python train.py [2021-03-21 09:25:47,061 - train - INFO] - One GPU or CPU training mode start…
[2021-03-21 09:25:47,095 - train - INFO] - Dataloader instances created. Train datasets: 32 samples Validation datasets: 32 samples.
[2021-03-21 09:25:48,053 - train - INFO] - Model created, trainable parameters: 68567386.
[2021-03-21 09:25:48,054 - train - INFO] - Optimizer and lr_scheduler created.
[2021-03-21 09:25:48,054 - train - INFO] - Max_epochs: 1 Log_per_step: 10 Validation_per_step: 50.
[2021-03-21 09:25:48,054 - train - INFO] - Training start…
[2021-03-21 09:25:48,064 - trainer - WARNING] - Warning: There’s no GPU available on this machine,training will be performed on CPU.
[2021-03-21 09:25:48,064 - trainer - WARNING] - Training is using CPU!
训练问题:
Traceback (most recent call last):
File “train.py”, line 163, in
entry_point(config)
File “train.py”, line 130, in entry_point
dist.destroy_process_group()
File “/home/admin/R-/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py”, line 517, in destroy_process_group
raise RuntimeError(“Invalid process group specified”)
RuntimeError: Invalid process group specified
解决: