初始化项目,由ModelHub XC社区提供模型
Model: allenai/OLMoE-1B-7B-0125-DPO Source: Original Platform
This commit is contained in:
41
.gitattributes
vendored
Normal file
41
.gitattributes
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||
*.model filter=lfs diff=lfs merge=lfs -text
|
||||
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
pytorch_model-00001-of-00003.bin filter=lfs diff=lfs merge=lfs -text
|
||||
pytorch_model-00002-of-00003.bin filter=lfs diff=lfs merge=lfs -text
|
||||
pytorch_model-00003-of-00003.bin filter=lfs diff=lfs merge=lfs -text
|
||||
model-00001-of-00003.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
model-00002-of-00003.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
model-00003-of-00003.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
171
README.md
Normal file
171
README.md
Normal file
@@ -0,0 +1,171 @@
|
||||
---
|
||||
license: apache-2.0
|
||||
language:
|
||||
- en
|
||||
pipeline_tag: text-generation
|
||||
base_model:
|
||||
- allenai/OLMoE-1B-7B-0125-SFT
|
||||
library_name: transformers
|
||||
datasets:
|
||||
- allenai/olmoe-0125-1b-7b-preference-mix
|
||||
---
|
||||
|
||||
<img alt="OLMo Logo" src="https://huggingface.co/allenai/OLMoE-1B-7B-0125/resolve/main/olmoe-logo.png" width="242px">
|
||||
|
||||
|
||||
# OLMoE-1B-7B-0125-DPO
|
||||
|
||||
|
||||
## Release Documentation
|
||||
|
||||
OLMoE-1B-7B-0125-DPO January 2025 is post-trained variant of the [OLMoE-1B-7B January 2025](https://huggingface.co/allenai/OLMoE-1B-7B-0125) model, which has undergone supervised finetuning on an OLMo-specific variant of the [Tülu 3 dataset](allenai/tulu-3-sft-olmo-2-mixture) and further DPO training on [this dataset](https://huggingface.co/datasets/allenai/olmoe-0125-1b-7b-preference-mix).
|
||||
Tülu 3 is designed for state-of-the-art performance on a diversity of tasks in addition to chat, such as MATH, GSM8K, and IFEval.
|
||||
Check out the [OLMoE paper](https://arxiv.org/abs/2409.02060) or [Tülu 3 paper](https://arxiv.org/abs/2411.15124) for more details!
|
||||
|
||||
OLMo is a series of **O**pen **L**anguage **Mo**dels designed to enable the science of language models.
|
||||
These models are trained on the Dolma dataset. We are releasing all code, checkpoints, logs (coming soon), and associated training details.
|
||||
The core models released in this batch include the following:
|
||||
|
||||
|
||||
| **Stage** | **OLMoE 1B-7B** |
|
||||
|----------------------|----------------------------------------------------------------------------------------------------------|
|
||||
| **Base Model** | [allenai/OLMoE-1B-7B-0125](https://huggingface.co/allenai/OLMoE-1B-7B-0125) |
|
||||
| **SFT** | [allenai/OLMoE-1B-7B-0125-SFT](https://huggingface.co/allenai/OLMoE-1B-7B-0125-SFT) |
|
||||
| **DPO** | [allenai/OLMoE-1B-7B-0125-DPO](https://huggingface.co/allenai/OLMoE-1B-7B-0125-DPO) |
|
||||
| **Final Models (RLVR)** | [allenai/OLMoE-1B-7B-0125-Instruct](https://huggingface.co/allenai/OLMoE-1B-7B-0125-Instruct) |
|
||||
| **Reward Model (RM)**| [allenai/OLMoE-1B-7B-0125-RM](https://huggingface.co/allenai/OLMoE-1B-7B-0125-RM) |
|
||||
|
||||
|
||||
## Model description
|
||||
|
||||
- **Model type:** A model trained on a mix of publicly available, synthetic and human-created datasets.
|
||||
- **Language(s) (NLP):** Primarily English
|
||||
- **License:** Apache 2.0
|
||||
- **Finetuned from model:** allenai/OLMoE-1B-7B-0125-DPO
|
||||
|
||||
### Model Sources
|
||||
|
||||
- **Project Page:** https://allenai.org/olmo
|
||||
- **Repositories:**
|
||||
- Core repo (training, inference, fine-tuning etc.): https://github.com/allenai/OLMo
|
||||
- Evaluation code: https://github.com/allenai/olmes
|
||||
- Further fine-tuning code: https://github.com/allenai/open-instruct
|
||||
- **Paper:** https://arxiv.org/abs/2409.02060
|
||||
- **Demo:** https://playground.allenai.org/
|
||||
|
||||
## Installation
|
||||
|
||||
OLMo 2 will be supported in the next version of Transformers, and you need to install it from the main branch using:
|
||||
```bash
|
||||
pip install --upgrade git+https://github.com/huggingface/transformers.git
|
||||
```
|
||||
|
||||
## Using the model
|
||||
|
||||
### Loading with HuggingFace
|
||||
|
||||
To load the model with HuggingFace, use the following snippet:
|
||||
```
|
||||
from transformers import AutoModelForCausalLM
|
||||
|
||||
olmo_model = AutoModelForCausalLM.from_pretrained("OLMoE-1B-7B-0125-DPO")
|
||||
```
|
||||
|
||||
### Chat template
|
||||
|
||||
The chat template for our models is formatted as:
|
||||
```
|
||||
<|endoftext|><|user|>\nHow are you doing?\n<|assistant|>\nI'm just a computer program, so I don't have feelings, but I'm functioning as expected. How can I assist you today?<|endoftext|>
|
||||
```
|
||||
Or with new lines expanded:
|
||||
```
|
||||
<|endoftext|><|user|>
|
||||
How are you doing?
|
||||
<|assistant|>
|
||||
I'm just a computer program, so I don't have feelings, but I'm functioning as expected. How can I assist you today?<|endoftext|>
|
||||
```
|
||||
It is embedded within the tokenizer as well, for `tokenizer.apply_chat_template`.
|
||||
|
||||
### System prompt
|
||||
|
||||
In Ai2 demos, we use this system prompt by default:
|
||||
```
|
||||
You are OLMo 2, a helpful and harmless AI Assistant built by the Allen Institute for AI.
|
||||
```
|
||||
The model has not been trained with a specific system prompt in mind.
|
||||
|
||||
### Bias, Risks, and Limitations
|
||||
|
||||
The OLMo-2 models have limited safety training, but are not deployed automatically with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so).
|
||||
See the Falcon 180B model card for an example of this.
|
||||
|
||||
|
||||
## Performance
|
||||
|
||||
| Benchmark (eval) | OLMoE-1B-7B-0125-Instruct | OLMoE-1B-7B-0924-Instruct | OLMoE-1B-7B-0125-DPO | OLMoE-1B-7B-0125-SFT | OLMoE-1B-7B-0924-SFT |
|
||||
|--------------------------------|---------------------------|--------------------------|----------------------|---------------------|---------------------|
|
||||
| **Avg.** | **45.62** | 38.44 | 45.05 | 41.76 | 37.05 |
|
||||
| **MMLU (CoT)** | 55.08 | 54.57 | 54.93 | **55.26** | 54.32 |
|
||||
| **PopQA** | 19.75 | 20.56 | 19.65 | 20.12 | **21.01** |
|
||||
| **TruthfulQA** | **50.56** | 49.14 | 49.99 | 45.48 | 44.66 |
|
||||
| **BigBenchHard (CoT)** | **38.61** | 36.78 | 37.37 | 37.31 | 36.55 |
|
||||
| **DROP** | 47.87 | 34.48 | 48.38 | **48.57** | 34.71 |
|
||||
| **MATH (Flex)** | **21.41** | 8.16 | 20.36 | 21.38 | 8.15 |
|
||||
| **GSM8K** | **72.40** | 47.38 | 64.59 | 55.72 | 42.46 |
|
||||
| **HumanEval** | 62.30 | 63.04 | 61.92 | 62.58 | **63.72** |
|
||||
| **HumanEval+** | 54.37 | **58.93** | 57.61 | 55.67 | 57.40 |
|
||||
| **IFEval** | **66.36** | 45.29 | 65.62 | 56.56 | 41.22 |
|
||||
| **AlpacaEval** | 17.99 | 7.54 | **19.50** | 5.83 | 6.38 |
|
||||
| **Safety (average)** | 90.40 | 51.40 | 91.40 | **94.50** | 65.80 |
|
||||
|
||||
## License and use
|
||||
|
||||
OLMoE is licensed under the Apache 2.0 license.
|
||||
OLMoE is intended for research and educational use.
|
||||
For more information, please see our [Responsible Use Guidelines](https://allenai.org/responsible-use).
|
||||
This model has been fine-tuned using a dataset mix with outputs generated from third party models and are subject to additional terms: [Gemma Terms of Use](https://ai.google.dev/gemma/terms).
|
||||
|
||||
## Citation
|
||||
|
||||
```bibtex
|
||||
@misc{muennighoff2024olmoeopenmixtureofexpertslanguage,
|
||||
title={OLMoE: Open Mixture-of-Experts Language Models},
|
||||
author={Niklas Muennighoff and Luca Soldaini and Dirk Groeneveld and Kyle Lo and Jacob Morrison and Sewon Min and Weijia Shi and Pete Walsh and Oyvind Tafjord and Nathan Lambert and Yuling Gu and Shane Arora and Akshita Bhagia and Dustin Schwenk and David Wadden and Alexander Wettig and Binyuan Hui and Tim Dettmers and Douwe Kiela and Ali Farhadi and Noah A. Smith and Pang Wei Koh and Amanpreet Singh and Hannaneh Hajishirzi},
|
||||
year={2024},
|
||||
eprint={2409.02060},
|
||||
archivePrefix={arXiv},
|
||||
primaryClass={cs.CL},
|
||||
url={https://arxiv.org/abs/2409.02060},
|
||||
}
|
||||
@article{lambert2024tulu3,
|
||||
title = {Tülu 3: Pushing Frontiers in Open Language Model Post-Training},
|
||||
author = {
|
||||
Nathan Lambert and
|
||||
Jacob Morrison and
|
||||
Valentina Pyatkin and
|
||||
Shengyi Huang and
|
||||
Hamish Ivison and
|
||||
Faeze Brahman and
|
||||
Lester James V. Miranda and
|
||||
Alisa Liu and
|
||||
Nouha Dziri and
|
||||
Shane Lyu and
|
||||
Yuling Gu and
|
||||
Saumya Malik and
|
||||
Victoria Graf and
|
||||
Jena D. Hwang and
|
||||
Jiangjiang Yang and
|
||||
Ronan Le Bras and
|
||||
Oyvind Tafjord and
|
||||
Chris Wilhelm and
|
||||
Luca Soldaini and
|
||||
Noah A. Smith and
|
||||
Yizhong Wang and
|
||||
Pradeep Dasigi and
|
||||
Hannaneh Hajishirzi
|
||||
},
|
||||
year = {2024},
|
||||
email = {tulu@allenai.org}
|
||||
}
|
||||
```
|
||||
|
||||
33
config.json
Normal file
33
config.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"_name_or_path": "allenai/open_instruct_dev",
|
||||
"architectures": [
|
||||
"OlmoeForCausalLM"
|
||||
],
|
||||
"attention_bias": false,
|
||||
"attention_dropout": 0.0,
|
||||
"clip_qkv": null,
|
||||
"eos_token_id": 50279,
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 2048,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 1024,
|
||||
"max_position_embeddings": 4096,
|
||||
"model_type": "olmoe",
|
||||
"norm_topk_prob": false,
|
||||
"num_attention_heads": 16,
|
||||
"num_experts": 64,
|
||||
"num_experts_per_tok": 8,
|
||||
"num_hidden_layers": 16,
|
||||
"num_key_value_heads": 16,
|
||||
"output_router_logits": false,
|
||||
"pad_token_id": 1,
|
||||
"rms_norm_eps": 1e-05,
|
||||
"rope_scaling": null,
|
||||
"rope_theta": 10000.0,
|
||||
"router_aux_loss_coef": 0.01,
|
||||
"tie_word_embeddings": false,
|
||||
"torch_dtype": "bfloat16",
|
||||
"transformers_version": "4.47.0.dev0",
|
||||
"use_cache": true,
|
||||
"vocab_size": 50304
|
||||
}
|
||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
||||
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||
6
generation_config.json
Normal file
6
generation_config.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"_from_model_config": true,
|
||||
"eos_token_id": 50279,
|
||||
"pad_token_id": 1,
|
||||
"transformers_version": "4.47.0.dev0"
|
||||
}
|
||||
1
metadata.json
Normal file
1
metadata.json
Normal file
@@ -0,0 +1 @@
|
||||
{"model_name": "0119_node4_dpo_olmoe_1blr_9e-7", "model_type": "dpo", "datasets": ["allenai/tulu-3-pref-personas-instruction-following", "ai2-adapt-dev/wildchat_v3.9_used_on_policy_prompts-olmoe", "ai2-adapt-dev/wildchat_v3.9_unused_off_policy_prompts-olmoe", "ai2-adapt-dev/DaringAnteater-preferences-olmoe", "ai2-adapt-dev/uf_cleaned-olmoe", "ai2-adapt-dev/IF_Taxonomy-olmoe", "ai2-adapt-dev/sft_v3.9_used_off_policy_prompts-olmoe", "ai2-adapt-dev/sft_v3.9_used_on_policy_prompts-olmoe", "ai2-adapt-dev/Wildchat-prefs-280824-olmoe"], "base_model": "allenai/open_instruct_dev", "wandb_path": "https://wandb.ai/ai2-llm/open_instruct_internal/runs/mtbhb8vm", "beaker_experiment": "https://beaker.org/ex/01JJC8QSMJBCZYAX35JBBC0JPP/", "beaker_datasets": ["https://beaker.org/ds/01JJC8QSP21RYMG0G6RJM685JG", "https://beaker.org/ds/01JJC8QSV12E4TCGSZ8AG5EQQT", "https://beaker.org/ds/01JJC8QSZRRJHNR8DXMP814DBD", "https://beaker.org/ds/01JJC8QT51B9KTE8XN0D7ZX502", "https://beaker.org/ds/01JJCAGG9GEEJ4HGNX184EB9Q9", "https://beaker.org/ds/01JJCAGGECE73JG9BZPQPAJ7WH", "https://beaker.org/ds/01JJCAGGJRDM2S6NXDTEF3T338", "https://beaker.org/ds/01JJCAGGQA0QKSBNAWQWTZQ6X6"]}
|
||||
3
model-00001-of-00003.safetensors
Normal file
3
model-00001-of-00003.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e3ee767383f5acc410c687742f183ebc2dd5999544fb2bcdfbcf1593581026a2
|
||||
size 4997744872
|
||||
3
model-00002-of-00003.safetensors
Normal file
3
model-00002-of-00003.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:621d128a9f93adeb0fc8949cdb3f93b34f64984eacb554ae6fd022261ece2ab3
|
||||
size 4997235176
|
||||
3
model-00003-of-00003.safetensors
Normal file
3
model-00003-of-00003.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dd627c363695011362e18b7a3632b66a360240a5e24aafe2d07be6fa8ff84d93
|
||||
size 3843741912
|
||||
3226
model.safetensors.index.json
Normal file
3226
model.safetensors.index.json
Normal file
File diff suppressed because it is too large
Load Diff
3
pytorch_model-00001-of-00003.bin
Normal file
3
pytorch_model-00001-of-00003.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f7f74ef3ccf88d8a79dad991ea07f857c8a0039bd0821c1ef94141fe4eee3bc
|
||||
size 4998004590
|
||||
3
pytorch_model-00002-of-00003.bin
Normal file
3
pytorch_model-00002-of-00003.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:950d6e0b061a1facda62e62855e184ecfad0daaf70dbf813fb27aefd56a22e79
|
||||
size 4997506338
|
||||
3
pytorch_model-00003-of-00003.bin
Normal file
3
pytorch_model-00003-of-00003.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:15b93b7eb2e527683352e4b4c5a52c7df6b5414e87687d69c20d870879ef9c3c
|
||||
size 3843938359
|
||||
3226
pytorch_model.bin.index.json
Normal file
3226
pytorch_model.bin.index.json
Normal file
File diff suppressed because it is too large
Load Diff
23
special_tokens_map.json
Normal file
23
special_tokens_map.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"bos_token": {
|
||||
"content": "|||IP_ADDRESS|||",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"eos_token": {
|
||||
"content": "|||IP_ADDRESS|||",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"pad_token": {
|
||||
"content": "<pad>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
250613
tokenizer.json
Normal file
250613
tokenizer.json
Normal file
File diff suppressed because it is too large
Load Diff
248
tokenizer_config.json
Normal file
248
tokenizer_config.json
Normal file
@@ -0,0 +1,248 @@
|
||||
{
|
||||
"add_bos_token": false,
|
||||
"add_eos_token": false,
|
||||
"add_prefix_space": false,
|
||||
"added_tokens_decoder": {
|
||||
"0": {
|
||||
"content": "<|endoftext|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": true
|
||||
},
|
||||
"1": {
|
||||
"content": "<|padding|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": true
|
||||
},
|
||||
"50254": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50255": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50256": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50257": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50258": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50259": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50260": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50261": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50262": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50263": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50264": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50265": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50266": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50267": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50268": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50269": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50270": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50271": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50272": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50273": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50274": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50275": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50276": {
|
||||
"content": " ",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50277": {
|
||||
"content": "|||EMAIL_ADDRESS|||",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50278": {
|
||||
"content": "|||PHONE_NUMBER|||",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": false
|
||||
},
|
||||
"50279": {
|
||||
"content": "|||IP_ADDRESS|||",
|
||||
"lstrip": false,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": true
|
||||
},
|
||||
"50280": {
|
||||
"content": "<pad>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false,
|
||||
"special": true
|
||||
}
|
||||
},
|
||||
"bos_token": "|||IP_ADDRESS|||",
|
||||
"chat_template": "{{ bos_token }}{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|system|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'user' %}{{ '<|user|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'assistant' %}{% if not loop.last %}{{ '<|assistant|>\n' + message['content'] + eos_token + '\n' }}{% else %}{{ '<|assistant|>\n' + message['content'] + eos_token }}{% endif %}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|assistant|>\n' }}{% endif %}{% endfor %}",
|
||||
"clean_up_tokenization_spaces": false,
|
||||
"eos_token": "|||IP_ADDRESS|||",
|
||||
"extra_special_tokens": {},
|
||||
"model_max_length": 1000000000000000019884624838656,
|
||||
"pad_token": "<pad>",
|
||||
"tokenizer_class": "GPTNeoXTokenizer",
|
||||
"unk_token": null
|
||||
}
|
||||
Reference in New Issue
Block a user