自然语言处理NLP星空智能对话机器人系列:深入理解Transformer自然语言处理 Text completion with GPT-2 step 6-8
目录
Steps 6-7: Intermediate instructions
- Steps 6-7: Intermediate instructions
- Steps 7b-8: Importing and defining the model
- 星空智能对话机器人系列博客
本文将介绍步骤6、7和7a,它们是进入第8步的中间步骤,我们将定义并激活模型。在模型与控制台交互时将UTF编码的文本打印到控制台,定义UTF-8编码格式:
#@title Step 6: Printing UTF encoded text to the console
!export PYTHONIOENCODING=UTF-8
接下来准备与GPT-2模型进行交互