Upload folder using huggingface_hub
Browse files- README.md +184 -0
- config.json +86 -0
- model-00001-of-00002.safetensors +3 -0
- model-00001-of-00008.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model-00002-of-00008.safetensors +3 -0
- model-00003-of-00008.safetensors +3 -0
- model-00004-of-00008.safetensors +3 -0
- model-00005-of-00008.safetensors +3 -0
- model-00006-of-00008.safetensors +3 -0
- model-00007-of-00008.safetensors +3 -0
- model-00008-of-00008.safetensors +3 -0
- model.safetensors +3 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +42 -0
README.md
ADDED
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
tags:
|
5 |
+
- facebook
|
6 |
+
- meta
|
7 |
+
- pytorch
|
8 |
+
- llama
|
9 |
+
- llama-2
|
10 |
+
- mlx
|
11 |
+
extra_gated_heading: You need to share contact information with Meta to access this
|
12 |
+
model
|
13 |
+
extra_gated_prompt: "### LLAMA 2 COMMUNITY LICENSE AGREEMENT\n\"Agreement\" means\
|
14 |
+
\ the terms and conditions for use, reproduction, distribution and modification\
|
15 |
+
\ of the Llama Materials set forth herein. \"Documentation\" means the specifications,\
|
16 |
+
\ manuals and documentation accompanying Llama 2 distributed by Meta at https://ai.meta.com/resources/models-and-libraries/llama-downloads/.\
|
17 |
+
\ \"Licensee\" or \"you\" means you, or your employer or any other person or entity\
|
18 |
+
\ (if you are entering into this Agreement on such person or entity's behalf), of\
|
19 |
+
\ the age required under applicable laws, rules or regulations to provide legal\
|
20 |
+
\ consent and that has legal authority to bind your employer or such other person\
|
21 |
+
\ or entity if you are entering in this Agreement on their behalf. \"Llama 2\"\
|
22 |
+
\ means the foundational large language models and software and algorithms, including\
|
23 |
+
\ machine-learning model code, trained model weights, inference-enabling code, training-enabling\
|
24 |
+
\ code, fine-tuning enabling code and other elements of the foregoing distributed\
|
25 |
+
\ by Meta at ai.meta.com/resources/models-and-libraries/llama-downloads/. \"Llama\
|
26 |
+
\ Materials\" means, collectively, Meta's proprietary Llama 2 and documentation\
|
27 |
+
\ (and any portion thereof) made available under this Agreement. \"Meta\" or \"\
|
28 |
+
we\" means Meta Platforms Ireland Limited (if you are located in or, if you are\
|
29 |
+
\ an entity, your principal place of business is in the EEA or Switzerland) and\
|
30 |
+
\ Meta Platforms, Inc. (if you are located outside of the EEA or Switzerland). \
|
31 |
+
\ By clicking \"I Accept\" below or by using or distributing any portion or element\
|
32 |
+
\ of the Llama Materials, you agree to be bound by this Agreement. 1. License Rights\
|
33 |
+
\ and Redistribution. a. Grant of Rights. You are granted a non-exclusive, worldwide,\
|
34 |
+
\ non- transferable and royalty-free limited license under Meta's intellectual property\
|
35 |
+
\ or other rights owned by Meta embodied in the Llama Materials to use, reproduce,\
|
36 |
+
\ distribute, copy, create derivative works of, and make modifications to the Llama\
|
37 |
+
\ Materials. \n \nb. Redistribution and Use. i. If you distribute or make\
|
38 |
+
\ the Llama Materials, or any derivative works thereof, available to a third party,\
|
39 |
+
\ you shall provide a copy of this Agreement to such third party. ii. If you\
|
40 |
+
\ receive Llama Materials, or any derivative works thereof, from a Licensee as\
|
41 |
+
\ part of an integrated end user product, then Section 2 of this Agreement will\
|
42 |
+
\ not apply to you. iii. You must retain in all copies of the Llama Materials that\
|
43 |
+
\ you distribute the following attribution notice within a \"Notice\" text file\
|
44 |
+
\ distributed as a part of such copies: \"Llama 2 is licensed under the LLAMA 2\
|
45 |
+
\ Community License, Copyright (c) Meta Platforms, Inc. All Rights Reserved.\"\
|
46 |
+
\ iv. Your use of the Llama Materials must comply with applicable laws and regulations\
|
47 |
+
\ (including trade compliance laws and regulations) and adhere to the Acceptable\
|
48 |
+
\ Use Policy for the Llama Materials (available at https://ai.meta.com/llama/use-policy),\
|
49 |
+
\ which is hereby incorporated by reference into this Agreement. v. You will not\
|
50 |
+
\ use the Llama Materials or any output or results of the Llama Materials to improve\
|
51 |
+
\ any other large language model (excluding Llama 2 or derivative works thereof).\
|
52 |
+
\ 2. Additional Commercial Terms. If, on the Llama 2 version release date, the\
|
53 |
+
\ monthly active users of the products or services made available by or for Licensee,\
|
54 |
+
\ or Licensee's affiliates, is greater than 700 million monthly active users in\
|
55 |
+
\ the preceding calendar month, you must request a license from Meta, which Meta\
|
56 |
+
\ may grant to you in its sole discretion, and you are not authorized to exercise\
|
57 |
+
\ any of the rights under this Agreement unless or until Meta otherwise expressly\
|
58 |
+
\ grants you such rights. 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE\
|
59 |
+
\ LAW, THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON\
|
60 |
+
\ AN \"AS IS\" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,\
|
61 |
+
\ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY,\
|
62 |
+
\ OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING\
|
63 |
+
\ THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME\
|
64 |
+
\ ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND\
|
65 |
+
\ RESULTS. 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE\
|
66 |
+
\ LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE,\
|
67 |
+
\ PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST\
|
68 |
+
\ PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE\
|
69 |
+
\ DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY\
|
70 |
+
\ OF ANY OF THE FOREGOING. 5. Intellectual Property. a. No trademark licenses are\
|
71 |
+
\ granted under this Agreement, and in connection with the Llama Materials, neither\
|
72 |
+
\ Meta nor Licensee may use any name or mark owned by or associated with the other\
|
73 |
+
\ or any of its affiliates, except as required for reasonable and customary use\
|
74 |
+
\ in describing and redistributing the Llama Materials. b. Subject to Meta's ownership\
|
75 |
+
\ of Llama Materials and derivatives made by or for Meta, with respect to any derivative\
|
76 |
+
\ works and modifications of the Llama Materials that are made by you, as between\
|
77 |
+
\ you and Meta, you are and will be the owner of such derivative works and modifications.\
|
78 |
+
\ c. If you institute litigation or other proceedings against Meta or any entity\
|
79 |
+
\ (including a cross-claim or counterclaim in a lawsuit) alleging that the Llama\
|
80 |
+
\ Materials or Llama 2 outputs or results, or any portion of any of the foregoing,\
|
81 |
+
\ constitutes infringement of intellectual property or other rights owned or licensable\
|
82 |
+
\ by you, then any licenses granted to you under this Agreement shall terminate\
|
83 |
+
\ as of the date such litigation or claim is filed or instituted. You will indemnify\
|
84 |
+
\ and hold harmless Meta from and against any claim by any third party arising\
|
85 |
+
\ out of or related to your use or distribution of the Llama Materials. 6. Term\
|
86 |
+
\ and Termination. The term of this Agreement will commence upon your acceptance\
|
87 |
+
\ of this Agreement or access to the Llama Materials and will continue in full\
|
88 |
+
\ force and effect until terminated in accordance with the terms and conditions\
|
89 |
+
\ herein. Meta may terminate this Agreement if you are in breach of any term or\
|
90 |
+
\ condition of this Agreement. Upon termination of this Agreement, you shall delete\
|
91 |
+
\ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the \
|
92 |
+
\ termination of this Agreement. 7. Governing Law and Jurisdiction. This Agreement\
|
93 |
+
\ will be governed and construed under the laws of the State of California without\
|
94 |
+
\ regard to choice of law principles, and the UN Convention on Contracts for the\
|
95 |
+
\ International Sale of Goods does not apply to this Agreement. The courts of California\
|
96 |
+
\ shall have exclusive jurisdiction of any dispute arising out of this Agreement.\
|
97 |
+
\ USE POLICY ### Llama 2 Acceptable Use Policy Meta is committed to promoting safe\
|
98 |
+
\ and fair use of its tools and features, including Llama 2. If you access or use\
|
99 |
+
\ Llama 2, you agree to this Acceptable Use Policy (“Policy”). The most recent copy\
|
100 |
+
\ of this policy can be found at [ai.meta.com/llama/use-policy](http://ai.meta.com/llama/use-policy).\
|
101 |
+
\ #### Prohibited Uses We want everyone to use Llama 2 safely and responsibly. You\
|
102 |
+
\ agree you will not use, or allow others to use, Llama 2 to: 1. Violate the law\
|
103 |
+
\ or others’ rights, including to:\n 1. Engage in, promote, generate, contribute\
|
104 |
+
\ to, encourage, plan, incite, or further illegal or unlawful activity or content,\
|
105 |
+
\ such as: \n 1. Violence or terrorism \n 2. Exploitation or harm to children,\
|
106 |
+
\ including the solicitation, creation, acquisition, or dissemination of child exploitative\
|
107 |
+
\ content or failure to report Child Sexual Abuse Material\n 3. Human trafficking,\
|
108 |
+
\ exploitation, and sexual violence\n 4. The illegal distribution of information\
|
109 |
+
\ or materials to minors, including obscene materials, or failure to employ legally\
|
110 |
+
\ required age-gating in connection with such information or materials.\n 5.\
|
111 |
+
\ Sexual solicitation\n 6. Any other criminal activity\n 2. Engage in, promote,\
|
112 |
+
\ incite, or facilitate the harassment, abuse, threatening, or bullying of individuals\
|
113 |
+
\ or groups of individuals\n 3. Engage in, promote, incite, or facilitate discrimination\
|
114 |
+
\ or other unlawful or harmful conduct in the provision of employment, employment\
|
115 |
+
\ benefits, credit, housing, other economic benefits, or other essential goods and\
|
116 |
+
\ services\n 4. Engage in the unauthorized or unlicensed practice of any profession\
|
117 |
+
\ including, but not limited to, financial, legal, medical/health, or related professional\
|
118 |
+
\ practices \n 5. Collect, process, disclose, generate, or infer health, demographic,\
|
119 |
+
\ or other sensitive personal or private information about individuals without rights\
|
120 |
+
\ and consents required by applicable laws\n 6. Engage in or facilitate any action\
|
121 |
+
\ or generate any content that infringes, misappropriates, or otherwise violates\
|
122 |
+
\ any third-party rights, including the outputs or results of any products or services\
|
123 |
+
\ using the Llama 2 Materials\n 7. Create, generate, or facilitate the creation\
|
124 |
+
\ of malicious code, malware, computer viruses or do anything else that could disable,\
|
125 |
+
\ overburden, interfere with or impair the proper working, integrity, operation\
|
126 |
+
\ or appearance of a website or computer system \n2. Engage in, promote, incite,\
|
127 |
+
\ facilitate, or assist in the planning or development of activities that present\
|
128 |
+
\ a risk of death or bodily harm to individuals, including use of Llama 2 related\
|
129 |
+
\ to the following:\n 1. Military, warfare, nuclear industries or applications,\
|
130 |
+
\ espionage, use for materials or activities that are subject to the International\
|
131 |
+
\ Traffic Arms Regulations (ITAR) maintained by the United States Department of\
|
132 |
+
\ State\n 2. Guns and illegal weapons (including weapon development)\n 3. Illegal\
|
133 |
+
\ drugs and regulated/controlled substances\n 4. Operation of critical infrastructure,\
|
134 |
+
\ transportation technologies, or heavy machinery\n 5. Self-harm or harm to others,\
|
135 |
+
\ including suicide, cutting, and eating disorders\n 6. Any content intended to\
|
136 |
+
\ incite or promote violence, abuse, or any infliction of bodily harm to an individual\n\
|
137 |
+
3. Intentionally deceive or mislead others, including use of Llama 2 related to\
|
138 |
+
\ the following:\n 1. Generating, promoting, or furthering fraud or the creation\
|
139 |
+
\ or promotion of disinformation\n 2. Generating, promoting, or furthering defamatory\
|
140 |
+
\ content, including the creation of defamatory statements, images, or other content\n\
|
141 |
+
\ 3. Generating, promoting, or further distributing spam\n 4. Impersonating another\
|
142 |
+
\ individual without consent, authorization, or legal right\n 5. Representing that\
|
143 |
+
\ the use of Llama 2 or outputs are human-generated\n 6. Generating or facilitating\
|
144 |
+
\ false online engagement, including fake reviews and other means of fake online\
|
145 |
+
\ engagement \n 4. Fail to appropriately disclose to end users any known dangers\
|
146 |
+
\ of your AI system \nPlease report any violation of this Policy, software “bug,”\
|
147 |
+
\ or other problems that could lead to a violation of this Policy through one of\
|
148 |
+
\ the following means: * Reporting issues with the model: [github.com/facebookresearch/llama](http://github.com/facebookresearch/llama)\
|
149 |
+
\ * Reporting risky content generated by the model: [developers.facebook.com/llama_output_feedback](http://developers.facebook.com/llama_output_feedback)\
|
150 |
+
\ * Reporting bugs and security concerns: [facebook.com/whitehat/info](http://facebook.com/whitehat/info)\
|
151 |
+
\ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama:\
|
152 |
+
\ [[email protected]](mailto:[email protected])"
|
153 |
+
extra_gated_fields:
|
154 |
+
First Name: text
|
155 |
+
Last Name: text
|
156 |
+
Date of birth: date_picker
|
157 |
+
Country: country
|
158 |
+
Affiliation: text
|
159 |
+
geo: ip_location
|
160 |
+
? By clicking Submit below I accept the terms of the license and acknowledge that
|
161 |
+
the information I provide will be collected stored processed and shared in accordance
|
162 |
+
with the Meta Privacy Policy
|
163 |
+
: checkbox
|
164 |
+
extra_gated_description: The information you provide will be collected, stored, processed
|
165 |
+
and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).
|
166 |
+
extra_gated_button_content: Submit
|
167 |
+
pipeline_tag: text-generation
|
168 |
+
---
|
169 |
+
|
170 |
+
# mlx-community/llama2-70b-qnt4bit
|
171 |
+
This model was converted to MLX format from [`meta-llama/Llama-2-70b-chat-hf`]().
|
172 |
+
Refer to the [original model card](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) for more details on the model.
|
173 |
+
## Use with mlx
|
174 |
+
|
175 |
+
```bash
|
176 |
+
pip install mlx-lm
|
177 |
+
```
|
178 |
+
|
179 |
+
```python
|
180 |
+
from mlx_lm import load, generate
|
181 |
+
|
182 |
+
model, tokenizer = load("mlx-community/llama2-70b-qnt4bit")
|
183 |
+
response = generate(model, tokenizer, prompt="hello", verbose=True)
|
184 |
+
```
|
config.json
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"vocab_size": 32000,
|
3 |
+
"max_position_embeddings": 4096,
|
4 |
+
"hidden_size": 8192,
|
5 |
+
"intermediate_size": 28672,
|
6 |
+
"num_hidden_layers": 80,
|
7 |
+
"num_attention_heads": 64,
|
8 |
+
"num_key_value_heads": 8,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"rms_norm_eps": 1e-05,
|
12 |
+
"pretraining_tp": 1,
|
13 |
+
"use_cache": true,
|
14 |
+
"rope_theta": 10000.0,
|
15 |
+
"rope_scaling": null,
|
16 |
+
"attention_bias": false,
|
17 |
+
"attention_dropout": 0.0,
|
18 |
+
"return_dict": true,
|
19 |
+
"output_hidden_states": false,
|
20 |
+
"output_attentions": false,
|
21 |
+
"torchscript": false,
|
22 |
+
"torch_dtype": "float16",
|
23 |
+
"use_bfloat16": false,
|
24 |
+
"tf_legacy_loss": false,
|
25 |
+
"pruned_heads": {},
|
26 |
+
"tie_word_embeddings": false,
|
27 |
+
"chunk_size_feed_forward": 0,
|
28 |
+
"is_encoder_decoder": false,
|
29 |
+
"is_decoder": false,
|
30 |
+
"cross_attention_hidden_size": null,
|
31 |
+
"add_cross_attention": false,
|
32 |
+
"tie_encoder_decoder": false,
|
33 |
+
"max_length": 20,
|
34 |
+
"min_length": 0,
|
35 |
+
"do_sample": false,
|
36 |
+
"early_stopping": false,
|
37 |
+
"num_beams": 1,
|
38 |
+
"num_beam_groups": 1,
|
39 |
+
"diversity_penalty": 0.0,
|
40 |
+
"temperature": 1.0,
|
41 |
+
"top_k": 50,
|
42 |
+
"top_p": 1.0,
|
43 |
+
"typical_p": 1.0,
|
44 |
+
"repetition_penalty": 1.0,
|
45 |
+
"length_penalty": 1.0,
|
46 |
+
"no_repeat_ngram_size": 0,
|
47 |
+
"encoder_no_repeat_ngram_size": 0,
|
48 |
+
"bad_words_ids": null,
|
49 |
+
"num_return_sequences": 1,
|
50 |
+
"output_scores": false,
|
51 |
+
"return_dict_in_generate": false,
|
52 |
+
"forced_bos_token_id": null,
|
53 |
+
"forced_eos_token_id": null,
|
54 |
+
"remove_invalid_values": false,
|
55 |
+
"exponential_decay_length_penalty": null,
|
56 |
+
"suppress_tokens": null,
|
57 |
+
"begin_suppress_tokens": null,
|
58 |
+
"architectures": [
|
59 |
+
"LlamaForCausalLM"
|
60 |
+
],
|
61 |
+
"finetuning_task": null,
|
62 |
+
"id2label": {
|
63 |
+
"0": "LABEL_0",
|
64 |
+
"1": "LABEL_1"
|
65 |
+
},
|
66 |
+
"label2id": {
|
67 |
+
"LABEL_0": 0,
|
68 |
+
"LABEL_1": 1
|
69 |
+
},
|
70 |
+
"tokenizer_class": null,
|
71 |
+
"prefix": null,
|
72 |
+
"bos_token_id": 1,
|
73 |
+
"pad_token_id": null,
|
74 |
+
"eos_token_id": 2,
|
75 |
+
"sep_token_id": null,
|
76 |
+
"decoder_start_token_id": null,
|
77 |
+
"task_specific_params": null,
|
78 |
+
"problem_type": null,
|
79 |
+
"_name_or_path": "/Users/macpro/.cache/huggingface/hub/models--meta-llama--Llama-2-70b-chat-hf/snapshots/8b17e6f4e86be78cf54afd49ddb517d4e274c13f",
|
80 |
+
"transformers_version": "4.38.1",
|
81 |
+
"model_type": "llama",
|
82 |
+
"quantization": {
|
83 |
+
"group_size": 64,
|
84 |
+
"bits": 4
|
85 |
+
}
|
86 |
+
}
|
model-00001-of-00002.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9170e4865a44c21f7096e0f075fd625b46f500637c12e548ac53eefc73eea0ee
|
3 |
+
size 5368373784
|
model-00001-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9d6126e0361109716aa8f3057388655012586b90603c16b0135b84db7a955c9
|
3 |
+
size 5337605804
|
model-00002-of-00002.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f38dc784f8b605573078a467bd57943504901294c21ab963864ce5f7b8e0488a
|
3 |
+
size 2189270906
|
model-00002-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:012321d7a93662d15492032d50a9be51544150bc4b480525f8145babb81fbedc
|
3 |
+
size 5341836690
|
model-00003-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d6ff9a80600bdf630ba2af6483e7eee9de920046e316da9d3e336224ebeb398
|
3 |
+
size 5332398774
|
model-00004-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb5d3db59219a4ac678a7e98970ad501767334f88ac4e7fd138191a44962b0d8
|
3 |
+
size 5294649693
|
model-00005-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdf1b8e3d09bc6020a16a0de0bbbd2bea2e7ab9af1ccd935aa26da7113c3d038
|
3 |
+
size 5294649675
|
model-00006-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57f0659a737a963d5203a8698252cb0ecf6154da3adc72a077d5da994e213f2b
|
3 |
+
size 5294649647
|
model-00007-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b4bd6ea3db3abe39494c56ef38e9e8dd736cae7d804b72c40e34af1d354fe0d
|
3 |
+
size 5294649703
|
model-00008-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a6eb5d452a5e46dbc95ad98fb84cf0bd7d3de3318efc9e1fb90d5362085bddc3
|
3 |
+
size 1987863837
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:112711e4b6a2501d20988726bdc1556800931d30b9e0abf1148e5ff4feeb761d
|
3 |
+
size 3979241482
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"bos_token": "<s>",
|
31 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
|
32 |
+
"clean_up_tokenization_spaces": false,
|
33 |
+
"eos_token": "</s>",
|
34 |
+
"legacy": false,
|
35 |
+
"model_max_length": 1000000000000000019884624838656,
|
36 |
+
"pad_token": null,
|
37 |
+
"padding_side": "right",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"tokenizer_class": "LlamaTokenizer",
|
40 |
+
"unk_token": "<unk>",
|
41 |
+
"use_default_system_prompt": false
|
42 |
+
}
|