本文共 1558 字,大约阅读时间需要 5 分钟。
InternLM2.5 ???????????????LLM????????????????????????????????????????????????????????? InternLM2.5 ???????????????????????
InternLM2.5 ? InternLM ??????????????????????????????????????????????
???InternLM2.5 ??????????????????????????????
InternLM2.5 ?????????????????????
??????????? InternLM2.5 ?????????????????
??????????????????? Python ?? InternLM2.5 ???????
from openai import OpenAIclientclient = OpenAI( api_key='YOUR_API_KEY', base_url="http://0.0.0.0:8000/v1")model_name = client.models.list().data[0].idresponse = client.chat.completions.create( model=model_name, messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "provide three suggestions about time management"} ], temperature=0.8, top_p=0.8, max_tokens=100)print(response) ????????????? InternLM2.5 ?????????????????????
InternLM2.5 ??????????????????????????????????????????????????? LLM ??????????????????????? InternLM2.5 ????????????
转载地址:http://rdpfk.baihongyu.com/