OpenMMLab | AI玩家已上线!和InternLM解锁“谁是卧底”新玩法
发布日期:2025-04-29 02:47:17
浏览次数:21
分类:精选文章
本文共 1106 字,大约阅读时间需要 3 分钟。
InternLM ??????
1. InternLM ????
1.1 ??????
- ????????? CPU ? GPU????? 16GB?????
- ?????
conda create -n langgpt python=3.10 -yconda activate langgptpip install streamlit==1.37.0 openai==1.37.1
1.2 ?????????
mkdir langgptcd langgptgit clone https://github.com/sci-m-wang/Spy-Game.gitcd Spy-Game
1.3 SiliconCloud API ??
- ?? SiliconCloud ????? API Key?
- ?? API ??????
from openai import OpenAIclientclient = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.siliconflow.cn/v1")model = "internlm/internlm2_5-20b-chat"response = client.chat.completions.create( model=model, messages=[{ "role": "system", "content": "..." }], max_tokens=100)print(response.choices[0].message.content)
2. ????????
2.1 ??????
langgpt/who_is_the_spy.py???????requirements.txt?????README.md?????
2.2 ??????
- ????????
- ???????
- ??????
- ?? InternLM ??????
2.3 ????
- ??
internlm2_5-20b-chat?? - ???? AI ????
- ??????????????
2.4 ????
- ?? Streamlit ??
python -m streamlit run who_is_the_spy.py
- ??????????
- ??????????
3. ??????
- ?????????
- ???????????
- ?????????
- ????????
???????????????? InternLM ??????? AI ????????
发表评论
最新留言
做的很好,不错不错
[***.243.131.199]2026年06月17日 13时50分26秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
PHP中dirname(__FILE__)的意思
2023-02-28
PHP中extract()函数的妙用
2023-02-28
PHP中implode()和explode()
2023-02-28
PHP中serialize和json序列化与反序列化的区别
2023-02-28
Redis事务处理
2023-02-28
php中使用ajax进行前后端json数据交互
2023-02-28
Redis事务和锁操作
2023-02-28
PHP中如何得到数组的长度
2023-02-28
php中引入文件几种方式的区别
2023-02-28
PHP中把stdClass Object转array的几个方法
2023-02-28
PHP中替换换行符
2023-02-28
PHP中有关正则表达式的函数集锦
2023-02-28
Redis 集群搭建详细指南
2023-02-28
php中的cookie用法
2023-02-28
php中的session用法
2023-02-28
php中级联,php实现三级级联下拉框_PHP
2023-02-28
PHP中获取星期的几种方法
2023-02-28
Redis 限速器及问题
2023-03-01
php中高级基础知识点
2023-03-01
php中,如何将编译后的代码,反编译回去。
2023-03-01