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 ????????

上一篇:OpenMMLab | S4模型详解:应对长序列建模的有效方法
下一篇:OpenMetadata 命令执行漏洞复现(CVE-2024-28255)

发表评论

最新留言

做的很好,不错不错
[***.243.131.199]2026年06月17日 13时50分26秒