sshukla4 commited on
Commit
fec68dc
·
verified ·
1 Parent(s): 206d9a4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +154 -22
README.md CHANGED
@@ -1,40 +1,172 @@
1
  ---
 
2
  language:
3
- - zh
4
  - en
 
5
  tags:
6
- - glm
7
- - chatglm
8
- - thudm
9
- - ryzenai-npu
10
- base_model: THUDM/chatglm3-6b
 
 
 
11
  ---
12
 
13
- # chatglm3-6b
14
  - ## Introduction
15
  This model was created using Quark Quantization, followed by OGA Model Builder, and finalized with post-processing for NPU deployment.
16
  - ## Quantization Strategy
17
- - AWQ / Group 128 / Asymmetric / BF16 activations / UINT4 weights
18
-
19
  - ## Quick Start
20
- For quickstart, refer to [Ryzen AI doucmentation](https://ryzenai.docs.amd.com/en/latest/npu_oga.html)
21
-
22
- #### Evaluation scores
23
- The perplexity measurement is run on the wikitext-2-raw-v1 (raw data) dataset provided by Hugging Face. Perplexity score measured for prompt length 2k is 29.81679.
24
 
 
 
25
 
 
26
 
27
  #### License
28
  Modifications copyright(c) 2024 Advanced Micro Devices,Inc. All rights reserved.
29
 
30
- Licensed under the Apache License, Version 2.0 (the "License");
31
- you may not use this file except in compliance with the License.
32
- You may obtain a copy of the License at
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- http://www.apache.org/licenses/LICENSE-2.0
 
 
 
 
35
 
36
- Unless required by applicable law or agreed to in writing, software
37
- distributed under the License is distributed on an "AS IS" BASIS,
38
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39
- See the License for the specific language governing permissions and
40
- limitations under the License.
 
1
  ---
2
+ license: llama2
3
  language:
 
4
  - en
5
+ pipeline_tag: text-generation
6
  tags:
7
+ - llama
8
+ - llama2
9
+ - amd
10
+ - meta
11
+ - facebook
12
+ - onnx
13
+ base_model:
14
+ - meta-llama/Llama-2-7b-hf
15
  ---
16
 
17
+ # Llama-2-7b-hf-onnx-ryzenai-npu
18
  - ## Introduction
19
  This model was created using Quark Quantization, followed by OGA Model Builder, and finalized with post-processing for NPU deployment.
20
  - ## Quantization Strategy
21
+ - AWQ / Group 128 / Asymmetric / BFP16 activations / UINT4 Weights
 
22
  - ## Quick Start
23
+ For quickstart, refer to [Ryzen AI documentation](https://ryzenai.docs.amd.com/en/latest/npu_oga.html)
 
 
 
24
 
25
+ ## Evaluation scores
26
+ - The perplexity measurement is run on the wikitext-2-raw-v1 (raw data) dataset provided by Hugging Face. Perplexity score measured for prompt length 2k is 5.6616.
27
 
28
+ - The average MMLU scores are astronomy - 44.08, philosophy - 57.23 and management - 61.17.
29
 
30
  #### License
31
  Modifications copyright(c) 2024 Advanced Micro Devices,Inc. All rights reserved.
32
 
33
+ MIT License
34
+
35
+ Copyright (c) 2024 Advanced Micro Devices, Inc
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
38
+ in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
40
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45
+ SOFTWARE.
46
+
47
+ LLAMA 2 COMMUNITY LICENSE AGREEMENT
48
+ Llama 2 Version Release Date: July 18, 2023
49
+
50
+ "Agreement" means the terms and conditions for use, reproduction, distribution and
51
+ modification of the Llama Materials set forth herein.
52
+
53
+ "Documentation" means the specifications, manuals and documentation
54
+ accompanying Llama 2 distributed by Meta at ai.meta.com/resources/models-and-
55
+ libraries/llama-downloads/.
56
+
57
+ "Licensee" or "you" means you, or your employer or any other person or entity (if
58
+ you are entering into this Agreement on such person or entity's behalf), of the age
59
+ required under applicable laws, rules or regulations to provide legal consent and that
60
+ has legal authority to bind your employer or such other person or entity if you are
61
+ entering in this Agreement on their behalf.
62
+
63
+ "Llama 2" means the foundational large language models and software and
64
+ algorithms, including machine-learning model code, trained model weights,
65
+ inference-enabling code, training-enabling code, fine-tuning enabling code and other
66
+ elements of the foregoing distributed by Meta at ai.meta.com/resources/models-and-
67
+ libraries/llama-downloads/.
68
+
69
+ "Llama Materials" means, collectively, Meta's proprietary Llama 2 and
70
+ Documentation (and any portion thereof) made available under this Agreement.
71
+
72
+ "Meta" or "we" means Meta Platforms Ireland Limited (if you are located in or, if you
73
+ are an entity, your principal place of business is in the EEA or Switzerland) and Meta
74
+ Platforms, Inc. (if you are located outside of the EEA or Switzerland).
75
+
76
+ By clicking "I Accept" below or by using or distributing any portion or element of the
77
+ Llama Materials, you agree to be bound by this Agreement.
78
+
79
+ 1. License Rights and Redistribution.
80
+
81
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-
82
+ transferable and royalty-free limited license under Meta's intellectual property or
83
+ other rights owned by Meta embodied in the Llama Materials to use, reproduce,
84
+ distribute, copy, create derivative works of, and make modifications to the Llama
85
+ Materials.
86
+
87
+ b. Redistribution and Use.
88
+
89
+ i. If you distribute or make the Llama Materials, or any derivative works
90
+ thereof, available to a third party, you shall provide a copy of this Agreement to such
91
+ third party.
92
+ ii. If you receive Llama Materials, or any derivative works thereof, from
93
+ a Licensee as part of an integrated end user product, then Section 2 of this
94
+ Agreement will not apply to you.
95
+
96
+ iii. You must retain in all copies of the Llama Materials that you
97
+ distribute the following attribution notice within a "Notice" text file distributed as a
98
+ part of such copies: "Llama 2 is licensed under the LLAMA 2 Community License,
99
+ Copyright (c) Meta Platforms, Inc. All Rights Reserved."
100
+
101
+ iv. Your use of the Llama Materials must comply with applicable laws
102
+ and regulations (including trade compliance laws and regulations) and adhere to the
103
+ Acceptable Use Policy for the Llama Materials (available at
104
+ https://ai.meta.com/llama/use-policy), which is hereby incorporated by reference into
105
+ this Agreement.
106
+
107
+ v. You will not use the Llama Materials or any output or results of the
108
+ Llama Materials to improve any other large language model (excluding Llama 2 or
109
+ derivative works thereof).
110
+
111
+ 2. Additional Commercial Terms. If, on the Llama 2 version release date, the
112
+ monthly active users of the products or services made available by or for Licensee,
113
+ or Licensee's affiliates, is greater than 700 million monthly active users in the
114
+ preceding calendar month, you must request a license from Meta, which Meta may
115
+ grant to you in its sole discretion, and you are not authorized to exercise any of the
116
+ rights under this Agreement unless or until Meta otherwise expressly grants you
117
+ such rights.
118
+
119
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE
120
+ LLAMA MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE
121
+ PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
122
+ EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
123
+ WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR
124
+ FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE
125
+ FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING
126
+ THE LLAMA MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR
127
+ USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS.
128
+
129
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE
130
+ LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT,
131
+ NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS
132
+ AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL,
133
+ CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN
134
+ IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF
135
+ ANY OF THE FOREGOING.
136
+
137
+ 5. Intellectual Property.
138
+
139
+ a. No trademark licenses are granted under this Agreement, and in
140
+ connection with the Llama Materials, neither Meta nor Licensee may use any name
141
+ or mark owned by or associated with the other or any of its affiliates, except as
142
+ required for reasonable and customary use in describing and redistributing the
143
+ Llama Materials.
144
+
145
+ b. Subject to Meta's ownership of Llama Materials and derivatives made by or
146
+ for Meta, with respect to any derivative works and modifications of the Llama
147
+ Materials that are made by you, as between you and Meta, you are and will be the
148
+ owner of such derivative works and modifications.
149
+
150
+ c. If you institute litigation or other proceedings against Meta or any entity
151
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the Llama
152
+ Materials or Llama 2 outputs or results, or any portion of any of the foregoing,
153
+ constitutes infringement of intellectual property or other rights owned or licensable
154
+ by you, then any licenses granted to you under this Agreement shall terminate as of
155
+ the date such litigation or claim is filed or instituted. You will indemnify and hold
156
+ harmless Meta from and against any claim by any third party arising out of or related
157
+ to your use or distribution of the Llama Materials.
158
+
159
+ 6. Term and Termination. The term of this Agreement will commence upon your
160
+ acceptance of this Agreement or access to the Llama Materials and will continue in
161
+ full force and effect until terminated in accordance with the terms and conditions
162
+ herein. Meta may terminate this Agreement if you are in breach of any term or
163
+ condition of this Agreement. Upon termination of this Agreement, you shall delete
164
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the
165
+ termination of this Agreement.
166
 
167
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and
168
+ construed under the laws of the State of California without regard to choice of law
169
+ principles, and the UN Convention on Contracts for the International Sale of Goods
170
+ does not apply to this Agreement. The courts of California shall have exclusive
171
+ jurisdiction of any dispute arising out of this Agreement.
172