Files changed (5) hide show
  1. README.md +3 -4
  2. SYSTEM_PROMPT.txt +2 -1
  3. chat_template.json +1 -1
  4. config.json +1 -1
  5. params.json +0 -1
README.md CHANGED
@@ -1,5 +1,4 @@
1
  ---
2
- library_name: vllm
3
  language:
4
  - en
5
  - fr
@@ -26,14 +25,14 @@ language:
26
  - hi
27
  - bn
28
  license: apache-2.0
 
29
  inference: false
30
  base_model:
31
  - mistralai/Mistral-Small-3.1-24B-Base-2503
32
  extra_gated_description: >-
33
  If you want to learn more about how we process your personal data, please read
34
  our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
35
- tags:
36
- - mistral-common
37
  ---
38
 
39
  # Model Card for Mistral-Small-3.1-24B-Instruct-2503
@@ -156,7 +155,7 @@ You cannot perform any web search or access internet to open URLs, links etc. If
156
 
157
  # MULTI-MODAL INSTRUCTIONS
158
 
159
- You have the ability to read images, but you cannot generate images.
160
  You cannot read nor transcribe audio files or videos."""
161
  ```
162
 
 
1
  ---
 
2
  language:
3
  - en
4
  - fr
 
25
  - hi
26
  - bn
27
  license: apache-2.0
28
+ library_name: vllm
29
  inference: false
30
  base_model:
31
  - mistralai/Mistral-Small-3.1-24B-Base-2503
32
  extra_gated_description: >-
33
  If you want to learn more about how we process your personal data, please read
34
  our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
35
+ pipeline_tag: image-text-to-text
 
36
  ---
37
 
38
  # Model Card for Mistral-Small-3.1-24B-Instruct-2503
 
155
 
156
  # MULTI-MODAL INSTRUCTIONS
157
 
158
+ You have the ability to read images, but you cannot generate images. You also cannot transcribe audio files or videos.
159
  You cannot read nor transcribe audio files or videos."""
160
  ```
161
 
SYSTEM_PROMPT.txt CHANGED
@@ -15,4 +15,5 @@ You cannot perform any web search or access internet to open URLs, links etc. If
15
 
16
  # MULTI-MODAL INSTRUCTIONS
17
 
18
- You have the ability to read images, but you cannot generate images. You cannot read nor transcribe audio files or videos.
 
 
15
 
16
  # MULTI-MODAL INSTRUCTIONS
17
 
18
+ You have the ability to read images, but you cannot generate images. You also cannot transcribe audio files or videos.
19
+ You cannot read nor transcribe audio files or videos.
chat_template.json CHANGED
@@ -1,3 +1,3 @@
1
  {
2
- "chat_template": "{%- set today = strftime_now(\"%Y-%m-%d\") %}\n{%- set default_system_message = \"You are Mistral Small 3, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris.\\nYour knowledge base was last updated on 2023-10-01. The current date is \" + today + \".\\n\\nWhen you're not sure about some information, you say that you don't have the information and don't make up anything.\\nIf the user's question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. \\\"What are some good restaurants around me?\\\" => \\\"Where are you?\\\" or \\\"When is the next flight to Tokyo\\\" => \\\"Where do you travel from?\\\")\" %}\n\n{{- bos_token }}\n\n{%- if messages[0]['role'] == 'system' %}\n {%- if messages[0]['content'] is string %}\n {%- set system_message = messages[0]['content'] %}\n {%- else %}\n {%- set system_message = messages[0]['content'][0]['text'] %}\n {%- endif %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set system_message = default_system_message %}\n {%- set loop_messages = messages %}\n{%- endif %}\n{{- '[SYSTEM_PROMPT]' + system_message + '[/SYSTEM_PROMPT]' }}\n\n{%- for message in loop_messages %}\n {%- if message['role'] == 'user' %}\n {%- if message['content'] is string %}\n {{- '[INST]' + message['content'] + '[/INST]' }}\n {%- else %}\n {{- '[INST]' }}\n {%- for block in message['content'] %}\n {%- if block['type'] == 'text' %}\n {{- block['text'] }}\n {%- elif block['type'] in ['image', 'image_url'] %}\n {{- '[IMG]' }}\n {%- else %}\n {{- raise_exception('Only text and image blocks are supported in message content!') }}\n {%- endif %}\n {%- endfor %}\n {{- '[/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'system' %}\n {%- if message['content'] is string %}\n {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }}\n {%- else %}\n {{- '[SYSTEM_PROMPT]' + message['content'][0]['text'] + '[/SYSTEM_PROMPT]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {%- if message['content'] is string %}\n {{- message['content'] + eos_token }}\n {%- else %}\n {{- message['content'][0]['text'] + eos_token }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Only user, system and assistant roles are supported!') }}\n {%- endif %}\n{%- endfor %}"
3
  }
 
1
  {
2
+ "chat_template": "{%- set today = strftime_now(\"%Y-%m-%d\") %}\n{%- set default_system_message = \"You are Mistral Small 3, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris.\\nYour knowledge base was last updated on 2023-10-01. The current date is \" + today + \".\\n\\nWhen you're not sure about some information, you say that you don't have the information and don't make up anything.\\nIf the user's question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. \\\"What are some good restaurants around me?\\\" => \\\"Where are you?\\\" or \\\"When is the next flight to Tokyo\\\" => \\\"Where do you travel from?\\\")\" %}\n\n{{- bos_token }}\n\n{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set system_message = default_system_message %}\n {%- set loop_messages = messages %}\n{%- endif %}\n{{- '[SYSTEM_PROMPT]' + system_message + '[/SYSTEM_PROMPT]' }}\n\n{%- for message in loop_messages %}\n {%- if message['role'] == 'user' %}\n\t {%- if message['content'] is string %}\n {{- '[INST]' + message['content'] + '[/INST]' }}\n\t {%- else %}\n\t\t {{- '[INST]' }}\n\t\t {%- for block in message['content'] %}\n\t\t\t {%- if block['type'] == 'text' %}\n\t\t\t\t {{- block['text'] }}\n\t\t\t {%- elif block['type'] == 'image' or block['type'] == 'image_url' %}\n\t\t\t\t {{- '[IMG]' }}\n\t\t\t\t{%- else %}\n\t\t\t\t {{- raise_exception('Only text and image blocks are supported in message content!') }}\n\t\t\t\t{%- endif %}\n\t\t\t{%- endfor %}\n\t\t {{- '[/INST]' }}\n\t\t{%- endif %}\n {%- elif message['role'] == 'system' %}\n {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }}\n {%- elif message['role'] == 'assistant' %}\n {{- message['content'] + eos_token }}\n {%- else %}\n {{- raise_exception('Only user, system and assistant roles are supported!') }}\n {%- endif %}\n{%- endfor %}"
3
  }
config.json CHANGED
@@ -30,7 +30,7 @@
30
  "vision_config": {
31
  "attention_dropout": 0.0,
32
  "head_dim": 64,
33
- "hidden_act": "silu",
34
  "hidden_size": 1024,
35
  "image_size": 1540,
36
  "initializer_range": 0.02,
 
30
  "vision_config": {
31
  "attention_dropout": 0.0,
32
  "head_dim": 64,
33
+ "hidden_act": "gelu",
34
  "hidden_size": 1024,
35
  "image_size": 1540,
36
  "initializer_range": 0.02,
params.json CHANGED
@@ -8,7 +8,6 @@
8
  "rope_theta": 1000000000.0,
9
  "norm_eps": 1e-05,
10
  "vocab_size": 131072,
11
- "max_position_embeddings": 131072,
12
  "vision_encoder": {
13
  "hidden_size": 1024,
14
  "num_channels": 3,
 
8
  "rope_theta": 1000000000.0,
9
  "norm_eps": 1e-05,
10
  "vocab_size": 131072,
 
11
  "vision_encoder": {
12
  "hidden_size": 1024,
13
  "num_channels": 3,