|
8968 | 8968 | ]
|
8969 | 8969 | }
|
8970 | 8970 | },
|
| 8971 | + { |
| 8972 | + "version":1, |
| 8973 | + "context_length":32768, |
| 8974 | + "model_name":"Ovis2", |
| 8975 | + "model_lang":[ |
| 8976 | + "en", |
| 8977 | + "zh" |
| 8978 | + ], |
| 8979 | + "model_ability":[ |
| 8980 | + "chat", |
| 8981 | + "vision" |
| 8982 | + ], |
| 8983 | + "model_description":"Ovis (Open VISion) is a novel Multimodal Large Language Model (MLLM) architecture, designed to structurally align visual and textual embeddings.", |
| 8984 | + "model_specs":[ |
| 8985 | + { |
| 8986 | + "model_format":"pytorch", |
| 8987 | + "model_size_in_billions":1, |
| 8988 | + "quantizations":[ |
| 8989 | + "none" |
| 8990 | + ], |
| 8991 | + "model_id":"AIDC-AI/Ovis2-1B", |
| 8992 | + "model_hub": "modelscope" |
| 8993 | + }, |
| 8994 | + { |
| 8995 | + "model_format":"pytorch", |
| 8996 | + "model_size_in_billions":2, |
| 8997 | + "quantizations":[ |
| 8998 | + "none" |
| 8999 | + ], |
| 9000 | + "model_id":"AIDC-AI/Ovis2-2B", |
| 9001 | + "model_hub": "modelscope" |
| 9002 | + }, |
| 9003 | + { |
| 9004 | + "model_format":"pytorch", |
| 9005 | + "model_size_in_billions":4, |
| 9006 | + "quantizations":[ |
| 9007 | + "none" |
| 9008 | + ], |
| 9009 | + "model_id":"AIDC-AI/Ovis2-4B", |
| 9010 | + "model_hub": "modelscope" |
| 9011 | + }, |
| 9012 | + { |
| 9013 | + "model_format":"pytorch", |
| 9014 | + "model_size_in_billions":8, |
| 9015 | + "quantizations":[ |
| 9016 | + "none" |
| 9017 | + ], |
| 9018 | + "model_id":"AIDC-AI/Ovis2-8B", |
| 9019 | + "model_hub": "modelscope" |
| 9020 | + }, |
| 9021 | + { |
| 9022 | + "model_format":"pytorch", |
| 9023 | + "model_size_in_billions":16, |
| 9024 | + "quantizations":[ |
| 9025 | + "none" |
| 9026 | + ], |
| 9027 | + "model_id":"AIDC-AI/Ovis2-16B", |
| 9028 | + "model_hub": "modelscope" |
| 9029 | + }, |
| 9030 | + { |
| 9031 | + "model_format":"pytorch", |
| 9032 | + "model_size_in_billions":34, |
| 9033 | + "quantizations":[ |
| 9034 | + "none" |
| 9035 | + ], |
| 9036 | + "model_id":"AIDC-AI/Ovis2-34B", |
| 9037 | + "model_hub": "modelscope" |
| 9038 | + }, |
| 9039 | + { |
| 9040 | + "model_format":"gptq", |
| 9041 | + "model_size_in_billions":2, |
| 9042 | + "quantizations":[ |
| 9043 | + "Int4" |
| 9044 | + ], |
| 9045 | + "model_id":"AIDC-AI/Ovis2-2B-GPTQ-{quantization}", |
| 9046 | + "model_hub": "modelscope" |
| 9047 | + }, |
| 9048 | + { |
| 9049 | + "model_format":"gptq", |
| 9050 | + "model_size_in_billions":4, |
| 9051 | + "quantizations":[ |
| 9052 | + "Int4" |
| 9053 | + ], |
| 9054 | + "model_id":"AIDC-AI/Ovis2-4B-GPTQ-{quantization}", |
| 9055 | + "model_hub": "modelscope" |
| 9056 | + }, |
| 9057 | + { |
| 9058 | + "model_format":"gptq", |
| 9059 | + "model_size_in_billions":8, |
| 9060 | + "quantizations":[ |
| 9061 | + "Int4" |
| 9062 | + ], |
| 9063 | + "model_id":"AIDC-AI/Ovis2-8B-GPTQ-{quantization}", |
| 9064 | + "model_hub": "modelscope" |
| 9065 | + }, |
| 9066 | + { |
| 9067 | + "model_format":"gptq", |
| 9068 | + "model_size_in_billions":16, |
| 9069 | + "quantizations":[ |
| 9070 | + "Int4" |
| 9071 | + ], |
| 9072 | + "model_id":"AIDC-AI/Ovis2-16B-GPTQ-{quantization}", |
| 9073 | + "model_hub": "modelscope" |
| 9074 | + }, |
| 9075 | + { |
| 9076 | + "model_format":"gptq", |
| 9077 | + "model_size_in_billions":34, |
| 9078 | + "quantizations":[ |
| 9079 | + "Int4", |
| 9080 | + "Int8" |
| 9081 | + ], |
| 9082 | + "model_id":"AIDC-AI/Ovis2-34B-GPTQ-{quantization}", |
| 9083 | + "model_hub": "modelscope" |
| 9084 | + } |
| 9085 | + ], |
| 9086 | + "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n", |
| 9087 | + "stop_token_ids": [ |
| 9088 | + 151645, |
| 9089 | + 151643 |
| 9090 | + ], |
| 9091 | + "stop": [ |
| 9092 | + "<|im_end|>", |
| 9093 | + "<|endoftext|>" |
| 9094 | + ] |
| 9095 | + }, |
8971 | 9096 | {
|
8972 | 9097 | "version": 1,
|
8973 | 9098 | "context_length": 32768,
|
|
0 commit comments