Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【解决方法】线上版本报错result.txt找不到 #9

Open
Holmose opened this issue Nov 12, 2020 · 9 comments
Open

【解决方法】线上版本报错result.txt找不到 #9

Holmose opened this issue Nov 12, 2020 · 9 comments
Labels
documentation Improvements or additions to documentation

Comments

@Holmose
Copy link

Holmose commented Nov 12, 2020

这是由于模型文件没有下载完成的缘故,5个多g的文件,
清空finetune/trained_models下面的文件多运行几次(第二 步操作)试试,
或者直接下载文件到trained_models目录下面,也可试试从挂载google云盘从云盘上面复制过去。
1
2
3

@Holmose Holmose changed the title 解决办法 线上版本result.txt文件找不到报错,解决办法 Nov 12, 2020
@FabienYb
Copy link

添加了还是报错

@Holmose Holmose closed this as completed Nov 12, 2020
@Holmose Holmose reopened this Nov 12, 2020
@Holmose Holmose changed the title 线上版本result.txt文件找不到报错,解决办法 【解决方法】线上版本报错result.txt找不到 Nov 13, 2020
@Holmose
Copy link
Author

Holmose commented Nov 13, 2020

添加了还是报错

解决方法已更新

@Thresh-Frazier
Copy link

Thresh-Frazier commented Feb 21, 2021

最后一步出错的小伙伴
1.访问网址:https://drive.google.com/file/d/1ajR-yVWmZC_z7HgNjz4tivNz-vUCgKBC
复制model.ckpt-280000.data-00000-of-00001文件到google云盘根目录

2.复制下列代码到第二步代码之下,点击左上角运行执行
from google.colab import drive
drive.mount('/content/drive')
!cp /content/drive/My\ Drive/model.ckpt-280000.data-00000-of-00001 trained_models/model.ckpt-280000.data-00000-of-00001

3.执行第三步看是否能够成功加载

2021-02-21按照以上步骤成功加载,并且成功在Vmware中复现
环境:

https://www.cnblogs.com/ningvsban/p/4384995.html 👈安装指定版本Python

Python-3.6.5

pip install pandas==0.24.2 -i https://pypi.douban.com/simple
pip install regex==2019.4.14 -i https://pypi.douban.com/simple
pip install h5py==2.10.0 -i https://pypi.douban.com/simple
pip install numpy==1.18.4 -i https://pypi.douban.com/simple
pip install tensorboard==1.15.0 -i https://pypi.douban.com/simple
pip --default-timeout=100 install --upgrade -i https://mirrors.aliyun.com/pypi/simple tensorflow==1.15.0
pip install tensorflow-estimator==1.15.1 -i https://pypi.douban.com/simple
pip install tqdm==4.31.1 -i https://pypi.douban.com/simple
pip install requests==2.22.0 -i https://pypi.douban.com/simple
pip install ujson==2.0.3 -i https://pypi.douban.com/simple
pip install launchpadlib==1.10.13 -i https://pypi.douban.com/simple

@DancingLeaf123
Copy link

最后一步出错的小伙伴
1.访问网址:https://drive.google.com/file/d/1ajR-yVWmZC_z7HgNjz4tivNz-vUCgKBC
复制model.ckpt-280000.data-00000-of-00001文件到google云盘根目录

2.复制下列代码到第二步代码之下,点击左上角运行执行
from google.colab import drive
drive.mount('/content/drive')
!cp /content/drive/My\ Drive/model.ckpt-280000.data-00000-of-00001 trained_models/model.ckpt-280000.data-00000-of-00001

3.执行第三步看是否能够成功加载

2021-02-21按照以上步骤成功加载,并且成功在Vmware中复现
环境:

https://www.cnblogs.com/ningvsban/p/4384995.html 👈安装指定版本Python

Python-3.6.5

pip install pandas==0.24.2 -i https://pypi.douban.com/simple
pip install regex==2019.4.14 -i https://pypi.douban.com/simple
pip install h5py==2.10.0 -i https://pypi.douban.com/simple
pip install numpy==1.18.4 -i https://pypi.douban.com/simple
pip install tensorboard==1.15.0 -i https://pypi.douban.com/simple
pip --default-timeout=100 install --upgrade -i https://mirrors.aliyun.com/pypi/simple tensorflow==1.15.0
pip install tensorflow-estimator==1.15.1 -i https://pypi.douban.com/simple
pip install tqdm==4.31.1 -i https://pypi.douban.com/simple
pip install requests==2.22.0 -i https://pypi.douban.com/simple
pip install ujson==2.0.3 -i https://pypi.douban.com/simple
pip install launchpadlib==1.10.13 -i https://pypi.douban.com/simple

这个方法还是可以
2021年6月7日16:47:41

@Y1ran Y1ran added the documentation Improvements or additions to documentation label Jun 20, 2021
@LEe-QIaNGG
Copy link

好帖

@FHU-yezi
Copy link

FHU-yezi commented Jul 2, 2021

我好像找到原因了:作者的模型文件是放在 Google Drive 上的,而 Google Drive 对每个文件每天的下载次数有限制,人太多导致配额超限,于是模型下载失败了。

至于解决方法......谷歌的限额没办法绕过,其它网盘限速,要不存阿里云盘,然后我们自己下载了去运行?

image

@kergee
Copy link

kergee commented Jul 5, 2021

这模型也忒大了

@FHU-yezi
Copy link

FHU-yezi commented Jul 6, 2021

这模型也忒大了

十七亿参数啊

@NoahBishop
Copy link

最后一步出错的小伙伴 1.访问网址:https://drive.google.com/file/d/1ajR-yVWmZC_z7HgNjz4tivNz-vUCgKBC 复制model.ckpt-280000.data-00000-of-00001文件到google云盘根目录

2.复制下列代码到第二步代码之下,点击左上角运行执行 from google.colab import drive drive.mount('/content/drive') !cp /content/drive/My\ Drive/model.ckpt-280000.data-00000-of-00001 trained_models/model.ckpt-280000.data-00000-of-00001

3.执行第三步看是否能够成功加载

2021-02-21按照以上步骤成功加载,并且成功在Vmware中复现 环境:

https://www.cnblogs.com/ningvsban/p/4384995.html 👈安装指定版本Python

Python-3.6.5

pip install pandas==0.24.2 -i https://pypi.douban.com/simple pip install regex==2019.4.14 -i https://pypi.douban.com/simple pip install h5py==2.10.0 -i https://pypi.douban.com/simple pip install numpy==1.18.4 -i https://pypi.douban.com/simple pip install tensorboard==1.15.0 -i https://pypi.douban.com/simple pip --default-timeout=100 install --upgrade -i https://mirrors.aliyun.com/pypi/simple tensorflow==1.15.0 pip install tensorflow-estimator==1.15.1 -i https://pypi.douban.com/simple pip install tqdm==4.31.1 -i https://pypi.douban.com/simple pip install requests==2.22.0 -i https://pypi.douban.com/simple pip install ujson==2.0.3 -i https://pypi.douban.com/simple pip install launchpadlib==1.10.13 -i https://pypi.douban.com/simple

打卡记录,2022年6月可用
!cp /content/drive/MyDrive/model.ckpt-280000.data-00000-of-00001 /home/EssayKiller_V2/LanguageNetwork/GPT2/finetune/trained_models/model.ckpt-280000.data-00000-of-00001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

9 participants