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

mac不能跑吗,部署没问题了,不出结果 #24

Open
kyerbas opened this issue Jul 17, 2021 · 4 comments
Open

mac不能跑吗,部署没问题了,不出结果 #24

kyerbas opened this issue Jul 17, 2021 · 4 comments

Comments

@kyerbas
Copy link

kyerbas commented Jul 17, 2021

20多分钟了,一直不出结果
(aitext) laogege@localhost GPT2 % python scripts/demo.py -ckpt_fn finetune/trained_models/model.ckpt-280000 -min_len 1024 -samples 1
WARNING:tensorflow:From /Users/laogege/pythonwork3/aitext/EssayKiller_V2-master/LanguageNetwork/GPT2/scripts/modeling.py:141: dense (from tensorflow.python.layers.core) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.Dense instead.
WARNING:tensorflow:From /Users/laogege/.pyenv/versions/aitext/lib/python3.6/site-packages/tensorflow_core/python/layers/core.py:187: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.
Instructions for updating:
Please use layer.__call__ method instead.
WARNING:tensorflow:From /Users/laogege/.pyenv/versions/aitext/lib/python3.6/site-packages/tensorflow_core/python/util/dispatch.py:180: batch_gather (from tensorflow.python.ops.array_ops) is deprecated and will be removed after 2017-10-25.
Instructions for updating:
tf.batch_gather is deprecated, please use tf.gather with batch_dims=-1 instead.
模型加载好啦!🍺Bilibili干杯🍺

现在将你的作文题精简为一个句子,粘贴到这里:⬇️,然后回车

作文题目

我爱你老师

作文题目

正在生成第 1 of 1 篇文章

......

EssayKiller正在飞速写作中,请稍后......

@kyerbas
Copy link
Author

kyerbas commented Jul 19, 2021

本地机器配置:双路e5-2650 v2, 内存128g,显卡gtx 1050ti ,把项目部署到本地,运行起来,cpu80%以上,等了好久不出结果,怕烧cpu啊

@leostudiooo
Copy link

你单 CPU 推断肯定慢啊,才二十分钟哪烧得了,人家渲染视频动不动几个小时。
你要是光 CPU 推断建议耐心等待,要不就去用 Colab。

@Y1ran
Copy link
Contributor

Y1ran commented Feb 10, 2022 via email

@MX-Qulin
Copy link

MX-Qulin commented Feb 11, 2022

请问一下修了什么bug?

colab上一切正常

我这边服务器上cpu跑,log下来到生成这一步的时候CPU从100降到20左右,

然后8个进程里只有一个时不时running一下,是什么情况?

htop如图:
a

@AlanTur1ng

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

No branches or pull requests

4 participants