SchuhFiedel commited on
Commit
9e7bba8
·
1 Parent(s): 19a55f3

Modelfiles for Ollama Added

Browse files
Modelfile_f16.txt ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM C:\Users\maxim\.ollama\models\models\llama3.1-fine-tune-test-2\unsloth.F16.gguf
2
+ TEMPLATE """{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
3
+ {{- if .System }}
4
+
5
+ {{ .System }}
6
+ {{- end }}
7
+ {{- if .Tools }}
8
+
9
+ Cutting Knowledge Date: December 2023
10
+
11
+ When you receive a tool call response, use the output to format an answer to the orginal user question.
12
+
13
+ You are a helpful assistant with tool calling capabilities.
14
+ {{- end }}
15
+ {{- end }}<|eot_id|>
16
+ {{- range $i, $_ := .Messages }}
17
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
18
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
19
+ {{- if and $.Tools $last }}
20
+
21
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
22
+
23
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
24
+
25
+ {{ range $.Tools }}
26
+ {{- . }}
27
+ {{ end }}
28
+ {{- end }}
29
+
30
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
31
+
32
+ {{ end }}
33
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
34
+ {{- if .ToolCalls }}
35
+
36
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
37
+ {{- else }}
38
+
39
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
40
+ {{- end }}
41
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
42
+
43
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
44
+
45
+ {{ end }}
46
+ {{- end }}
47
+ {{- end }}"""
48
+ PARAMETER stop <|start_header_id|>
49
+ PARAMETER stop <|end_header_id|>
50
+ PARAMETER stop <|eot_id|>
51
+ LICENSE "LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
52
+ Llama 3.1 Version Release Date: July 23, 2024
53
+
54
+ “Agreement” means the terms and conditions for use, reproduction, distribution and modification of the
55
+ Llama Materials set forth herein.
56
+
57
+ “Documentation” means the specifications, manuals and documentation accompanying Llama 3.1
58
+ distributed by Meta at https://llama.meta.com/doc/overview.
59
+
60
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into
61
+ this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or
62
+ regulations to provide legal consent and that has legal authority to bind your employer or such other
63
+ person or entity if you are entering in this Agreement on their behalf.
64
+
65
+ “Llama 3.1” means the foundational large language models and software and algorithms, including
66
+ machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
67
+ fine-tuning enabling code and other elements of the foregoing distributed by Meta at
68
+ https://llama.meta.com/llama-downloads.
69
+
70
+ “Llama Materials” means, collectively, Meta’s proprietary Llama 3.1 and Documentation (and any
71
+ portion thereof) made available under this Agreement.
72
+
73
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your
74
+ principal place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you are located
75
+ outside of the EEA or Switzerland).
76
+
77
+ By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
78
+ you agree to be bound by this Agreement.
79
+
80
+ 1. License Rights and Redistribution.
81
+
82
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free
83
+ limited license under Meta’s intellectual property or other rights owned by Meta embodied in the Llama
84
+ Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the
85
+ Llama Materials.
86
+
87
+ b. Redistribution and Use.
88
+
89
+ i. If you distribute or make available the Llama Materials (or any derivative works
90
+ thereof), or a product or service (including another AI model) that contains any of them, you shall (A)
91
+ provide a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with
92
+ Llama” on a related website, user interface, blogpost, about page, or product documentation. If you use
93
+ the Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or
94
+ otherwise improve an AI model, which is distributed or made available, you shall also include “Llama” at
95
+ the beginning of any such AI model name.
96
+
97
+ ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
98
+ of an integrated end user product, then Section 2 of this Agreement will not apply to you.
99
+
100
+ iii. You must retain in all copies of the Llama Materials that you distribute the following
101
+ attribution notice within a “Notice” text file distributed as a part of such copies: “Llama 3.1 is
102
+ licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights
103
+ Reserved.”
104
+
105
+ iv. Your use of the Llama Materials must comply with applicable laws and regulations
106
+ (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Llama
107
+ Materials (available at https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated by
108
+ reference into this Agreement.
109
+
110
+ 2. Additional Commercial Terms. If, on the Llama 3.1 version release date, the monthly active users
111
+ of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700
112
+ million monthly active users in the preceding calendar month, you must request a license from Meta,
113
+ which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the
114
+ rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
115
+
116
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY
117
+ OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF
118
+ ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,
119
+ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT,
120
+ MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR
121
+ DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND
122
+ ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
123
+ RESULTS.
124
+
125
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF
126
+ LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING
127
+ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,
128
+ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
129
+ OF THE POSSIBILITY OF ANY OF THE FOREGOING.
130
+
131
+ 5. Intellectual Property.
132
+
133
+ a. No trademark licenses are granted under this Agreement, and in connection with the Llama
134
+ Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other
135
+ or any of its affiliates, except as required for reasonable and customary use in describing and
136
+ redistributing the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a license to
137
+ use “Llama” (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will
138
+ comply with Meta’s brand guidelines (currently accessible at
139
+ https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill arising out of your use
140
+ of the Mark will inure to the benefit of Meta.
141
+
142
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with
143
+ respect to any derivative works and modifications of the Llama Materials that are made by you, as
144
+ between you and Meta, you are and will be the owner of such derivative works and modifications.
145
+
146
+ c. If you institute litigation or other proceedings against Meta or any entity (including a
147
+ cross-claim or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs or
148
+ results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other
149
+ rights owned or licensable by you, then any licenses granted to you under this Agreement shall
150
+ terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold
151
+ harmless Meta from and against any claim by any third party arising out of or related to your use or
152
+ distribution of the Llama Materials.
153
+
154
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this
155
+ Agreement or access to the Llama Materials and will continue in full force and effect until terminated in
156
+ accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in
157
+ breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete
158
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the termination of this
159
+ Agreement.
160
+
161
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of
162
+ the State of California without regard to choice of law principles, and the UN Convention on Contracts
163
+ for the International Sale of Goods does not apply to this Agreement. The courts of California shall have
164
+ exclusive jurisdiction of any dispute arising out of this Agreement.
165
+
166
+ # Llama 3.1 Acceptable Use Policy
167
+
168
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 3.1. If you
169
+ access or use Llama 3.1, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of
170
+ this policy can be found at [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)
171
+
172
+ ## Prohibited Uses
173
+
174
+ We want everyone to use Llama 3.1 safely and responsibly. You agree you will not use, or allow
175
+ others to use, Llama 3.1 to:
176
+
177
+ 1. Violate the law or others’ rights, including to:
178
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
179
+ 1. Violence or terrorism
180
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
181
+ 3. Human trafficking, exploitation, and sexual violence
182
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
183
+ 5. Sexual solicitation
184
+ 6. Any other criminal activity
185
+ 3. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
186
+ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
187
+ 5. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
188
+ 6. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
189
+ 7. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
190
+ 8. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
191
+
192
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 3.1 related to the following:
193
+ 1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
194
+ 2. Guns and illegal weapons (including weapon development)
195
+ 3. Illegal drugs and regulated/controlled substances
196
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
197
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
198
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
199
+
200
+ 3. Intentionally deceive or mislead others, including use of Llama 3.1 related to the following:
201
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
202
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
203
+ 3. Generating, promoting, or further distributing spam
204
+ 4. Impersonating another individual without consent, authorization, or legal right
205
+ 5. Representing that the use of Llama 3.1 or outputs are human-generated
206
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
207
+
208
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
209
+
210
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation
211
+ of this Policy through one of the following means:
212
+
213
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)
214
+ * Reporting risky content generated by the model: developers.facebook.com/llama_output_feedback
215
+ * Reporting bugs and security concerns: facebook.com/whitehat/info
216
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama 3.1: [email protected]"
Modelfile_f16_docker.txt ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM /root/.ollama/models/llama3.1-fine-tune-test-2/unsloth.F16.gguf
2
+ TEMPLATE """{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
3
+ {{- if .System }}
4
+
5
+ {{ .System }}
6
+ {{- end }}
7
+ {{- if .Tools }}
8
+
9
+ Cutting Knowledge Date: December 2023
10
+
11
+ When you receive a tool call response, use the output to format an answer to the orginal user question.
12
+
13
+ You are a helpful assistant with tool calling capabilities.
14
+ {{- end }}
15
+ {{- end }}<|eot_id|>
16
+ {{- range $i, $_ := .Messages }}
17
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
18
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
19
+ {{- if and $.Tools $last }}
20
+
21
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
22
+
23
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
24
+
25
+ {{ range $.Tools }}
26
+ {{- . }}
27
+ {{ end }}
28
+ {{- end }}
29
+
30
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
31
+
32
+ {{ end }}
33
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
34
+ {{- if .ToolCalls }}
35
+
36
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
37
+ {{- else }}
38
+
39
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
40
+ {{- end }}
41
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
42
+
43
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
44
+
45
+ {{ end }}
46
+ {{- end }}
47
+ {{- end }}"""
48
+ PARAMETER stop <|start_header_id|>
49
+ PARAMETER stop <|end_header_id|>
50
+ PARAMETER stop <|eot_id|>
51
+ LICENSE "LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
52
+ Llama 3.1 Version Release Date: July 23, 2024
53
+
54
+ “Agreement” means the terms and conditions for use, reproduction, distribution and modification of the
55
+ Llama Materials set forth herein.
56
+
57
+ “Documentation” means the specifications, manuals and documentation accompanying Llama 3.1
58
+ distributed by Meta at https://llama.meta.com/doc/overview.
59
+
60
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into
61
+ this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or
62
+ regulations to provide legal consent and that has legal authority to bind your employer or such other
63
+ person or entity if you are entering in this Agreement on their behalf.
64
+
65
+ “Llama 3.1” means the foundational large language models and software and algorithms, including
66
+ machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
67
+ fine-tuning enabling code and other elements of the foregoing distributed by Meta at
68
+ https://llama.meta.com/llama-downloads.
69
+
70
+ “Llama Materials” means, collectively, Meta’s proprietary Llama 3.1 and Documentation (and any
71
+ portion thereof) made available under this Agreement.
72
+
73
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your
74
+ principal place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you are located
75
+ outside of the EEA or Switzerland).
76
+
77
+ By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
78
+ you agree to be bound by this Agreement.
79
+
80
+ 1. License Rights and Redistribution.
81
+
82
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free
83
+ limited license under Meta’s intellectual property or other rights owned by Meta embodied in the Llama
84
+ Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the
85
+ Llama Materials.
86
+
87
+ b. Redistribution and Use.
88
+
89
+ i. If you distribute or make available the Llama Materials (or any derivative works
90
+ thereof), or a product or service (including another AI model) that contains any of them, you shall (A)
91
+ provide a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with
92
+ Llama” on a related website, user interface, blogpost, about page, or product documentation. If you use
93
+ the Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or
94
+ otherwise improve an AI model, which is distributed or made available, you shall also include “Llama” at
95
+ the beginning of any such AI model name.
96
+
97
+ ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
98
+ of an integrated end user product, then Section 2 of this Agreement will not apply to you.
99
+
100
+ iii. You must retain in all copies of the Llama Materials that you distribute the following
101
+ attribution notice within a “Notice” text file distributed as a part of such copies: “Llama 3.1 is
102
+ licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights
103
+ Reserved.”
104
+
105
+ iv. Your use of the Llama Materials must comply with applicable laws and regulations
106
+ (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Llama
107
+ Materials (available at https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated by
108
+ reference into this Agreement.
109
+
110
+ 2. Additional Commercial Terms. If, on the Llama 3.1 version release date, the monthly active users
111
+ of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700
112
+ million monthly active users in the preceding calendar month, you must request a license from Meta,
113
+ which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the
114
+ rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
115
+
116
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY
117
+ OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF
118
+ ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,
119
+ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT,
120
+ MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR
121
+ DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND
122
+ ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
123
+ RESULTS.
124
+
125
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF
126
+ LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING
127
+ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,
128
+ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
129
+ OF THE POSSIBILITY OF ANY OF THE FOREGOING.
130
+
131
+ 5. Intellectual Property.
132
+
133
+ a. No trademark licenses are granted under this Agreement, and in connection with the Llama
134
+ Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other
135
+ or any of its affiliates, except as required for reasonable and customary use in describing and
136
+ redistributing the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a license to
137
+ use “Llama” (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will
138
+ comply with Meta’s brand guidelines (currently accessible at
139
+ https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill arising out of your use
140
+ of the Mark will inure to the benefit of Meta.
141
+
142
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with
143
+ respect to any derivative works and modifications of the Llama Materials that are made by you, as
144
+ between you and Meta, you are and will be the owner of such derivative works and modifications.
145
+
146
+ c. If you institute litigation or other proceedings against Meta or any entity (including a
147
+ cross-claim or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs or
148
+ results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other
149
+ rights owned or licensable by you, then any licenses granted to you under this Agreement shall
150
+ terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold
151
+ harmless Meta from and against any claim by any third party arising out of or related to your use or
152
+ distribution of the Llama Materials.
153
+
154
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this
155
+ Agreement or access to the Llama Materials and will continue in full force and effect until terminated in
156
+ accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in
157
+ breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete
158
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the termination of this
159
+ Agreement.
160
+
161
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of
162
+ the State of California without regard to choice of law principles, and the UN Convention on Contracts
163
+ for the International Sale of Goods does not apply to this Agreement. The courts of California shall have
164
+ exclusive jurisdiction of any dispute arising out of this Agreement.
165
+
166
+ # Llama 3.1 Acceptable Use Policy
167
+
168
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 3.1. If you
169
+ access or use Llama 3.1, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of
170
+ this policy can be found at [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)
171
+
172
+ ## Prohibited Uses
173
+
174
+ We want everyone to use Llama 3.1 safely and responsibly. You agree you will not use, or allow
175
+ others to use, Llama 3.1 to:
176
+
177
+ 1. Violate the law or others’ rights, including to:
178
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
179
+ 1. Violence or terrorism
180
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
181
+ 3. Human trafficking, exploitation, and sexual violence
182
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
183
+ 5. Sexual solicitation
184
+ 6. Any other criminal activity
185
+ 3. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
186
+ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
187
+ 5. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
188
+ 6. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
189
+ 7. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
190
+ 8. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
191
+
192
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 3.1 related to the following:
193
+ 1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
194
+ 2. Guns and illegal weapons (including weapon development)
195
+ 3. Illegal drugs and regulated/controlled substances
196
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
197
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
198
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
199
+
200
+ 3. Intentionally deceive or mislead others, including use of Llama 3.1 related to the following:
201
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
202
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
203
+ 3. Generating, promoting, or further distributing spam
204
+ 4. Impersonating another individual without consent, authorization, or legal right
205
+ 5. Representing that the use of Llama 3.1 or outputs are human-generated
206
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
207
+
208
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
209
+
210
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation
211
+ of this Policy through one of the following means:
212
+
213
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)
214
+ * Reporting risky content generated by the model: developers.facebook.com/llama_output_feedback
215
+ * Reporting bugs and security concerns: facebook.com/whitehat/info
216
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama 3.1: [email protected]"
Modelfile_q4.txt ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM C:\Users\maxim\.ollama\models\models\llama3.1-fine-tune-test-2\unsloth.Q4_0.gguf
2
+ TEMPLATE """{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
3
+ {{- if .System }}
4
+
5
+ {{ .System }}
6
+ {{- end }}
7
+ {{- if .Tools }}
8
+
9
+ Cutting Knowledge Date: December 2023
10
+
11
+ When you receive a tool call response, use the output to format an answer to the orginal user question.
12
+
13
+ You are a helpful assistant with tool calling capabilities.
14
+ {{- end }}
15
+ {{- end }}<|eot_id|>
16
+ {{- range $i, $_ := .Messages }}
17
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
18
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
19
+ {{- if and $.Tools $last }}
20
+
21
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
22
+
23
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
24
+
25
+ {{ range $.Tools }}
26
+ {{- . }}
27
+ {{ end }}
28
+ {{- end }}
29
+
30
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
31
+
32
+ {{ end }}
33
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
34
+ {{- if .ToolCalls }}
35
+
36
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
37
+ {{- else }}
38
+
39
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
40
+ {{- end }}
41
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
42
+
43
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
44
+
45
+ {{ end }}
46
+ {{- end }}
47
+ {{- end }}"""
48
+ PARAMETER stop <|start_header_id|>
49
+ PARAMETER stop <|end_header_id|>
50
+ PARAMETER stop <|eot_id|>
51
+ LICENSE "LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
52
+ Llama 3.1 Version Release Date: July 23, 2024
53
+
54
+ “Agreement” means the terms and conditions for use, reproduction, distribution and modification of the
55
+ Llama Materials set forth herein.
56
+
57
+ “Documentation” means the specifications, manuals and documentation accompanying Llama 3.1
58
+ distributed by Meta at https://llama.meta.com/doc/overview.
59
+
60
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into
61
+ this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or
62
+ regulations to provide legal consent and that has legal authority to bind your employer or such other
63
+ person or entity if you are entering in this Agreement on their behalf.
64
+
65
+ “Llama 3.1” means the foundational large language models and software and algorithms, including
66
+ machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
67
+ fine-tuning enabling code and other elements of the foregoing distributed by Meta at
68
+ https://llama.meta.com/llama-downloads.
69
+
70
+ “Llama Materials” means, collectively, Meta’s proprietary Llama 3.1 and Documentation (and any
71
+ portion thereof) made available under this Agreement.
72
+
73
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your
74
+ principal place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you are located
75
+ outside of the EEA or Switzerland).
76
+
77
+ By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
78
+ you agree to be bound by this Agreement.
79
+
80
+ 1. License Rights and Redistribution.
81
+
82
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free
83
+ limited license under Meta’s intellectual property or other rights owned by Meta embodied in the Llama
84
+ Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the
85
+ Llama Materials.
86
+
87
+ b. Redistribution and Use.
88
+
89
+ i. If you distribute or make available the Llama Materials (or any derivative works
90
+ thereof), or a product or service (including another AI model) that contains any of them, you shall (A)
91
+ provide a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with
92
+ Llama” on a related website, user interface, blogpost, about page, or product documentation. If you use
93
+ the Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or
94
+ otherwise improve an AI model, which is distributed or made available, you shall also include “Llama” at
95
+ the beginning of any such AI model name.
96
+
97
+ ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
98
+ of an integrated end user product, then Section 2 of this Agreement will not apply to you.
99
+
100
+ iii. You must retain in all copies of the Llama Materials that you distribute the following
101
+ attribution notice within a “Notice” text file distributed as a part of such copies: “Llama 3.1 is
102
+ licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights
103
+ Reserved.”
104
+
105
+ iv. Your use of the Llama Materials must comply with applicable laws and regulations
106
+ (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Llama
107
+ Materials (available at https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated by
108
+ reference into this Agreement.
109
+
110
+ 2. Additional Commercial Terms. If, on the Llama 3.1 version release date, the monthly active users
111
+ of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700
112
+ million monthly active users in the preceding calendar month, you must request a license from Meta,
113
+ which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the
114
+ rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
115
+
116
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY
117
+ OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF
118
+ ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,
119
+ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT,
120
+ MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR
121
+ DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND
122
+ ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
123
+ RESULTS.
124
+
125
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF
126
+ LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING
127
+ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,
128
+ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
129
+ OF THE POSSIBILITY OF ANY OF THE FOREGOING.
130
+
131
+ 5. Intellectual Property.
132
+
133
+ a. No trademark licenses are granted under this Agreement, and in connection with the Llama
134
+ Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other
135
+ or any of its affiliates, except as required for reasonable and customary use in describing and
136
+ redistributing the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a license to
137
+ use “Llama” (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will
138
+ comply with Meta’s brand guidelines (currently accessible at
139
+ https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill arising out of your use
140
+ of the Mark will inure to the benefit of Meta.
141
+
142
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with
143
+ respect to any derivative works and modifications of the Llama Materials that are made by you, as
144
+ between you and Meta, you are and will be the owner of such derivative works and modifications.
145
+
146
+ c. If you institute litigation or other proceedings against Meta or any entity (including a
147
+ cross-claim or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs or
148
+ results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other
149
+ rights owned or licensable by you, then any licenses granted to you under this Agreement shall
150
+ terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold
151
+ harmless Meta from and against any claim by any third party arising out of or related to your use or
152
+ distribution of the Llama Materials.
153
+
154
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this
155
+ Agreement or access to the Llama Materials and will continue in full force and effect until terminated in
156
+ accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in
157
+ breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete
158
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the termination of this
159
+ Agreement.
160
+
161
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of
162
+ the State of California without regard to choice of law principles, and the UN Convention on Contracts
163
+ for the International Sale of Goods does not apply to this Agreement. The courts of California shall have
164
+ exclusive jurisdiction of any dispute arising out of this Agreement.
165
+
166
+ # Llama 3.1 Acceptable Use Policy
167
+
168
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 3.1. If you
169
+ access or use Llama 3.1, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of
170
+ this policy can be found at [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)
171
+
172
+ ## Prohibited Uses
173
+
174
+ We want everyone to use Llama 3.1 safely and responsibly. You agree you will not use, or allow
175
+ others to use, Llama 3.1 to:
176
+
177
+ 1. Violate the law or others’ rights, including to:
178
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
179
+ 1. Violence or terrorism
180
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
181
+ 3. Human trafficking, exploitation, and sexual violence
182
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
183
+ 5. Sexual solicitation
184
+ 6. Any other criminal activity
185
+ 3. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
186
+ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
187
+ 5. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
188
+ 6. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
189
+ 7. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
190
+ 8. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
191
+
192
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 3.1 related to the following:
193
+ 1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
194
+ 2. Guns and illegal weapons (including weapon development)
195
+ 3. Illegal drugs and regulated/controlled substances
196
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
197
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
198
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
199
+
200
+ 3. Intentionally deceive or mislead others, including use of Llama 3.1 related to the following:
201
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
202
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
203
+ 3. Generating, promoting, or further distributing spam
204
+ 4. Impersonating another individual without consent, authorization, or legal right
205
+ 5. Representing that the use of Llama 3.1 or outputs are human-generated
206
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
207
+
208
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
209
+
210
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation
211
+ of this Policy through one of the following means:
212
+
213
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)
214
+ * Reporting risky content generated by the model: developers.facebook.com/llama_output_feedback
215
+ * Reporting bugs and security concerns: facebook.com/whitehat/info
216
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama 3.1: [email protected]"
Modelfile_q4_docker.txt ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM /root/.ollama/models/llama3.1-fine-tune-test-2/unsloth.Q4_0.gguf
2
+ TEMPLATE """{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
3
+ {{- if .System }}
4
+
5
+ {{ .System }}
6
+ {{- end }}
7
+ {{- if .Tools }}
8
+
9
+ Cutting Knowledge Date: December 2023
10
+
11
+ When you receive a tool call response, use the output to format an answer to the orginal user question.
12
+
13
+ You are a helpful assistant with tool calling capabilities.
14
+ {{- end }}
15
+ {{- end }}<|eot_id|>
16
+ {{- range $i, $_ := .Messages }}
17
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
18
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
19
+ {{- if and $.Tools $last }}
20
+
21
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
22
+
23
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
24
+
25
+ {{ range $.Tools }}
26
+ {{- . }}
27
+ {{ end }}
28
+ {{- end }}
29
+
30
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
31
+
32
+ {{ end }}
33
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
34
+ {{- if .ToolCalls }}
35
+
36
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
37
+ {{- else }}
38
+
39
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
40
+ {{- end }}
41
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
42
+
43
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
44
+
45
+ {{ end }}
46
+ {{- end }}
47
+ {{- end }}"""
48
+ PARAMETER stop <|start_header_id|>
49
+ PARAMETER stop <|end_header_id|>
50
+ PARAMETER stop <|eot_id|>
51
+ LICENSE "LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
52
+ Llama 3.1 Version Release Date: July 23, 2024
53
+
54
+ “Agreement” means the terms and conditions for use, reproduction, distribution and modification of the
55
+ Llama Materials set forth herein.
56
+
57
+ “Documentation” means the specifications, manuals and documentation accompanying Llama 3.1
58
+ distributed by Meta at https://llama.meta.com/doc/overview.
59
+
60
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into
61
+ this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or
62
+ regulations to provide legal consent and that has legal authority to bind your employer or such other
63
+ person or entity if you are entering in this Agreement on their behalf.
64
+
65
+ “Llama 3.1” means the foundational large language models and software and algorithms, including
66
+ machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
67
+ fine-tuning enabling code and other elements of the foregoing distributed by Meta at
68
+ https://llama.meta.com/llama-downloads.
69
+
70
+ “Llama Materials” means, collectively, Meta’s proprietary Llama 3.1 and Documentation (and any
71
+ portion thereof) made available under this Agreement.
72
+
73
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your
74
+ principal place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you are located
75
+ outside of the EEA or Switzerland).
76
+
77
+ By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
78
+ you agree to be bound by this Agreement.
79
+
80
+ 1. License Rights and Redistribution.
81
+
82
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free
83
+ limited license under Meta’s intellectual property or other rights owned by Meta embodied in the Llama
84
+ Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the
85
+ Llama Materials.
86
+
87
+ b. Redistribution and Use.
88
+
89
+ i. If you distribute or make available the Llama Materials (or any derivative works
90
+ thereof), or a product or service (including another AI model) that contains any of them, you shall (A)
91
+ provide a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with
92
+ Llama” on a related website, user interface, blogpost, about page, or product documentation. If you use
93
+ the Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or
94
+ otherwise improve an AI model, which is distributed or made available, you shall also include “Llama” at
95
+ the beginning of any such AI model name.
96
+
97
+ ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
98
+ of an integrated end user product, then Section 2 of this Agreement will not apply to you.
99
+
100
+ iii. You must retain in all copies of the Llama Materials that you distribute the following
101
+ attribution notice within a “Notice” text file distributed as a part of such copies: “Llama 3.1 is
102
+ licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights
103
+ Reserved.”
104
+
105
+ iv. Your use of the Llama Materials must comply with applicable laws and regulations
106
+ (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Llama
107
+ Materials (available at https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated by
108
+ reference into this Agreement.
109
+
110
+ 2. Additional Commercial Terms. If, on the Llama 3.1 version release date, the monthly active users
111
+ of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700
112
+ million monthly active users in the preceding calendar month, you must request a license from Meta,
113
+ which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the
114
+ rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
115
+
116
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY
117
+ OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF
118
+ ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,
119
+ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT,
120
+ MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR
121
+ DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND
122
+ ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
123
+ RESULTS.
124
+
125
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF
126
+ LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING
127
+ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,
128
+ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
129
+ OF THE POSSIBILITY OF ANY OF THE FOREGOING.
130
+
131
+ 5. Intellectual Property.
132
+
133
+ a. No trademark licenses are granted under this Agreement, and in connection with the Llama
134
+ Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other
135
+ or any of its affiliates, except as required for reasonable and customary use in describing and
136
+ redistributing the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a license to
137
+ use “Llama” (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will
138
+ comply with Meta’s brand guidelines (currently accessible at
139
+ https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill arising out of your use
140
+ of the Mark will inure to the benefit of Meta.
141
+
142
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with
143
+ respect to any derivative works and modifications of the Llama Materials that are made by you, as
144
+ between you and Meta, you are and will be the owner of such derivative works and modifications.
145
+
146
+ c. If you institute litigation or other proceedings against Meta or any entity (including a
147
+ cross-claim or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs or
148
+ results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other
149
+ rights owned or licensable by you, then any licenses granted to you under this Agreement shall
150
+ terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold
151
+ harmless Meta from and against any claim by any third party arising out of or related to your use or
152
+ distribution of the Llama Materials.
153
+
154
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this
155
+ Agreement or access to the Llama Materials and will continue in full force and effect until terminated in
156
+ accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in
157
+ breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete
158
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the termination of this
159
+ Agreement.
160
+
161
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of
162
+ the State of California without regard to choice of law principles, and the UN Convention on Contracts
163
+ for the International Sale of Goods does not apply to this Agreement. The courts of California shall have
164
+ exclusive jurisdiction of any dispute arising out of this Agreement.
165
+
166
+ # Llama 3.1 Acceptable Use Policy
167
+
168
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 3.1. If you
169
+ access or use Llama 3.1, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of
170
+ this policy can be found at [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)
171
+
172
+ ## Prohibited Uses
173
+
174
+ We want everyone to use Llama 3.1 safely and responsibly. You agree you will not use, or allow
175
+ others to use, Llama 3.1 to:
176
+
177
+ 1. Violate the law or others’ rights, including to:
178
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
179
+ 1. Violence or terrorism
180
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
181
+ 3. Human trafficking, exploitation, and sexual violence
182
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
183
+ 5. Sexual solicitation
184
+ 6. Any other criminal activity
185
+ 3. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
186
+ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
187
+ 5. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
188
+ 6. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
189
+ 7. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
190
+ 8. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
191
+
192
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 3.1 related to the following:
193
+ 1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
194
+ 2. Guns and illegal weapons (including weapon development)
195
+ 3. Illegal drugs and regulated/controlled substances
196
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
197
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
198
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
199
+
200
+ 3. Intentionally deceive or mislead others, including use of Llama 3.1 related to the following:
201
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
202
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
203
+ 3. Generating, promoting, or further distributing spam
204
+ 4. Impersonating another individual without consent, authorization, or legal right
205
+ 5. Representing that the use of Llama 3.1 or outputs are human-generated
206
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
207
+
208
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
209
+
210
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation
211
+ of this Policy through one of the following means:
212
+
213
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)
214
+ * Reporting risky content generated by the model: developers.facebook.com/llama_output_feedback
215
+ * Reporting bugs and security concerns: facebook.com/whitehat/info
216
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama 3.1: [email protected]"
Modelfile_q8.txt ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM C:\Users\maxim\.ollama\models\models\llama3.1-fine-tune-test-2\unsloth.Q8_0.gguf
2
+ TEMPLATE """{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
3
+ {{- if .System }}
4
+
5
+ {{ .System }}
6
+ {{- end }}
7
+ {{- if .Tools }}
8
+
9
+ Cutting Knowledge Date: December 2023
10
+
11
+ When you receive a tool call response, use the output to format an answer to the orginal user question.
12
+
13
+ You are a helpful assistant with tool calling capabilities.
14
+ {{- end }}
15
+ {{- end }}<|eot_id|>
16
+ {{- range $i, $_ := .Messages }}
17
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
18
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
19
+ {{- if and $.Tools $last }}
20
+
21
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
22
+
23
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
24
+
25
+ {{ range $.Tools }}
26
+ {{- . }}
27
+ {{ end }}
28
+ {{- end }}
29
+
30
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
31
+
32
+ {{ end }}
33
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
34
+ {{- if .ToolCalls }}
35
+
36
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
37
+ {{- else }}
38
+
39
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
40
+ {{- end }}
41
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
42
+
43
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
44
+
45
+ {{ end }}
46
+ {{- end }}
47
+ {{- end }}"""
48
+ PARAMETER stop <|start_header_id|>
49
+ PARAMETER stop <|end_header_id|>
50
+ PARAMETER stop <|eot_id|>
51
+ LICENSE "LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
52
+ Llama 3.1 Version Release Date: July 23, 2024
53
+
54
+ “Agreement” means the terms and conditions for use, reproduction, distribution and modification of the
55
+ Llama Materials set forth herein.
56
+
57
+ “Documentation” means the specifications, manuals and documentation accompanying Llama 3.1
58
+ distributed by Meta at https://llama.meta.com/doc/overview.
59
+
60
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into
61
+ this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or
62
+ regulations to provide legal consent and that has legal authority to bind your employer or such other
63
+ person or entity if you are entering in this Agreement on their behalf.
64
+
65
+ “Llama 3.1” means the foundational large language models and software and algorithms, including
66
+ machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
67
+ fine-tuning enabling code and other elements of the foregoing distributed by Meta at
68
+ https://llama.meta.com/llama-downloads.
69
+
70
+ “Llama Materials” means, collectively, Meta’s proprietary Llama 3.1 and Documentation (and any
71
+ portion thereof) made available under this Agreement.
72
+
73
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your
74
+ principal place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you are located
75
+ outside of the EEA or Switzerland).
76
+
77
+ By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
78
+ you agree to be bound by this Agreement.
79
+
80
+ 1. License Rights and Redistribution.
81
+
82
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free
83
+ limited license under Meta’s intellectual property or other rights owned by Meta embodied in the Llama
84
+ Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the
85
+ Llama Materials.
86
+
87
+ b. Redistribution and Use.
88
+
89
+ i. If you distribute or make available the Llama Materials (or any derivative works
90
+ thereof), or a product or service (including another AI model) that contains any of them, you shall (A)
91
+ provide a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with
92
+ Llama” on a related website, user interface, blogpost, about page, or product documentation. If you use
93
+ the Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or
94
+ otherwise improve an AI model, which is distributed or made available, you shall also include “Llama” at
95
+ the beginning of any such AI model name.
96
+
97
+ ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
98
+ of an integrated end user product, then Section 2 of this Agreement will not apply to you.
99
+
100
+ iii. You must retain in all copies of the Llama Materials that you distribute the following
101
+ attribution notice within a “Notice” text file distributed as a part of such copies: “Llama 3.1 is
102
+ licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights
103
+ Reserved.”
104
+
105
+ iv. Your use of the Llama Materials must comply with applicable laws and regulations
106
+ (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Llama
107
+ Materials (available at https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated by
108
+ reference into this Agreement.
109
+
110
+ 2. Additional Commercial Terms. If, on the Llama 3.1 version release date, the monthly active users
111
+ of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700
112
+ million monthly active users in the preceding calendar month, you must request a license from Meta,
113
+ which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the
114
+ rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
115
+
116
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY
117
+ OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF
118
+ ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,
119
+ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT,
120
+ MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR
121
+ DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND
122
+ ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
123
+ RESULTS.
124
+
125
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF
126
+ LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING
127
+ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,
128
+ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
129
+ OF THE POSSIBILITY OF ANY OF THE FOREGOING.
130
+
131
+ 5. Intellectual Property.
132
+
133
+ a. No trademark licenses are granted under this Agreement, and in connection with the Llama
134
+ Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other
135
+ or any of its affiliates, except as required for reasonable and customary use in describing and
136
+ redistributing the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a license to
137
+ use “Llama” (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will
138
+ comply with Meta’s brand guidelines (currently accessible at
139
+ https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill arising out of your use
140
+ of the Mark will inure to the benefit of Meta.
141
+
142
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with
143
+ respect to any derivative works and modifications of the Llama Materials that are made by you, as
144
+ between you and Meta, you are and will be the owner of such derivative works and modifications.
145
+
146
+ c. If you institute litigation or other proceedings against Meta or any entity (including a
147
+ cross-claim or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs or
148
+ results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other
149
+ rights owned or licensable by you, then any licenses granted to you under this Agreement shall
150
+ terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold
151
+ harmless Meta from and against any claim by any third party arising out of or related to your use or
152
+ distribution of the Llama Materials.
153
+
154
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this
155
+ Agreement or access to the Llama Materials and will continue in full force and effect until terminated in
156
+ accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in
157
+ breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete
158
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the termination of this
159
+ Agreement.
160
+
161
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of
162
+ the State of California without regard to choice of law principles, and the UN Convention on Contracts
163
+ for the International Sale of Goods does not apply to this Agreement. The courts of California shall have
164
+ exclusive jurisdiction of any dispute arising out of this Agreement.
165
+
166
+ # Llama 3.1 Acceptable Use Policy
167
+
168
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 3.1. If you
169
+ access or use Llama 3.1, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of
170
+ this policy can be found at [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)
171
+
172
+ ## Prohibited Uses
173
+
174
+ We want everyone to use Llama 3.1 safely and responsibly. You agree you will not use, or allow
175
+ others to use, Llama 3.1 to:
176
+
177
+ 1. Violate the law or others’ rights, including to:
178
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
179
+ 1. Violence or terrorism
180
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
181
+ 3. Human trafficking, exploitation, and sexual violence
182
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
183
+ 5. Sexual solicitation
184
+ 6. Any other criminal activity
185
+ 3. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
186
+ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
187
+ 5. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
188
+ 6. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
189
+ 7. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
190
+ 8. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
191
+
192
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 3.1 related to the following:
193
+ 1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
194
+ 2. Guns and illegal weapons (including weapon development)
195
+ 3. Illegal drugs and regulated/controlled substances
196
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
197
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
198
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
199
+
200
+ 3. Intentionally deceive or mislead others, including use of Llama 3.1 related to the following:
201
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
202
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
203
+ 3. Generating, promoting, or further distributing spam
204
+ 4. Impersonating another individual without consent, authorization, or legal right
205
+ 5. Representing that the use of Llama 3.1 or outputs are human-generated
206
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
207
+
208
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
209
+
210
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation
211
+ of this Policy through one of the following means:
212
+
213
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)
214
+ * Reporting risky content generated by the model: developers.facebook.com/llama_output_feedback
215
+ * Reporting bugs and security concerns: facebook.com/whitehat/info
216
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama 3.1: [email protected]"
Modelfile_q8_docker.txt ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM /root/.ollama/models/llama3.1-fine-tune-test-2/unsloth.Q8_0.gguf
2
+ TEMPLATE """{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
3
+ {{- if .System }}
4
+
5
+ {{ .System }}
6
+ {{- end }}
7
+ {{- if .Tools }}
8
+
9
+ Cutting Knowledge Date: December 2023
10
+
11
+ When you receive a tool call response, use the output to format an answer to the orginal user question.
12
+
13
+ You are a helpful assistant with tool calling capabilities.
14
+ {{- end }}
15
+ {{- end }}<|eot_id|>
16
+ {{- range $i, $_ := .Messages }}
17
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
18
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
19
+ {{- if and $.Tools $last }}
20
+
21
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
22
+
23
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
24
+
25
+ {{ range $.Tools }}
26
+ {{- . }}
27
+ {{ end }}
28
+ {{- end }}
29
+
30
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
31
+
32
+ {{ end }}
33
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
34
+ {{- if .ToolCalls }}
35
+
36
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
37
+ {{- else }}
38
+
39
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
40
+ {{- end }}
41
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
42
+
43
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
44
+
45
+ {{ end }}
46
+ {{- end }}
47
+ {{- end }}"""
48
+ PARAMETER stop <|start_header_id|>
49
+ PARAMETER stop <|end_header_id|>
50
+ PARAMETER stop <|eot_id|>
51
+ LICENSE "LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
52
+ Llama 3.1 Version Release Date: July 23, 2024
53
+
54
+ “Agreement” means the terms and conditions for use, reproduction, distribution and modification of the
55
+ Llama Materials set forth herein.
56
+
57
+ “Documentation” means the specifications, manuals and documentation accompanying Llama 3.1
58
+ distributed by Meta at https://llama.meta.com/doc/overview.
59
+
60
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into
61
+ this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or
62
+ regulations to provide legal consent and that has legal authority to bind your employer or such other
63
+ person or entity if you are entering in this Agreement on their behalf.
64
+
65
+ “Llama 3.1” means the foundational large language models and software and algorithms, including
66
+ machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
67
+ fine-tuning enabling code and other elements of the foregoing distributed by Meta at
68
+ https://llama.meta.com/llama-downloads.
69
+
70
+ “Llama Materials” means, collectively, Meta’s proprietary Llama 3.1 and Documentation (and any
71
+ portion thereof) made available under this Agreement.
72
+
73
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your
74
+ principal place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you are located
75
+ outside of the EEA or Switzerland).
76
+
77
+ By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
78
+ you agree to be bound by this Agreement.
79
+
80
+ 1. License Rights and Redistribution.
81
+
82
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free
83
+ limited license under Meta’s intellectual property or other rights owned by Meta embodied in the Llama
84
+ Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the
85
+ Llama Materials.
86
+
87
+ b. Redistribution and Use.
88
+
89
+ i. If you distribute or make available the Llama Materials (or any derivative works
90
+ thereof), or a product or service (including another AI model) that contains any of them, you shall (A)
91
+ provide a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with
92
+ Llama” on a related website, user interface, blogpost, about page, or product documentation. If you use
93
+ the Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or
94
+ otherwise improve an AI model, which is distributed or made available, you shall also include “Llama” at
95
+ the beginning of any such AI model name.
96
+
97
+ ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
98
+ of an integrated end user product, then Section 2 of this Agreement will not apply to you.
99
+
100
+ iii. You must retain in all copies of the Llama Materials that you distribute the following
101
+ attribution notice within a “Notice” text file distributed as a part of such copies: “Llama 3.1 is
102
+ licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights
103
+ Reserved.”
104
+
105
+ iv. Your use of the Llama Materials must comply with applicable laws and regulations
106
+ (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Llama
107
+ Materials (available at https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated by
108
+ reference into this Agreement.
109
+
110
+ 2. Additional Commercial Terms. If, on the Llama 3.1 version release date, the monthly active users
111
+ of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700
112
+ million monthly active users in the preceding calendar month, you must request a license from Meta,
113
+ which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the
114
+ rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
115
+
116
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY
117
+ OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF
118
+ ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,
119
+ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT,
120
+ MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR
121
+ DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND
122
+ ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
123
+ RESULTS.
124
+
125
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF
126
+ LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING
127
+ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,
128
+ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
129
+ OF THE POSSIBILITY OF ANY OF THE FOREGOING.
130
+
131
+ 5. Intellectual Property.
132
+
133
+ a. No trademark licenses are granted under this Agreement, and in connection with the Llama
134
+ Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other
135
+ or any of its affiliates, except as required for reasonable and customary use in describing and
136
+ redistributing the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a license to
137
+ use “Llama” (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will
138
+ comply with Meta’s brand guidelines (currently accessible at
139
+ https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill arising out of your use
140
+ of the Mark will inure to the benefit of Meta.
141
+
142
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with
143
+ respect to any derivative works and modifications of the Llama Materials that are made by you, as
144
+ between you and Meta, you are and will be the owner of such derivative works and modifications.
145
+
146
+ c. If you institute litigation or other proceedings against Meta or any entity (including a
147
+ cross-claim or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs or
148
+ results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other
149
+ rights owned or licensable by you, then any licenses granted to you under this Agreement shall
150
+ terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold
151
+ harmless Meta from and against any claim by any third party arising out of or related to your use or
152
+ distribution of the Llama Materials.
153
+
154
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this
155
+ Agreement or access to the Llama Materials and will continue in full force and effect until terminated in
156
+ accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in
157
+ breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete
158
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the termination of this
159
+ Agreement.
160
+
161
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of
162
+ the State of California without regard to choice of law principles, and the UN Convention on Contracts
163
+ for the International Sale of Goods does not apply to this Agreement. The courts of California shall have
164
+ exclusive jurisdiction of any dispute arising out of this Agreement.
165
+
166
+ # Llama 3.1 Acceptable Use Policy
167
+
168
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 3.1. If you
169
+ access or use Llama 3.1, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of
170
+ this policy can be found at [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)
171
+
172
+ ## Prohibited Uses
173
+
174
+ We want everyone to use Llama 3.1 safely and responsibly. You agree you will not use, or allow
175
+ others to use, Llama 3.1 to:
176
+
177
+ 1. Violate the law or others’ rights, including to:
178
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
179
+ 1. Violence or terrorism
180
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
181
+ 3. Human trafficking, exploitation, and sexual violence
182
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
183
+ 5. Sexual solicitation
184
+ 6. Any other criminal activity
185
+ 3. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
186
+ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
187
+ 5. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
188
+ 6. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
189
+ 7. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
190
+ 8. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
191
+
192
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 3.1 related to the following:
193
+ 1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
194
+ 2. Guns and illegal weapons (including weapon development)
195
+ 3. Illegal drugs and regulated/controlled substances
196
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
197
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
198
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
199
+
200
+ 3. Intentionally deceive or mislead others, including use of Llama 3.1 related to the following:
201
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
202
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
203
+ 3. Generating, promoting, or further distributing spam
204
+ 4. Impersonating another individual without consent, authorization, or legal right
205
+ 5. Representing that the use of Llama 3.1 or outputs are human-generated
206
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
207
+
208
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
209
+
210
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation
211
+ of this Policy through one of the following means:
212
+
213
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)
214
+ * Reporting risky content generated by the model: developers.facebook.com/llama_output_feedback
215
+ * Reporting bugs and security concerns: facebook.com/whitehat/info
216
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama 3.1: [email protected]"