Update license

#2
by Xiao-AMD - opened
Files changed (4) hide show
  1. LICENSE-MODEL +0 -56
  2. NOTICE +0 -1
  3. README.md +1 -1
  4. chat_template.jinja +0 -159
LICENSE-MODEL DELETED
@@ -1,56 +0,0 @@
1
- MINIMAX MODEL LICENSE
2
- MiniMax-M2.5 Version Release Date: 2026-02-13
3
-
4
- 1. Definitions
5
-
6
- "Agreement" means the terms and conditions for use, reproduction, distribution and modification of the Model Materials set forth herein.
7
-
8
- "Licensee" or "you" means you, or your employer or any other person or entity (if you are entering into this Agreement on such person or entity's behalf), of the age required under applicable laws, rules or regulations to provide legal consent and that has legal authority to bind your employer or such other person or entity if you are entering in this Agreement on their behalf.
9
-
10
- "Model" means the foundational large language models and software and algorithms, including machine-learning model code, trained model weights, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing distributed by MiniMax.
11
-
12
- "Model Materials" means, collectively, the Model and any source code, scripts, specifications, manuals and documentation accompanying the Model (and any portion thereof) made available under this Agreement.
13
-
14
- "MiniMax" or "we" means MiniMax AI.
15
-
16
- 2. License Rights and Redistribution
17
-
18
- a. Grant of Rights. You are granted a non-exclusive, worldwide and royalty-free limited license under MiniMax's intellectual property or other rights owned by MiniMax embodied in the Model Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the Model Materials.
19
-
20
- b. Redistribution and Use.
21
-
22
- i. If you distribute or make available the Model Materials (or any derivative works thereof), or a product or service that uses any of them, including another AI model, you shall provide a copy of this Agreement with any such the Model Materials or derivative works and cause any modified files to carry prominent notices stating that you changed the files. You may add your own copyright statement to your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of your modifications, or for any such derivative works as a whole, provided your use, reproduction, and distribution of the work otherwise complies with the terms and conditions of this Agreement.
23
-
24
- ii. You must retain in all copies of the Model Materials that you distribute the following attribution notice within a "Notice" text file distributed as a part of such copies: "MiniMax AI model is licensed under the MiniMax Model License, Copyright © MiniMax. All Rights Reserved."
25
-
26
- iii. Your use of the Model Materials must comply with applicable laws and regulations (including trade compliance laws and regulations) and adhere to the Prohibited Uses Policy for the Model Materials, which is hereby incorporated by reference into this Agreement.
27
-
28
- 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE MODEL MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, AND MINIMAX DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE MODEL MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE MODEL MATERIALS AND ANY OUTPUT AND RESULTS.
29
-
30
- 4. Limitation of Liability. IN NO EVENT WILL MINIMAX OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF MINIMAX OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
31
-
32
- 5. Intellectual Property.
33
-
34
- a. No trademark license is granted to use the trade names, trademarks, service marks, or product names of MiniMax, except as required to fulfill notice requirements under this Agreement.
35
-
36
- b. Subject to MiniMax's ownership of the Model Materials and derivatives made by or for MiniMax, with respect to any derivative works and modifications of the Model Materials that are made by you, as between you and MiniMax, you are and will be the owner of such derivative works and modifications.
37
-
38
- c. If you institute litigation or other proceedings against MiniMax or any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model Materials or outputs or results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable by you, then any licenses granted to you under this Agreement shall terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold harmless MiniMax from and against any claim by any third party arising out of or related to your use or distribution of the Model Materials.
39
-
40
- 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this Agreement or access to the Model Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein. MiniMax may terminate this Agreement if you are in breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete and cease use of the Model Materials. Sections 3, 4 and 7 shall survive the termination of this Agreement.
41
-
42
- 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of Singapore without regard to choice of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement. Any dispute arising out of or in connection with this Agreement, including any question regarding its existence, validity or termination, shall be referred to and finally resolved by arbitration administered by the Singapore International Arbitration Centre ("SIAC") in accordance with the Arbitration Rules of the Singapore International Arbitration Centre ("SIAC Rules") for the time being in force, which rules are deemed to be incorporated by reference in this clause.
43
-
44
- Prohibited Uses Policy
45
-
46
- You agree you will not use, or allow others to use, the Models or any derivatives of the Models to:
47
-
48
- 1. Violate any applicable federal, state, local, or international law or regulation, or infringe upon the lawful rights or interests of any third party.
49
- 2. Assist with, engage in or otherwise support any military purpose.
50
- 3. Exploit, harm, or attempt to exploit or harm minors in any way.
51
- 4. Generate or disseminate false or misleading information with the intent to cause harm.
52
- 5. Generate or disseminate content prohibited by applicable laws or regulations.
53
- 6. Generate or disseminate personally identifiable information without proper authorization or for unlawful or unreasonable purposes.
54
- 7. Defame, disparage, harass, or cause harm to any individual or entity.
55
- 8. Conduct fully automated decision-making that adversely affects an individual's legal rights or creates or modifies a binding, enforceable obligation.
56
- 9. Promote discrimination, hate speech, or harmful behavior against individuals or groups based on race or ethnic origin, religion, disability, age, nationality and national origin, veteran status, sexual orientation, gender or gender identity, caste, immigration status, or any other characteristic that is associated with systemic discrimination or marginalization.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
NOTICE DELETED
@@ -1 +0,0 @@
1
- MiniMax AI model is licensed under the MiniMax Model License, Copyright © MiniMax. All Rights Reserved.
 
 
README.md CHANGED
@@ -83,7 +83,7 @@ The GSM8K results were obtained using the lm-eval framework, based on the Docker
83
  ```
84
  export VLLM_ROCM_USE_AITER=1
85
 
86
- export model_dir=MiniMaxAI/MiniMax-M2.5-MXFP4/
87
  log_file=minimax25-lm_eval_gsm8k_mxfp4.txt
88
 
89
  lm_eval --model vllm --model_args pretrained=$model_dir,enforce_eager=True,trust_remote_code=True,max_model_len=16384 \
 
83
  ```
84
  export VLLM_ROCM_USE_AITER=1
85
 
86
+ export model_dir=MiniMaxAI/MiniMax-M2.5-mxfp4/
87
  log_file=minimax25-lm_eval_gsm8k_mxfp4.txt
88
 
89
  lm_eval --model vllm --model_args pretrained=$model_dir,enforce_eager=True,trust_remote_code=True,max_model_len=16384 \
chat_template.jinja DELETED
@@ -1,159 +0,0 @@
1
- {# ----------‑‑‑ special token variables ‑‑‑---------- #}
2
- {%- set toolcall_begin_token = '<minimax:tool_call>' -%}
3
- {%- set toolcall_end_token = '</minimax:tool_call>' -%}
4
- {#- Tool Rendering Functions ============================================== -#}
5
- {%- macro render_tool_namespace(namespace_name, tool_list) -%}
6
- {%- for tool in tool_list -%}
7
- <tool>{{ tool.function | tojson(ensure_ascii=False) }}</tool>
8
- {% endfor -%}
9
- {%- endmacro -%}
10
- {%- macro visible_text(content) -%}
11
- {%- if content is string -%}
12
- {{ content }}
13
- {%- elif content is iterable and content is not mapping -%}
14
- {%- for item in content -%}
15
- {%- if item is mapping and item.type == 'text' -%}
16
- {{- item.text }}
17
- {%- elif item is string -%}
18
- {{- item }}
19
- {%- endif -%}
20
- {%- endfor -%}
21
- {%- else -%}
22
- {{- content }}
23
- {%- endif -%}
24
- {%- endmacro -%}
25
- {#- System Message Construction ============================================ -#}
26
- {%- macro build_system_message(system_message) -%}
27
- {%- if system_message and system_message.content -%}
28
- {{- visible_text(system_message.content) }}
29
- {%- else -%}
30
- {%- if model_identity is not defined -%}
31
- {%- set model_identity = "You are a helpful assistant. Your name is MiniMax-M2.5 and is built by MiniMax." -%}
32
- {%- endif -%}
33
- {{- model_identity }}
34
- {%- endif -%}
35
-
36
- {#- Handle current_date -#}
37
- {%- if system_message and system_message.current_date -%}
38
- {{- '\n' ~ 'Current date: ' + system_message.current_date }}
39
- {%- endif -%}
40
- {#- Handle current_location -#}
41
- {%- if system_message and system_message.current_location -%}
42
- {{- '\n' ~ 'Current location: ' + system_message.current_location }}
43
- {%- endif -%}
44
- {%- endmacro -%}
45
- {#- Main Template Logic ================================================= -#}
46
- {#- Extract system message (only first message if it's system) -#}
47
- {%- set system_message = none -%}
48
- {%- set conversation_messages = messages -%}
49
- {%- if messages and messages[0].role == "system" -%}
50
- {%- set system_message = messages[0] -%}
51
- {%- set conversation_messages = messages[1:] -%}
52
- {%- endif -%}
53
- {#- Get the last user message turn, for interleved thinking -#}
54
- {%- set ns = namespace(last_user_index=-1) %}
55
- {% for m in conversation_messages %}
56
- {%- if m.role == 'user' %}
57
- {% set ns.last_user_index = loop.index0 -%}
58
- {%- endif %}
59
- {%- endfor %}
60
- {#- Render system message -#}
61
- {{- ']~!b[' ~ ']~b]system' ~ '\n' }}
62
- {{- build_system_message(system_message) }}
63
- {#- Render tools if available -#}
64
- {%- if tools -%}
65
- {{- '\n\n' ~ '# Tools' ~ '\n' ~ 'You may call one or more tools to assist with the user query.\nHere are the tools available in JSONSchema format:' ~ '\n' }}
66
- {{- '\n' ~ '<tools>' ~ '\n' }}
67
- {{- render_tool_namespace("functions", tools) }}
68
- {{- '</tools>' ~ '\n\n' }}
69
- {{- 'When making tool calls, use XML format to invoke tools and pass parameters:' ~ '\n' }}
70
- {{- '\n' ~ toolcall_begin_token }}
71
- <invoke name="tool-name-1">
72
- <parameter name="param-key-1">param-value-1</parameter>
73
- <parameter name="param-key-2">param-value-2</parameter>
74
- ...
75
- </invoke>
76
- {{- '\n' ~ toolcall_end_token }}
77
- {%- endif -%}
78
- {{- '[e~[\n' }}
79
-
80
- {#- Render messages -#}
81
- {%- set last_tool_call = namespace(name=none) -%}
82
- {%- for message in conversation_messages -%}
83
- {%- if message.role == 'assistant' -%}
84
- {#- Only render reasoning_content if no user message follows -#}
85
- {{- ']~b]ai' ~ '\n' }}
86
-
87
- {%- set reasoning_content = '' %}
88
- {%- set content = visible_text(message.content) %}
89
- {%- if message.reasoning_content is string %}
90
- {%- set reasoning_content = message.reasoning_content %}
91
- {%- else %}
92
- {%- if '</think>' in content %}
93
- {%- set reasoning_content = content.split('</think>')[0].strip('\n').split('<think>')[-1].strip('\n') %}
94
- {%- set content = content.split('</think>')[-1].strip('\n') %}
95
- {%- endif %}
96
- {%- endif %}
97
- {%- if reasoning_content and loop.index0 > ns.last_user_index -%}
98
- {{- '<think>' ~ '\n' ~ reasoning_content ~ '\n' ~ '</think>' ~ '\n\n' }}
99
- {%- endif -%}
100
- {%- if content -%}
101
- {{- content }}
102
- {%- endif -%}
103
- {%- if message.tool_calls -%}
104
- {{- '\n' ~ toolcall_begin_token ~ '\n' }}
105
-
106
- {%- for tool_call in message.tool_calls -%}
107
- {%- if tool_call.function %}
108
- {%- set tool_call = tool_call.function %}
109
- {%- endif %}
110
- {{- '<invoke name="' + tool_call.name + '">' }}
111
- {% set _args = tool_call.arguments %}
112
- {%- for k, v in _args.items() %}
113
- {{- '<parameter name="' + k + '">' }}
114
- {{- v | tojson(ensure_ascii=False) if v is not string else v }}
115
- {{- '</parameter>' }}
116
- {% endfor %}
117
- {{- '</invoke>' ~ '\n' }}
118
- {%- endfor -%}
119
-
120
- {{- toolcall_end_token}}
121
- {%- set last_tool_call.name = message.tool_calls[-1].name -%}
122
- {%- else -%}
123
- {%- set last_tool_call.name = none -%}
124
- {%- endif -%}
125
- {{- '[e~[' ~ '\n' }}
126
-
127
- {%- elif message.role == 'tool' -%}
128
- {%- if last_tool_call.name is none -%}
129
- {{- raise_exception("Message has tool role, but there was no previous assistant message with a tool call!") }}
130
- {%- endif -%}
131
- {%- if loop.first or (conversation_messages[loop.index0 - 1].role != 'tool') -%}
132
- {{- ']~b]tool' }}
133
- {%- endif -%}
134
- {%- if message.content is string -%}
135
- {{- '\n<response>' }}
136
- {{- message.content }}
137
- {{- '</response>' }}
138
- {%- else -%}
139
- {%- for tr in message.content -%}
140
- {{- '\n<response>' }}
141
- {{- tr.output if tr.output is defined else (tr.text if tr.type == 'text' and tr.text is defined else tr) }}
142
- {{- '\n</response>' }}
143
- {%- endfor -%}
144
- {%- endif -%}
145
- {%- if loop.last or (conversation_messages[loop.index0 + 1].role != 'tool') -%}
146
- {{- '[e~[\n' -}}
147
- {%- endif -%}
148
-
149
- {%- elif message.role == 'user' -%}
150
- {{- ']~b]user' ~ '\n' }}
151
- {{- visible_text(message.content) }}
152
- {{- '[e~[' ~ '\n' }}
153
- {%- endif -%}
154
- {%- endfor -%}
155
-
156
- {#- Generation prompt -#}
157
- {%- if add_generation_prompt -%}
158
- {{- ']~b]ai' ~ '\n' ~ '<think>' ~ '\n' }}
159
- {%- endif -%}