12 2020 档案
摘要:背景:云物理机没安装tf相关环境,需要使用docker直接跑模型 在docker hub下载一个tensorflow gpu镜像 运行docker,直接进入bash,使用nvidia-smi正常看到现存,然后正常跑代码即可 docker run -v /data/bert:/app --runtim
阅读全文
摘要:启动arthas,执行以下命令会提示所有java进程,选择进程id wget https://arthas.aliyun.com/arthas-boot.jar java -jar arthas-boot.jar 使用dashboard或thread列出所有线程 dashboard thread 找
阅读全文
摘要:# 获取当前设备 device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
阅读全文
摘要:参考: Deep Joint Entity Disambiguation with Local Neural Attention. (Ganea and Hofmann, 2017, EMNLP) DeepType: multilingual entity linking by neural typ
阅读全文