初始化项目,由ModelHub XC社区提供模型

Model: instruction-pretrain/InstructLM-1.3B
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-04-24 03:41:11 +08:00
commit 81a02b2c6c
15 changed files with 91548 additions and 0 deletions

35
.gitattributes vendored Normal file
View File

@@ -0,0 +1,35 @@
*.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

103
README.md Normal file
View File

@@ -0,0 +1,103 @@
---
license: apache-2.0
datasets:
- tiiuae/falcon-refinedweb
- instruction-pretrain/ft-instruction-synthesizer-collection
- instruction-pretrain/general-instruction-augmented-corpora
language:
- en
---
# Instruction Pre-Training: Language Models are Supervised Multitask Learners (EMNLP 2024)
This repo contains the **general models pre-trained from scratch** (on 100B tokens) in our paper [Instruction Pre-Training: Language Models are Supervised Multitask Learners](https://huggingface.co/papers/2406.14491).
We explore supervised multitask pre-training by proposing ***Instruction Pre-Training***, a framework that scalably augments massive raw corpora with instruction-response pairs to pre-train language models. The instruction-response pairs are generated by an efficient instruction synthesizer built on open-source models. In our experiments, we synthesize 200M instruction-response pairs covering 40+ task categories to verify the effectiveness of *Instruction Pre-Training*. Instruction Pre-Training* outperforms *Vanilla Pre-training* in both general pre-training from scratch and domain-adaptive continual pre-training. **In pre-training from scratch, *Instruction Pre-Training* not only improves pre-trained base models but also benefits more from further instruction tuning.** In continual pre-training, *Instruction Pre-Training* enables Llama3-8B to be comparable to or even outperform Llama3-70B.
<p align='center'>
<img src="https://cdn-uploads.huggingface.co/production/uploads/66711d2ee12fa6cc5f5dfc89/vRdsFIVQptbNaGiZ18Lih.png" width="400">
</p>
**************************** **Updates** ****************************
* **2026/1/23: Released [LLM-in-Sandbox Elicits General Agentic Intelligence](https://huggingface.co/papers/2601.16206), where the data of `Instruction Pre-Training` achieves robust generalization in agentic RL!**
* 2024/11/30: Released the multimodal version of the instruction synthesizer: [Visual Instruction Synthesizer](https://huggingface.co/AdaptLLM/Adapt-MLLM-to-Domains)
* 2024/9/20: Our paper has been accepted by EMNLP 2024 main conference🎉
* 2024/9/11: Updated [FAQ on continual pre-training from Llama3](https://huggingface.co/instruction-pretrain/instruction-synthesizer)
* 2024/8/29: Updated [guidelines](https://huggingface.co/instruction-pretrain/medicine-Llama3-8B) on evaluating any 🤗Huggingface models on the domain-specific tasks
* 2024/7/31: Updated pre-training suggestions in the `Advanced Usage` section of [instruction-synthesizer](https://huggingface.co/instruction-pretrain/instruction-synthesizer)
* 2024/7/15: We scaled up the pre-trained tokens from 100B to 250B, with the number of synthesized instruction-response pairs reaching 500M. The performance trend on downstream tasks throughout the pre-training process:
<p align='left'>
<img src="https://cdn-uploads.huggingface.co/production/uploads/66711d2ee12fa6cc5f5dfc89/0okCfRkC6uALTfuNxt0Fa.png" width="500">
</p>
* 2024/6/21: Released the [paper](https://huggingface.co/papers/2406.14491), [code](https://github.com/microsoft/LMOps), and [resources](https://huggingface.co/instruction-pretrain)
## Resources
**🤗 We share our data and models with example usages, feel free to open any discussions at [this page](https://huggingface.co/papers/2406.14491)! 🤗**
- Thanks to the demo [davanstrien/instruction-synthesizer](https://huggingface.co/spaces/davanstrien/instruction-synthesizer) for implementing our approach
- Context-Based Instruction Synthesizer: [instruction-synthesizer](https://huggingface.co/instruction-pretrain/instruction-synthesizer)
- Fine-Tuning Data for the Synthesizer: [ft-instruction-synthesizer-collection](https://huggingface.co/datasets/instruction-pretrain/ft-instruction-synthesizer-collection)
- General Models Pre-Trained from Scratch (on 100B tokes):
- [InstructLM-500M](https://huggingface.co/instruction-pretrain/InstructLM-500M)
- [InstructLM-1.3B](https://huggingface.co/instruction-pretrain/InstructLM-1.3B)
- Domain-Specific Models Pre-Trained from Llama3-8B:
- [Finance-Llama3-8B](https://huggingface.co/instruction-pretrain/finance-Llama3-8B)
- [Biomedicine-Llama3-8B](https://huggingface.co/instruction-pretrain/medicine-Llama3-8B)
- General Instruction-Augmented Corpora: [general-instruction-augmented-corpora](https://huggingface.co/datasets/instruction-pretrain/general-instruction-augmented-corpora)
- Domain-Specific Instruction-Augmented Corpora (no finance data to avoid ethical issues): [medicine-instruction-augmented-corpora](https://huggingface.co/datasets/instruction-pretrain/medicine-instruction-augmented-corpora)
## General Pre-Training From Scratch
We augment the [RefinedWeb corproa](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) with instruction-response pairs generated by our [context-based instruction synthesizer](https://huggingface.co/instruction-pretrain/instruction-synthesizer) to pre-train general langauge models from scratch.
To evaluate our general base model using the [lm-evaluation-harness framework](https://github.com/EleutherAI/lm-evaluation-harness)
1. Setup dependencies:
```bash
git clone https://github.com/EleutherAI/lm-evaluation-harness
cd lm-evaluation-harness
pip install -e .
```
2. Evaluate:
```bash
MODEL=instruction-pretrain/InstructLM-1.3B
add_bos_token=True # this flag is needed because lm-eval-harness set add_bos_token to False by default, but ours require add_bos_token to be True
accelerate launch -m lm_eval --model hf \
--model_args pretrained=${MODEL},add_bos_token=${add_bos_token},dtype=float16 \
--gen_kwargs do_sample=False \
--tasks piqa,hellaswag,winogrande \
--batch_size auto \
--num_fewshot 0
accelerate launch -m lm_eval --model hf \
--model_args pretrained=${MODEL},add_bos_token=${add_bos_token},dtype=float16 \
--gen_kwargs do_sample=False \
--tasks social_iqa,ai2_arc,openbookqa,boolq,mmlu \
--batch_size auto \
--num_fewshot 5
```
## Citation
If you find our work helpful, please cite us:
[Instruction Pre-Training](https://huggingface.co/papers/2406.14491) (EMNLP 2024)
```bibtex
@article{cheng2024instruction,
title={Instruction Pre-Training: Language Models are Supervised Multitask Learners},
author={Cheng, Daixuan and Gu, Yuxian and Huang, Shaohan and Bi, Junyu and Huang, Minlie and Wei, Furu},
journal={arXiv preprint arXiv:2406.14491},
year={2024}
}
```
[Adapt LLM to Domains](https://huggingface.co/papers/2309.09530)ICLR 2024
```bibtex
@inproceedings{
cheng2024adapting,
title={Adapting Large Language Models via Reading Comprehension},
author={Daixuan Cheng and Shaohan Huang and Furu Wei},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=y886UXPEZ0}
}
```

24
config.json Normal file
View File

@@ -0,0 +1,24 @@
{
"architectures": [
"MistralForCausalLM"
],
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 2048,
"initializer_range": 0.02,
"intermediate_size": 8192,
"max_position_embeddings": 2048,
"model_type": "mistral",
"num_attention_heads": 32,
"num_hidden_layers": 20,
"num_key_value_heads": 8,
"rms_norm_eps": 1e-05,
"rope_theta": 10000.0,
"sliding_window": 2048,
"tie_word_embeddings": false,
"torch_dtype": "float16",
"transformers_version": "4.34.0.dev0",
"use_cache": true,
"vocab_size": 32000
}

6
generation_config.json Normal file
View File

@@ -0,0 +1,6 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"transformers_version": "4.34.0.dev0"
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0850dd546938e6d9376463cac47d645f195c1cef41fd272d8344ecb0efe76951
size 992005216

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97df38bb2ce960d58020c999c72e7b9bea987a973d84e073958470163d83a989
size 998314288

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:113b87b2f9852d0a9d89488f25f93a0b3a6d14f2fe268534a8526a70ffb382c1
size 989925472

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:66a342dcf68f079e380b6a38afa946004108e13156ebec14a2d7375bda75a7ea
size 973148160

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e43baf63d2314c442ef68853014e5ef5d6e99130d123f246ac05d7055b66afda
size 973148160

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:08b68988ef8fbe510a0ada35c1b03e85a316494dfc2aee0d97189f28c75a09dc
size 463495944

View File

@@ -0,0 +1,190 @@
{
"metadata": {
"total_size": 5390016512
},
"weight_map": {
"lm_head.weight": "model-00006-of-00006.safetensors",
"model.embed_tokens.weight": "model-00001-of-00006.safetensors",
"model.layers.0.input_layernorm.weight": "model-00001-of-00006.safetensors",
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.1.input_layernorm.weight": "model-00001-of-00006.safetensors",
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.1.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.1.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.10.input_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.10.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.10.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.10.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.10.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.10.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.10.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.10.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.10.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.11.input_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.11.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.11.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.11.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.11.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.11.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.11.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.11.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.11.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.12.input_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.12.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.12.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.12.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.12.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.12.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.12.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.12.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.12.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.13.input_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.13.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.13.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.13.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.13.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.13.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.13.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.13.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.13.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.14.input_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.14.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.14.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.14.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.14.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
"model.layers.14.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.14.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.14.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.14.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.15.input_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.15.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.15.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.15.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.15.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.15.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.15.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.15.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.15.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
"model.layers.16.input_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.16.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.16.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.16.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.16.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.16.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.16.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.16.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.16.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.17.input_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.17.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.17.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.17.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.17.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.17.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.17.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.17.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.17.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.18.input_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.18.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.18.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.18.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.18.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
"model.layers.18.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.18.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.18.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.18.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.19.input_layernorm.weight": "model-00006-of-00006.safetensors",
"model.layers.19.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
"model.layers.19.mlp.gate_proj.weight": "model-00006-of-00006.safetensors",
"model.layers.19.mlp.up_proj.weight": "model-00006-of-00006.safetensors",
"model.layers.19.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
"model.layers.19.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.19.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.19.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.19.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
"model.layers.2.input_layernorm.weight": "model-00001-of-00006.safetensors",
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.2.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.2.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
"model.layers.3.input_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.3.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.3.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.3.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.3.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.3.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.3.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.3.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.3.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.4.input_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.4.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.4.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.4.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.4.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.4.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.4.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.4.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.4.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.5.input_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.5.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.5.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.5.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.5.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.5.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.5.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.5.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.5.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.6.input_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.6.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.6.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.6.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.6.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
"model.layers.6.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.6.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.6.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.6.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.7.input_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.7.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.7.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.7.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.7.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.7.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.7.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.7.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.7.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
"model.layers.8.input_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.8.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.8.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.8.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.8.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.8.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.8.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.8.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.8.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.9.input_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.9.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.9.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.9.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.9.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
"model.layers.9.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.9.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.9.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
"model.layers.9.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
"model.norm.weight": "model-00006-of-00006.safetensors"
}
}

5
special_tokens_map.json Normal file
View File

@@ -0,0 +1,5 @@
{
"bos_token": "<s>",
"eos_token": "</s>",
"unk_token": "<unk>"
}

91122
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

BIN
tokenizer.model (Stored with Git LFS) Normal file

Binary file not shown.

42
tokenizer_config.json Normal file
View File

@@ -0,0 +1,42 @@
{
"add_bos_token": true,
"add_eos_token": false,
"added_tokens_decoder": {
"0": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"2": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"additional_special_tokens": [],
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"eos_token": "</s>",
"legacy": true,
"model_max_length": 2048,
"pad_token": null,
"sp_model_kwargs": {},
"spaces_between_special_tokens": false,
"tokenizer_class": "LlamaTokenizer",
"unk_token": "<unk>",
"use_default_system_prompt": false
}