LoginSignup
2
4

More than 3 years have passed since last update.

「危険すぎる」と話題の文章生成AI「GPT-2」で文章を生成しよう

Posted at

GPT-2の運営はOpenAI

OpenAIはイーロン・マスクなどをはじめとする有力な実業家・投資家が参加している人工知能を研究する非営利団体です。
https://openai.com/

生成の手順

  1. gitからclone
  2. モデルのインストール
  3. ライブラリをインストール
  4. 文章を生成

1. gitからclone

git clone https://github.com/seiyatakahashi/gpt-2.git && cd gpt-2

2. モデルのインストール

python3 download_model.py 1558M

3. ライブラリをインストール

pip3 install -r requirements.txt

4. 文章を生成

python3 src/interactive_conditional_samples.py
2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4