python文字冒险游戏制作_AI Dungeon 2 是一个基于OpenAI 的 GPT-2 模型构建的生成文字冒险游戏...

AI Dungeon 2是一款基于OpenAI的GPT-2模型的文字冒险游戏。玩家可以通过在线、移动应用或本地安装进行游戏。游戏本地运行需要nVidia GPU和CUDA。游戏的数据经过格式化为JSON结构,然后转换成大型TXT文件用于模型训练。训练大型GPT-2模型需要强大的硬件资源,如AWS的p3dn.24xlarge实例。AI Dungeon是一个开源项目,欢迎社区参与贡献。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

AIDungeon2

Read more about AIDungeon2 and how it was built here.

Play the mobile app version of the game by following the links here

Play the game online by following this link here

Play the game in Colab here.

To play the game locally, it is recommended that you have an nVidia GPU with 12 GB or more of memory, and CUDA installed. If you do not have such a GPU, each turn can take a couple of minutes or more for the game to compose its response. To install and play locally:

git clone --branch master https://github.com/AIDungeon/AIDungeon/

cd AIDungeon

./install.sh # Installs system packages and creates python3 virtual environment

./download_model.sh

source ./venv/bin/activate

./play.py

Finetune the model yourself

Formatting the data. After scraping the data I formatted text adventures into a json dict structure that looked like the follo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值