【文件属性】:
文件名称:gpt2:与OpenAI的GPT-2模型的R接口
文件大小:23KB
文件格式:ZIP
更新时间:2021-05-17 17:28:02
openai rstats deeplearning textgeneration gpt-2
GTP-2:语言模型是无监督的多任务学习者
安装
从GitHub安装软件包,
remotes :: install_github( " r-tensorflow/gpt2 " )
在安装GPT-2运行时之后,我们建议使用usind MiniConda,您需要先安装它,然后重新启动R会话:
gpt2 :: install_gpt2( method = " conda " , envname = " r-gpt2 " )
reticulate :: use_condaenv( required = TRUE , condaenv = " r-gpt2 " )
入门
要使用GPT-2生成文本,请指定prompt并让模式运行,
gpt2 :: gpt2( " Hello my name is " )
is Nicolas Eric Malmersky, born in Mariet
【文件预览】:
gpt2-master
----man()
--------gpt2.Rd(1KB)
--------hello.Rd(128B)
--------gpt2_download.Rd(527B)
--------install_gpt2.Rd(1015B)
----.gitignore(40B)
----README.md(5KB)
----.Rbuildignore(38B)
----LICENSE(1KB)
----DESCRIPTION(777B)
----inst()
--------python()
----R()
--------model.R(4KB)
--------install.R(3KB)
--------download.R(837B)
----gpt2.Rproj(396B)
----NAMESPACE(132B)
----README.Rmd(6KB)