jsonnet allennlp安装

$ 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
解决:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值