FuzzyMartian17
commited on
Commit
•
e460882
1
Parent(s):
b7efaa3
Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- README.md +134 -0
- compiled/0aed2ee7f9c332e72187.neff +3 -0
- compiled/1733a74113bb1a8c63b2.neff +3 -0
- compiled/3bc4ca178b96ce4fcb9e.neff +3 -0
- compiled/4530405feeffd41f13ce.neff +3 -0
- compiled/5f5f81fea5c273693655.neff +3 -0
- compiled/618623f0df854cd4df29.neff +3 -0
- compiled/855025957b66cc38cf07.neff +3 -0
- compiled/b965d4a02c872a7c40fb.neff +3 -0
- compiled/bfdb2511b9f36729a013.neff +3 -0
- compiled/c171bfa10f80b8aef631.neff +3 -0
- compiled/c725ea2502e39be842b2.neff +3 -0
- compiled/e46f7133e61a221e625d.neff +3 -0
- config.json +39 -0
- generation_config.json +10 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +42 -0
.gitattributes
CHANGED
@@ -33,3 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
compiled/0aed2ee7f9c332e72187.neff filter=lfs diff=lfs merge=lfs -text
|
37 |
+
compiled/1733a74113bb1a8c63b2.neff filter=lfs diff=lfs merge=lfs -text
|
38 |
+
compiled/3bc4ca178b96ce4fcb9e.neff filter=lfs diff=lfs merge=lfs -text
|
39 |
+
compiled/4530405feeffd41f13ce.neff filter=lfs diff=lfs merge=lfs -text
|
40 |
+
compiled/5f5f81fea5c273693655.neff filter=lfs diff=lfs merge=lfs -text
|
41 |
+
compiled/618623f0df854cd4df29.neff filter=lfs diff=lfs merge=lfs -text
|
42 |
+
compiled/855025957b66cc38cf07.neff filter=lfs diff=lfs merge=lfs -text
|
43 |
+
compiled/b965d4a02c872a7c40fb.neff filter=lfs diff=lfs merge=lfs -text
|
44 |
+
compiled/bfdb2511b9f36729a013.neff filter=lfs diff=lfs merge=lfs -text
|
45 |
+
compiled/c171bfa10f80b8aef631.neff filter=lfs diff=lfs merge=lfs -text
|
46 |
+
compiled/c725ea2502e39be842b2.neff filter=lfs diff=lfs merge=lfs -text
|
47 |
+
compiled/e46f7133e61a221e625d.neff filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
extra_gated_heading: Access Llama 2 on Hugging Face
|
3 |
+
extra_gated_description: >-
|
4 |
+
This is a form to enable access to Llama 2 on Hugging Face after you have been
|
5 |
+
granted access from Meta. Please visit the [Meta website](https://ai.meta.com/resources/models-and-libraries/llama-downloads) and accept our
|
6 |
+
license terms and acceptable use policy before submitting this form. Requests
|
7 |
+
will be processed in 1-2 days.
|
8 |
+
extra_gated_button_content: Submit
|
9 |
+
extra_gated_fields:
|
10 |
+
I agree to share my name, email address and username with Meta and confirm that I have already been granted download access on the Meta website: checkbox
|
11 |
+
language:
|
12 |
+
- en
|
13 |
+
pipeline_tag: text-generation
|
14 |
+
inference: false
|
15 |
+
tags:
|
16 |
+
- facebook
|
17 |
+
- meta
|
18 |
+
- pytorch
|
19 |
+
- llama
|
20 |
+
- llama-2
|
21 |
+
---
|
22 |
+
# **Llama 2**
|
23 |
+
Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 13B fine-tuned model, optimized for dialogue use cases and converted for the Hugging Face Transformers format. Links to other models can be found in the index at the bottom.
|
24 |
+
|
25 |
+
## Model Details
|
26 |
+
*Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the [website](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and accept our License before requesting access here.*
|
27 |
+
|
28 |
+
Meta developed and publicly released the Llama 2 family of large language models (LLMs), a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama-2-Chat, are optimized for dialogue use cases. Llama-2-Chat models outperform open-source chat models on most benchmarks we tested, and in our human evaluations for helpfulness and safety, are on par with some popular closed-source models like ChatGPT and PaLM.
|
29 |
+
|
30 |
+
**Model Developers** Meta
|
31 |
+
|
32 |
+
**Variations** Llama 2 comes in a range of parameter sizes — 7B, 13B, and 70B — as well as pretrained and fine-tuned variations.
|
33 |
+
|
34 |
+
**Input** Models input text only.
|
35 |
+
|
36 |
+
**Output** Models generate text only.
|
37 |
+
|
38 |
+
**Model Architecture** Llama 2 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align to human preferences for helpfulness and safety.
|
39 |
+
|
40 |
+
|
41 |
+
||Training Data|Params|Content Length|GQA|Tokens|LR|
|
42 |
+
|---|---|---|---|---|---|---|
|
43 |
+
|Llama 2|*A new mix of publicly available online data*|7B|4k|✗|2.0T|3.0 x 10<sup>-4</sup>|
|
44 |
+
|Llama 2|*A new mix of publicly available online data*|13B|4k|✗|2.0T|3.0 x 10<sup>-4</sup>|
|
45 |
+
|Llama 2|*A new mix of publicly available online data*|70B|4k|✔|2.0T|1.5 x 10<sup>-4</sup>|
|
46 |
+
|
47 |
+
*Llama 2 family of models.* Token counts refer to pretraining data only. All models are trained with a global batch-size of 4M tokens. Bigger models - 70B -- use Grouped-Query Attention (GQA) for improved inference scalability.
|
48 |
+
|
49 |
+
**Model Dates** Llama 2 was trained between January 2023 and July 2023.
|
50 |
+
|
51 |
+
**Status** This is a static model trained on an offline dataset. Future versions of the tuned models will be released as we improve model safety with community feedback.
|
52 |
+
|
53 |
+
**License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)
|
54 |
+
|
55 |
+
## Intended Use
|
56 |
+
**Intended Use Cases** Llama 2 is intended for commercial and research use in English. Tuned models are intended for assistant-like chat, whereas pretrained models can be adapted for a variety of natural language generation tasks.
|
57 |
+
|
58 |
+
To get the expected features and performance for the chat versions, a specific formatting needs to be followed, including the `INST` and `<<SYS>>` tags, `BOS` and `EOS` tokens, and the whitespaces and breaklines in between (we recommend calling `strip()` on inputs to avoid double-spaces). See our reference code in github for details: [`chat_completion`](https://github.com/facebookresearch/llama/blob/main/llama/generation.py#L212).
|
59 |
+
|
60 |
+
**Out-of-scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws).Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Llama 2.
|
61 |
+
|
62 |
+
## Hardware and Software
|
63 |
+
**Training Factors** We used custom training libraries, Meta's Research Super Cluster, and production clusters for pretraining. Fine-tuning, annotation, and evaluation were also performed on third-party cloud compute.
|
64 |
+
|
65 |
+
**Carbon Footprint** Pretraining utilized a cumulative 3.3M GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 539 tCO2eq, 100% of which were offset by Meta’s sustainability program.
|
66 |
+
|
67 |
+
||Time (GPU hours)|Power Consumption (W)|Carbon Emitted(tCO<sub>2</sub>eq)|
|
68 |
+
|---|---|---|---|
|
69 |
+
|Llama 2 7B|184320|400|31.22|
|
70 |
+
|Llama 2 13B|368640|400|62.44|
|
71 |
+
|Llama 2 70B|1720320|400|291.42|
|
72 |
+
|Total|3311616||539.00|
|
73 |
+
|
74 |
+
**CO<sub>2</sub> emissions during pretraining.** Time: total GPU time required for training each model. Power Consumption: peak power capacity per GPU device for the GPUs used adjusted for power usage efficiency. 100% of the emissions are directly offset by Meta's sustainability program, and because we are openly releasing these models, the pretraining costs do not need to be incurred by others.
|
75 |
+
|
76 |
+
## Training Data
|
77 |
+
**Overview** Llama 2 was pretrained on 2 trillion tokens of data from publicly available sources. The fine-tuning data includes publicly available instruction datasets, as well as over one million new human-annotated examples. Neither the pretraining nor the fine-tuning datasets include Meta user data.
|
78 |
+
|
79 |
+
**Data Freshness** The pretraining data has a cutoff of September 2022, but some tuning data is more recent, up to July 2023.
|
80 |
+
|
81 |
+
## Evaluation Results
|
82 |
+
|
83 |
+
In this section, we report the results for the Llama 1 and Llama 2 models on standard academic benchmarks.For all the evaluations, we use our internal evaluations library.
|
84 |
+
|
85 |
+
|Model|Size|Code|Commonsense Reasoning|World Knowledge|Reading Comprehension|Math|MMLU|BBH|AGI Eval|
|
86 |
+
|---|---|---|---|---|---|---|---|---|---|
|
87 |
+
|Llama 1|7B|14.1|60.8|46.2|58.5|6.95|35.1|30.3|23.9|
|
88 |
+
|Llama 1|13B|18.9|66.1|52.6|62.3|10.9|46.9|37.0|33.9|
|
89 |
+
|Llama 1|33B|26.0|70.0|58.4|67.6|21.4|57.8|39.8|41.7|
|
90 |
+
|Llama 1|65B|30.7|70.7|60.5|68.6|30.8|63.4|43.5|47.6|
|
91 |
+
|Llama 2|7B|16.8|63.9|48.9|61.3|14.6|45.3|32.6|29.3|
|
92 |
+
|Llama 2|13B|24.5|66.9|55.4|65.8|28.7|54.8|39.4|39.1|
|
93 |
+
|Llama 2|70B|**37.5**|**71.9**|**63.6**|**69.4**|**35.2**|**68.9**|**51.2**|**54.2**|
|
94 |
+
|
95 |
+
**Overall performance on grouped academic benchmarks.** *Code:* We report the average pass@1 scores of our models on HumanEval and MBPP. *Commonsense Reasoning:* We report the average of PIQA, SIQA, HellaSwag, WinoGrande, ARC easy and challenge, OpenBookQA, and CommonsenseQA. We report 7-shot results for CommonSenseQA and 0-shot results for all other benchmarks. *World Knowledge:* We evaluate the 5-shot performance on NaturalQuestions and TriviaQA and report the average. *Reading Comprehension:* For reading comprehension, we report the 0-shot average on SQuAD, QuAC, and BoolQ. *MATH:* We report the average of the GSM8K (8 shot) and MATH (4 shot) benchmarks at top 1.
|
96 |
+
|
97 |
+
|||TruthfulQA|Toxigen|
|
98 |
+
|---|---|---|---|
|
99 |
+
|Llama 1|7B|27.42|23.00|
|
100 |
+
|Llama 1|13B|41.74|23.08|
|
101 |
+
|Llama 1|33B|44.19|22.57|
|
102 |
+
|Llama 1|65B|48.71|21.77|
|
103 |
+
|Llama 2|7B|33.29|**21.25**|
|
104 |
+
|Llama 2|13B|41.86|26.10|
|
105 |
+
|Llama 2|70B|**50.18**|24.60|
|
106 |
+
|
107 |
+
**Evaluation of pretrained LLMs on automatic safety benchmarks.** For TruthfulQA, we present the percentage of generations that are both truthful and informative (the higher the better). For ToxiGen, we present the percentage of toxic generations (the smaller the better).
|
108 |
+
|
109 |
+
|
110 |
+
|||TruthfulQA|Toxigen|
|
111 |
+
|---|---|---|---|
|
112 |
+
|Llama-2-Chat|7B|57.04|**0.00**|
|
113 |
+
|Llama-2-Chat|13B|62.18|**0.00**|
|
114 |
+
|Llama-2-Chat|70B|**64.14**|0.01|
|
115 |
+
|
116 |
+
**Evaluation of fine-tuned LLMs on different safety datasets.** Same metric definitions as above.
|
117 |
+
|
118 |
+
## Ethical Considerations and Limitations
|
119 |
+
Llama 2 is a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2, developers should perform safety testing and tuning tailored to their specific applications of the model.
|
120 |
+
|
121 |
+
Please see the Responsible Use Guide available at [https://ai.meta.com/llama/responsible-use-guide/](https://ai.meta.com/llama/responsible-use-guide)
|
122 |
+
|
123 |
+
## Reporting Issues
|
124 |
+
Please report any software “bug,” or other problems with the models through one of the following means:
|
125 |
+
- Reporting issues with the model: [github.com/facebookresearch/llama](http://github.com/facebookresearch/llama)
|
126 |
+
- Reporting problematic content generated by the model: [developers.facebook.com/llama_output_feedback](http://developers.facebook.com/llama_output_feedback)
|
127 |
+
- Reporting bugs and security concerns: [facebook.com/whitehat/info](http://facebook.com/whitehat/info)
|
128 |
+
|
129 |
+
## Llama Model Index
|
130 |
+
|Model|Llama2|Llama2-hf|Llama2-chat|Llama2-chat-hf|
|
131 |
+
|---|---|---|---|---|
|
132 |
+
|7B| [Link](https://huggingface.co/llamaste/Llama-2-7b) | [Link](https://huggingface.co/llamaste/Llama-2-7b-hf) | [Link](https://huggingface.co/llamaste/Llama-2-7b-chat) | [Link](https://huggingface.co/llamaste/Llama-2-7b-chat-hf)|
|
133 |
+
|13B| [Link](https://huggingface.co/llamaste/Llama-2-13b) | [Link](https://huggingface.co/llamaste/Llama-2-13b-hf) | [Link](https://huggingface.co/llamaste/Llama-2-13b-chat) | [Link](https://huggingface.co/llamaste/Llama-2-13b-hf)|
|
134 |
+
|70B| [Link](https://huggingface.co/llamaste/Llama-2-70b) | [Link](https://huggingface.co/llamaste/Llama-2-70b-hf) | [Link](https://huggingface.co/llamaste/Llama-2-70b-chat) | [Link](https://huggingface.co/llamaste/Llama-2-70b-hf)|
|
compiled/0aed2ee7f9c332e72187.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7e87297f215db1c20ba65e044d6e0da78ec4bce740b08d14a0228a72478c754
|
3 |
+
size 18535424
|
compiled/1733a74113bb1a8c63b2.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:515719d3ba63e451a6d9df2ff50cef1ee2ad97d55dc55b8557cf18834315c890
|
3 |
+
size 9288704
|
compiled/3bc4ca178b96ce4fcb9e.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc708a6cf9d4c39ffbf2e3a23f3c4e770818ae8824e990c7bb01fdb28a121783
|
3 |
+
size 2765824
|
compiled/4530405feeffd41f13ce.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d611e26dcd9a34053c78fb50a9b932937c8edcc2e3fb7d898e4b912e06c854d
|
3 |
+
size 2919424
|
compiled/5f5f81fea5c273693655.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7aa95bdfaa78b79190375f2f37f8e2055adee4ffc64d32aad1fe255da6812e2f
|
3 |
+
size 3154944
|
compiled/618623f0df854cd4df29.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:943dc598bd37e2fd0435b692171e3983ac2b83f96f1ec193e98f11ffdffe18d7
|
3 |
+
size 2827264
|
compiled/855025957b66cc38cf07.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a3d3df274ba98145048905f9b930b004ab1209bc2d2aa12304f86ae4fdea9ec
|
3 |
+
size 4967424
|
compiled/b965d4a02c872a7c40fb.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a533da252c0bddbfe73a0ccc90d011e05dbe5d16cdf512e9c66ab5a064a9ac5c
|
3 |
+
size 3062784
|
compiled/bfdb2511b9f36729a013.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4ebebcf59f3c27d498c178e9e0b32c67ce5c557957ce528762b01295ceae3bc3
|
3 |
+
size 3390464
|
compiled/c171bfa10f80b8aef631.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3e4926372eb65b94e9996fe485a8387a40f46e6795de95477247c75b595fc4c9
|
3 |
+
size 3431424
|
compiled/c725ea2502e39be842b2.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04f3478470893600e8a6caf3f5d463725c92a57b80b369ff42e7f13d932e7640
|
3 |
+
size 3820544
|
compiled/e46f7133e61a221e625d.neff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:267749c1ebe7b254e49b0747eebde055303cfee878eb8c921baaa182f7911695
|
3 |
+
size 2786304
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "meta-llama/Llama-2-13b-chat-hf",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 5120,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 13824,
|
14 |
+
"max_position_embeddings": 4096,
|
15 |
+
"model_type": "llama",
|
16 |
+
"neuron": {
|
17 |
+
"auto_cast_type": "fp16",
|
18 |
+
"batch_size": 1,
|
19 |
+
"checkpoint_id": "meta-llama/Llama-2-13b-chat-hf",
|
20 |
+
"checkpoint_revision": "29655417e51232f4f2b9b5d3e1418e5a9b04e80e",
|
21 |
+
"compiler_type": "neuronx-cc",
|
22 |
+
"compiler_version": "2.12.68.0+4480452af",
|
23 |
+
"num_cores": 12,
|
24 |
+
"sequence_length": 4096,
|
25 |
+
"task": "text-generation"
|
26 |
+
},
|
27 |
+
"num_attention_heads": 40,
|
28 |
+
"num_hidden_layers": 40,
|
29 |
+
"num_key_value_heads": 40,
|
30 |
+
"pretraining_tp": 1,
|
31 |
+
"rms_norm_eps": 1e-05,
|
32 |
+
"rope_scaling": null,
|
33 |
+
"rope_theta": 10000.0,
|
34 |
+
"tie_word_embeddings": false,
|
35 |
+
"torch_dtype": "float16",
|
36 |
+
"transformers_version": "4.36.2",
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 32000
|
39 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 4096,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"temperature": 0.6,
|
8 |
+
"top_p": 0.9,
|
9 |
+
"transformers_version": "4.36.2"
|
10 |
+
}
|
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 |
+
}
|