OpenMMLab | AI玩家已上线!和InternLM解锁“谁是卧底”新玩法
发布日期:2025-04-29 02:47:17 浏览次数:3 分类:精选文章

本文共 1125 字,大约阅读时间需要 3 分钟。

InternLM ??????

1. InternLM ????

1.1 ??????

  • ????????? CPU ? GPU????? 16GB?????
  • ?????
    conda create -n langgpt python=3.10 -y
    conda activate langgpt
    pip install streamlit==1.37.0 openai==1.37.1

1.2 ?????????

mkdir langgpt
cd langgpt
git clone https://github.com/sci-m-wang/Spy-Game.git
cd Spy-Game

1.3 SiliconCloud API ??

  • ?? SiliconCloud ????? API Key?
  • ?? API ??????
    from openai import OpenAIclient
    client = 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]2025年05月02日 00时50分37秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章