Open hoppop-web opened 1 year ago
报错如下:
作文最小篇幅 = 850 #@param {type:"number", min:800, max:1024, step:1} 生成作文篇数 = 1 #@param {type:"number", min:1, max:100, step:1} %mv /home/EssayKiller_V2/LanguageNetwork/GPT2/finetune/models/mega/* /home/EssayKiller_V2/LanguageNetwork/GPT2/finetune/trained_models/ %cd /home/EssayKiller_V2/LanguageNetwork/GPT2/ !export TF_CPP_MIN_LOG_LEVEL=2 !echo '模型加载中,请稍后......' !PYTHONPATH=$(pwd) python scripts/demo.py -ckpt_fn finetune/trained_models/model.ckpt-280000 -min_len $作文最小篇幅 -samples $生成作文篇数 !PYTHONPATH=$(pwd) python scripts/formatter.py -org_text result.txt
对不起,才看到QandA,还是挺想试试的
报错如下:
!cat /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/tpu/tpu_feed.py
@title #文章生成模块
作文最小篇幅 = 850 #@param {type:"number", min:800, max:1024, step:1} 生成作文篇数 = 1 #@param {type:"number", min:1, max:100, step:1} %mv /home/EssayKiller_V2/LanguageNetwork/GPT2/finetune/models/mega/* /home/EssayKiller_V2/LanguageNetwork/GPT2/finetune/trained_models/ %cd /home/EssayKiller_V2/LanguageNetwork/GPT2/ !export TF_CPP_MIN_LOG_LEVEL=2 !echo '模型加载中,请稍后......' !PYTHONPATH=$(pwd) python scripts/demo.py -ckpt_fn finetune/trained_models/model.ckpt-280000 -min_len $作文最小篇幅 -samples $生成作文篇数 !PYTHONPATH=$(pwd) python scripts/formatter.py -org_text result.txt