Views
No views yet

Note: Underline means the best performance among open-sourced models, Bold indicates the best performance among all models.
1top_p = 0.95
2top_k = 50
3min_p = 0.0
4temperature = 0.8[!IMPORTANT] Running a trillion-parameter model using the native Hugging Face forward method is challenging. We strongly recommend using an LLM inference engine (such as LMDeploy, vLLM, or sglang) to host Intern-S1-Pro and accessing the model via API.
Deployment support for the time-series module is under optimization and will be released soon.
1
2
3from openai import OpenAI
4import json
5
6
7def get_current_temperature(location: str, unit: str = "celsius"):
8 """Get current temperature at a location.
9
10 Args:
11 location: The location to get the temperature for, in the format "City, State, Country".
12 unit: The unit to return the temperature in. Defaults to "celsius". (choices: ["celsius", "fahrenheit"])
13
14 Returns:
15 the temperature, the location, and the unit in a dict
16 """
17 return {
18 "temperature": 26.1,
19 "location": location,
20 "unit": unit,
21 }
22
23
24def get_temperature_date(location: str, date: str, unit: str = "celsius"):
25 """Get temperature at a location and date.
26
27 Args:
28 location: The location to get the temperature for, in the format "City, State, Country".
29 date: The date to get the temperature for, in the format "Year-Month-Day".
30 unit: The unit to return the temperature in. Defaults to "celsius". (choices: ["celsius", "fahrenheit"])
31
32 Returns:
33 the temperature, the location, the date and the unit in a dict
34 """
35 return {
36 "temperature": 25.9,
37 "location": location,
38 "date": date,
39 "unit": unit,
40 }
41
42def get_function_by_name(name):
43 if name == "get_current_temperature":
44 return get_current_temperature
45 if name == "get_temperature_date":
46 return get_temperature_date
47
48tools = [{
49 'type': 'function',
50 'function': {
51 'name': 'get_current_temperature',
52 'description': 'Get current temperature at a location.',
53 'parameters': {
54 'type': 'object',
55 'properties': {
56 'location': {
57 'type': 'string',
58 'description': 'The location to get the temperature for, in the format \'City, State, Country\'.'
59 },
60 'unit': {
61 'type': 'string',
62 'enum': [
63 'celsius',
64 'fahrenheit'
65 ],
66 'description': 'The unit to return the temperature in. Defaults to \'celsius\'.'
67 }
68 },
69 'required': [
70 'location'
71 ]
72 }
73 }
74}, {
75 'type': 'function',
76 'function': {
77 'name': 'get_temperature_date',
78 'description': 'Get temperature at a location and date.',
79 'parameters': {
80 'type': 'object',
81 'properties': {
82 'location': {
83 'type': 'string',
84 'description': 'The location to get the temperature for, in the format \'City, State, Country\'.'
85 },
86 'date': {
87 'type': 'string',
88 'description': 'The date to get the temperature for, in the format \'Year-Month-Day\'.'
89 },
90 'unit': {
91 'type': 'string',
92 'enum': [
93 'celsius',
94 'fahrenheit'
95 ],
96 'description': 'The unit to return the temperature in. Defaults to \'celsius\'.'
97 }
98 },
99 'required': [
100 'location',
101 'date'
102 ]
103 }
104 }
105}]
106
107
108
109messages = [
110 {'role': 'user', 'content': 'Today is 2024-11-14, What\'s the temperature in San Francisco now? How about tomorrow?'}
111]
112
113openai_api_key = "EMPTY"
114openai_api_base = "http://0.0.0.0:23333/v1"
115client = OpenAI(
116 api_key=openai_api_key,
117 base_url=openai_api_base,
118)
119model_name = client.models.list().data[0].id
120response = client.chat.completions.create(
121 model=model_name,
122 messages=messages,
123 max_tokens=32768,
124 temperature=0.8,
125 top_p=0.95,
126 extra_body=dict(spaces_between_special_tokens=False),
127 tools=tools)
128print(response.choices[0].message)
129messages.append(response.choices[0].message)
130
131for tool_call in response.choices[0].message.tool_calls:
132 tool_call_args = json.loads(tool_call.function.arguments)
133 tool_call_result = get_function_by_name(tool_call.function.name)(**tool_call_args)
134 tool_call_result = json.dumps(tool_call_result, ensure_ascii=False)
135 messages.append({
136 'role': 'tool',
137 'name': tool_call.function.name,
138 'content': tool_call_result,
139 'tool_call_id': tool_call.id
140 })
141
142response = client.chat.completions.create(
143 model=model_name,
144 messages=messages,
145 temperature=0.8,
146 top_p=0.95,
147 extra_body=dict(spaces_between_special_tokens=False),
148 tools=tools)
149print(response.choices[0].message)enable_thinking=False in tokenizer.apply_chat_template1text = tokenizer.apply_chat_template(
2 messages,
3 tokenize=False,
4 add_generation_prompt=True,
5 enable_thinking=False # think mode indicator
6)enable_thinking parameter in your requests.1from openai import OpenAI
2import json
3
4messages = [
5{
6 'role': 'user',
7 'content': 'who are you'
8}, {
9 'role': 'assistant',
10 'content': 'I am an AI'
11}, {
12 'role': 'user',
13 'content': 'AGI is?'
14}]
15
16openai_api_key = "EMPTY"
17openai_api_base = "http://0.0.0.0:23333/v1"
18client = OpenAI(
19 api_key=openai_api_key,
20 base_url=openai_api_base,
21)
22model_name = client.models.list().data[0].id
23
24response = client.chat.completions.create(
25 model=model_name,
26 messages=messages,
27 temperature=0.8,
28 top_p=0.95,
29 max_tokens=2048,
30 extra_body={
31 "chat_template_kwargs": {"enable_thinking": False}
32 }
33)
34print(json.dumps(response.model_dump(), indent=2, ensure_ascii=False))@misc{bai2025interns1scientificmultimodalfoundation,
title={Intern-S1: A Scientific Multimodal Foundation Model},
author={Lei Bai and Zhongrui Cai and Maosong Cao and Weihan Cao and Chiyu Chen and Haojiong Chen and Kai Chen and Pengcheng Chen and Ying Chen and Yongkang Chen and Yu Cheng and Yu Cheng and Pei Chu and Tao Chu and Erfei Cui and Ganqu Cui and Long Cui and Ziyun Cui and Nianchen Deng and Ning Ding and Nanqin Dong and Peijie Dong and Shihan Dou and Sinan Du and Haodong Duan and Caihua Fan and Ben Gao and Changjiang Gao and Jianfei Gao and Songyang Gao and Yang Gao and Zhangwei Gao and Jiaye Ge and Qiming Ge and Lixin Gu and Yuzhe Gu and Aijia Guo and Qipeng Guo and Xu Guo and Conghui He and Junjun He and Yili Hong and Siyuan Hou and Caiyu Hu and Hanglei Hu and Jucheng Hu and Ming Hu and Zhouqi Hua and Haian Huang and Junhao Huang and Xu Huang and Zixian Huang and Zhe Jiang and Lingkai Kong and Linyang Li and Peiji Li and Pengze Li and Shuaibin Li and Tianbin Li and Wei Li and Yuqiang Li and Dahua Lin and Junyao Lin and Tianyi Lin and Zhishan Lin and Hongwei Liu and Jiangning Liu and Jiyao Liu and Junnan Liu and Kai Liu and Kaiwen Liu and Kuikun Liu and Shichun Liu and Shudong Liu and Wei Liu and Xinyao Liu and Yuhong Liu and Zhan Liu and Yinquan Lu and Haijun Lv and Hongxia Lv and Huijie Lv and Qidang Lv and Ying Lv and Chengqi Lyu and Chenglong Ma and Jianpeng Ma and Ren Ma and Runmin Ma and Runyuan Ma and Xinzhu Ma and Yichuan Ma and Zihan Ma and Sixuan Mi and Junzhi Ning and Wenchang Ning and Xinle Pang and Jiahui Peng and Runyu Peng and Yu Qiao and Jiantao Qiu and Xiaoye Qu and Yuan Qu and Yuchen Ren and Fukai Shang and Wenqi Shao and Junhao Shen and Shuaike Shen and Chunfeng Song and Demin Song and Diping Song and Chenlin Su and Weijie Su and Weigao Sun and Yu Sun and Qian Tan and Cheng Tang and Huanze Tang and Kexian Tang and Shixiang Tang and Jian Tong and Aoran Wang and Bin Wang and Dong Wang and Lintao Wang and Rui Wang and Weiyun Wang and Wenhai Wang and Yi Wang and Ziyi Wang and Ling-I Wu and Wen Wu and Yue Wu and Zijian Wu and Linchen Xiao and Shuhao Xing and Chao Xu and Huihui Xu and Jun Xu and Ruiliang Xu and Wanghan Xu and GanLin Yang and Yuming Yang and Haochen Ye and Jin Ye and Shenglong Ye and Jia Yu and Jiashuo Yu and Jing Yu and Fei Yuan and Bo Zhang and Chao Zhang and Chen Zhang and Hongjie Zhang and Jin Zhang and Qiaosheng Zhang and Qiuyinzhe Zhang and Songyang Zhang and Taolin Zhang and Wenlong Zhang and Wenwei Zhang and Yechen Zhang and Ziyang Zhang and Haiteng Zhao and Qian Zhao and Xiangyu Zhao and Xiangyu Zhao and Bowen Zhou and Dongzhan Zhou and Peiheng Zhou and Yuhao Zhou and Yunhua Zhou and Dongsheng Zhu and Lin Zhu and Yicheng Zou},
year={2025},
eprint={2508.15763},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2508.15763},
}@misc{zou2026interns1proscientificmultimodalfoundation,
title={Intern-S1-Pro: Scientific Multimodal Foundation Model at Trillion Scale},
author={Yicheng Zou and Dongsheng Zhu and Lin Zhu and Tong Zhu and Yunhua Zhou and Peiheng Zhou and Xinyu Zhou and Dongzhan Zhou and Zhiwang Zhou and Yuhao Zhou and Bowen Zhou and Zhanping Zhong and Zhijie Zhong and Haiteng Zhao and Penghao Zhao and Xiaomeng Zhao and Zhiyuan Zhao and Yechen Zhang and Jin Zhang and Wenwei Zhang and Hongjie Zhang and Zhuo Zhang and Wenlong Zhang and Bo Zhang and Chao Zhang and Chen Zhang and Yuhang Zang and Fei Yuan and Jiakang Yuan and Jiashuo Yu and Jinhui Yin and Haochen Ye and Qian Yao and Bowen Yang and Danni Yang and Kaichen Yang and Ziang Yan and Jun Xu and Yicheng Xu and Wanghan Xu and Xuenan Xu and Chao Xu and Ruiliang Xu and Shuhao Xing and Long Xing and Xinchen Xie and Ling-I Wu and Zijian Wu and Zhenyu Wu and Lijun Wu and Yue Wu and Jianyu Wu and Wen Wu and Fan Wu and Xilin Wei and Qi Wei and Bingli Wang and Rui Wang and Ziyi Wang and Zun Wang and Yi Wang and Haomin Wang and Yizhou Wang and Lintao Wang and Yiheng Wang and Longjiang Wang and Bin Wang and Jian Tong and Zhongbo Tian and Huanze Tang and Chen Tang and Shixiang Tang and Yu Sun and Qiushi Sun and Xuerui Su and Qisheng Su and Chenlin Su and Demin Song and Jin Shi and Fukai Shang and Yuchen Ren and Pengli Ren and Xiaoye Qu and Yuan Qu and Jiantao Qiu and Yu Qiao and Runyu Peng and Tianshuo Peng and Jiahui Peng and Qizhi Pei and Zhuoshi Pan and Linke Ouyang and Wenchang Ning and Yichuan Ma and Zerun Ma and Ningsheng Ma and Runyuan Ma and Chengqi Lyu and Haijun Lv and Han Lv and Lindong Lu and Kuikun Liu and Jiangning Liu and Yuhong Liu and Kai Liu and Hongwei Liu and Zhoumianze Liu and Mengjie Liu and Ziyu Liu and Wenran Liu and Yang Liu and Liwei Liu and Kaiwen Liu and Junyao Lin and Junming Lin and Tianyang Lin and Dahua Lin and Jianze Liang and Linyang Li and Peiji Li and Zonglin Li and Zehao Li and Pengze Li and Guoyan Li and Lingkai Kong and Linglin Jing and Zhenjiang Jin and Feifei Jiang and Qian Jiang and Junhao Huang and Zixian Huang and Haian Huang and Zhouqi Hua and Han Hu and Linfeng Hou and Yinan He and Conghui He and Tianyao He and Xu Guo and Qipeng Guo and Aijia Guo and Yuzhe Gu and Lixin Gu and Jingyang Gong and Qiming Ge and Jiaye Ge and Songyang Gao and Jianfei Gao and Xinyu Fang and Caihua fan and Yue Fan and Yanhui Duan and Zichen Ding and Shengyuan Ding and Xuanlang Dai and Erfei Cui and Ganqu Cui and Pei Chu and Tao Chu and Guangran Cheng and Yu Cheng and Kai Chen and Yongkang Chen and Chiyu Chen and Guanzhou Chen and Qiaosheng Chen and Sitao Chen and Xin Chen and Haojiong Chen and Yicheng Chen and Weihan Cao and Yuhang Cao and Qinglong Cao and Lei Bai},
year={2026},
eprint={2603.25040},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2603.25040},
}