尝试在google colab上运行python笔记本时,https://medium.com/@markn_67491/run-allennlp-models-on-free-gpus-using-googles-colab-notebooks-4db9359970c1中提到的https://drive.google.com/file/d/1JH6dz8GJbwh9GhPoZQKwR-EipeR5JBrV/view
安装pytorch和AllenNlp之后我运行
from allennlp.models.archival import load_archive
from allennlp.service.predictors import Predictor
import pprint
pretty_print = pprint.PrettyPrinter(indent=4)
由于......而在第二行崩溃。
AttributeError:module' torch.optim.lr_scheduler'没有属性' CosineAnnealingLR'
注意:https://github.com/pytorch/pytorch/issues/3214建议升级到3.0版,但即使是 pip3安装http://download.pytorch.org/whl/cu80/torch-0.3.1-cp36-cp36m-linux_x86_64.whl 即版本3.1问题仍然存在。任何建议