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

Model: maple77/aixcoder-7b-base
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-26 08:24:13 +08:00
commit d5e282042c
15 changed files with 111487 additions and 0 deletions

37
.gitattributes vendored Normal file
View File

@@ -0,0 +1,37 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bin.* filter=lfs diff=lfs merge=lfs -text
*.bz2 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
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack 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
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
saved_model/**/* 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
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zstandard filter=lfs diff=lfs merge=lfs -text
*.tfevents* filter=lfs diff=lfs merge=lfs -text
*.db* filter=lfs diff=lfs merge=lfs -text
*.ark* filter=lfs diff=lfs merge=lfs -text
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.gguf* filter=lfs diff=lfs merge=lfs -text
*.ggml filter=lfs diff=lfs merge=lfs -text
*.llamafile* filter=lfs diff=lfs merge=lfs -text

33
MODEL_LICENSE Normal file
View File

@@ -0,0 +1,33 @@
The aiXcoder Model License
1. Definitions
“Licensor” means the aiXcoder Model Team that distributes its Software.
“Software” means the aiXcoder model parameters made available under this license.
2. License Grant
Subject to the terms and conditions of this License, the Licensor hereby grants to you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty-free copyright license to use the Software solely for your non-commercial research purposes.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
3. Restriction
You will not use, copy, modify, merge, publish, distribute, reproduce, or create derivative works of the Software, in whole or in part, for any commercial, military, or illegal purposes.
You will not use the Software for any act that may undermine China's national security and national unity, harm the public interest of society, or infringe upon the rights and interests of human beings.
4. Disclaimer
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5. Limitation of Liability
EXCEPT TO THE EXTENT PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER BASED IN TORT, NEGLIGENCE, CONTRACT, LIABILITY, OR OTHERWISE WILL ANY LICENSOR BE LIABLE TO YOU FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, OR ANY OTHER COMMERCIAL LOSSES, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
6. Dispute Resolution
This license shall be governed and construed in accordance with the laws of Peoples Republic of China. Any dispute arising from or in connection with this License shall be submitted to Haidian District People's Court in Beijing.
Note that the license is subject to update to a more comprehensive version. For any questions related to the license and copyright, please contact us at license@aixcoder.com.

242
README.md Normal file
View File

@@ -0,0 +1,242 @@
# aiXcoder-7B Code Large Language Model
<p align="center">
🏠 <a href="https://www.aixcoder.com/" target="_blank">Official website</a>|🛠 <a href="https://marketplace.visualstudio.com/items?itemName=aixcoder-plugin.aixcoder" target="_blank">VS Code Plugin</a>|🛠 <a href="https://plugins.jetbrains.com/plugin/13574-aixcoder-code-completer" target="_blank">Jetbrains Plugin</a><a href="https://github.com/aixcoder-plugin/aiXcoder-7B" target="_blank">Github Project</a>
</p>
Welcome to the official repository of aiXcoder-7B Code Large Language Model. This model is designed to understand and generate code across multiple programming languages, offering state-of-the-art performance in code completion, comprehension, generation, and more tasks about programming languages.
Table of Contents
1. [Model Introduction](#model-introduction)
2. [Quickstart](#quickstart)
- [Environment Requirements](#environment-requirements)
- [Model Weights](#model-weights)
- [Inference Example](#inference-example)
3. [License](#license)
4. [Acknowledgments](#acknowledgments)
## Model Introduction
As the capabilities of large code models are gradually being unearthed, aiXcoder has consistently pondered on how to make these models more beneficial in real development scenarios. To this end, we have open-sourced aiXcoder 7B Base, which has undergone extensive training on 1.2T Unique Tokens, and the model's pre-training tasks as well as the contextual information have been uniquely designed for real-world code generation contexts.
aiXcoder 7B Base stands out as the most effective model in code completion scenarios among all models of similar parameter sizes, and it also surpasses mainstream models like codellama 34B and StarCoder2 15B in the average performance on the multilingual nl2code benchmark.
In our ongoing exploration to apply large code models, the release of aiXcoder 7B Base represents a significant milestone. The current version of aiXcoder 7B Base is a foundational model that focuses on improving the efficiency and accuracy of code completion and code generation tasks, aiming to provide robust support for developers in these scenarios. It is important to note that this version has not undergone specific instruct-tuning, which means it might not yet offer optimal performance for specialized higher-level tasks such as test case generation and code debugging.
However, we have plans for further development of the aiXcoder model series already in motion. In the near future, we aim to release new versions of the model that have been meticulously instruct-tuned for a wider range of programming tasks, including but not limited to test case generation and code debugging. Through these instruct-tuned models, we anticipate offering developers more comprehensive and deeper programming support, helping them to maximize efficiency at every stage of software development.
## Quickstart
### Environment Requirements
#### Option 1: Build Env
To run the model inference code, you'll need the following environment setup:
- Python 3.8 or higher
- PyTorch 2.1.0 or higher
- sentencepiece 0.2.0 or higher
- transformers 4.34.1 or higher (if run inference by transformers library)
Please ensure all dependencies are installed using the following command:
```bash
conda create -n aixcoder-7b python=3.11
conda activate aixcoder-7b
git clone git@github.com:aixcoder-plugin/aiXcoder-7b.git
cd aiXcoder-7b
pip install -r requirements.txt
```
`requirements.txt` listed all necessary libraries and their versions.
To achieve faster inference speeds, especially for large models, we recommend installing `flash attention`. `Flash attention` is an optimized attention mechanism that significantly reduces computation time for transformer-based models without sacrificing accuracy.
Before proceeding, ensure your environment meets the CUDA requirements as `flash attention` leverages GPU acceleration. Follow these steps to install `flash attention`:
```bash
git clone git@github.com:Dao-AILab/flash-attention.git
cd flash-attention
MAX_JOBS=8 python setup.py install
```
#### Option 2: Docker
For a consistent and isolated environment, we recommend running the model inference code using Docker. Here's how to set up and use Docker for our model:
1. Install Docker: If you haven't already, install Docker on your machine.
2. Pull the Docker Image: Pull the Docker image from Docker Hub.
```bash
docker pull pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel
```
3. Run the Container: Once the image is pulled, you can run the model inside a Docker container.
```bash
docker run --gpus all -it -v /dev/shm:/dev/shm --name aix_instance pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel /bin/bash
pip install sentencepiece
git clone git@github.com:aixcoder-plugin/aiXcoder-7b.git
cd aiXcoder-7b
```
This command starts a container named aix_instance from the pytorch image. You can interact with the model inside this container.
To achieve faster inference speeds, especially for large models, we recommend installing `flash attention`.
```bash
git clone git@github.com:Dao-AILab/flash-attention.git
cd flash-attention
MAX_JOBS=8 python setup.py install
```
4. Model Inference: Within the Docker container, you can run the model inference code as described in the Inference Example section.
Using Docker provides a clean, controlled environment that minimizes issues related to software versions and dependencies.
### Model Weights
You can download the model weights from the following link:
- [aiXcoder Base Download](https://huggingface.co/aiXcoder/aixcoder-7b-base)
- aiXcoder Instruct Download (Comming soon...)
### Inference Example
#### Command Line Execution
For a quick start, you can run the model inference directly from the command line:
```bash
torchrun --nproc_per_node 1 sess_megatron.py --model_dir "path/to/model_weights_dir"
```
Replace "path/to/model_weights_dir" with the actual path to your downloaded model weights.
or run inference with huggingface's transformers
```bash
python sess_huggingface.py
```
#### Python Script Execution
Alternatively, you can invoke the model programmatically within your Python scripts. This method provides more flexibility for integrating the model into your applications or workflows. Here's a simple example on how to do it:
```python
from sess_megatron import TestInference
infer = TestInference()
res = infer.run_infer(
# for FIM style input, code_string stands for prefix context
code_string="""# 快速排序算法""",
# for FIM style input, later_code stands for suffix context
later_code="\n",
# file_path should be a path from project to file
file_path="test.py",
# max num for generated tokens
max_new_tokens=256,
)
print(res)
"""output:
def quick_sort(arr):
if len(arr) <= 1:
return arr
pivot = arr[0]
less = [i for i in arr[1:] if i <= pivot]
greater = [i for i in arr[1:] if i > pivot]
return quick_sort(less) + [pivot] + quick_sort(greater)
# 测试
arr = [3, 2, 1, 4, 5]
print(quick_sort(arr)) # [1, 2, 3, 4, 5]
"""
```
```python
import torch
import sys
from hf_mini.utils import input_wrapper
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # the device to load the model onto
tokenizer = AutoTokenizer.from_pretrained("aiXcoder/aixcoder-7b-base")
model = AutoModelForCausalLM.from_pretrained("aiXcoder/aixcoder-7b-base", torch_dtype=torch.bfloat16)
text = input_wrapper(
# for FIM style input, code_string stands for prefix context
code_string="# 快速排序算法",
# for FIM style input, later_code stands for suffix context
later_code="\n# 测试\narr = [3, 2, 1, 4, 5]\nprint(quick_sort(arr)) # [1, 2, 3, 4, 5]",
# file_path should be a path from project to file
path="test.py"
)
if len(text) == 0:
sys.exit()
inputs = tokenizer(text, return_tensors="pt", return_token_type_ids=False)
inputs = inputs.to(device)
model.to(device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=False))
"""output:
def quick_sort(arr):
# 如果数组长度小于等于1直接返回
if len(arr) <= 1:
return arr
# 选择数组的第一个元素作为基准
pivot = arr[0]
# 初始化左右指针
left, right = 1, len(arr) - 1
# 循环直到左指针小于右指针
while left < right:
# 从右到左找到第一个小于基准的元素,与左指针元素交换
if arr[right] < pivot:
arr[left], arr[right] = arr[right], arr[left]
left += 1
# 从左到右找到第一个大于等于基准的元素,与右指针元素交换
if arr[left] >= pivot:
right -= 1
# 将基准元素与左指针元素交换
arr[left], arr[0] = arr[0], arr[left]
# 对左半部分进行递归排序
quick_sort(arr[:left])
# 对右半部分进行递归排序
quick_sort(arr[left + 1:])
return arr</s>
"""
```
## License
The model weights are licensed under the [Model License](./MODEL_LICENSE) for academic research use; for commercial use, please apply by sending an email to support@aiXcoder.com.
## Acknowledgments
We would like to thank all contributors to the open-source projects and datasets that made this work possible.
Thank you for your interest in our Code Large Language Model. We look forward to your contributions and feedback!

3
aix3-7b-base.pt Normal file
View File

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

25
config.json Normal file
View File

@@ -0,0 +1,25 @@
{
"architectures": [
"LlamaForCausalLM"
],
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 4096,
"initializer_range": 0.02,
"intermediate_size": 14464,
"max_position_embeddings": 32768,
"model_type": "llama",
"num_attention_heads": 32,
"num_hidden_layers": 32,
"num_key_value_heads": 8,
"pretraining_tp": 1,
"rms_norm_eps": 1e-06,
"rope_theta": 256000.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.34.1",
"use_cache": true,
"vocab_size": 49152
}

1
configuration.json Normal file
View File

@@ -0,0 +1 @@
{"framework":"Pytorch","task":"text-generation"}

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.1"
}

View File

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

View File

@@ -0,0 +1,298 @@
{
"metadata": {
"total_size": 7432572928
},
"weight_map": {
"lm_head.weight": "model-00001-of-00001.safetensors",
"model.embed_tokens.weight": "model-00001-of-00001.safetensors",
"model.layers.0.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.1.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.1.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.1.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.10.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.10.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.10.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.10.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.10.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.10.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.10.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.10.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.10.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.11.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.11.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.11.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.11.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.11.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.11.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.11.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.11.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.11.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.12.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.12.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.12.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.12.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.12.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.12.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.12.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.12.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.12.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.13.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.13.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.13.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.13.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.13.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.13.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.13.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.13.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.13.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.14.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.14.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.14.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.14.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.14.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.14.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.14.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.14.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.14.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.15.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.15.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.15.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.15.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.15.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.15.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.15.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.15.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.15.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.16.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.16.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.16.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.16.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.16.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.16.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.16.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.16.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.16.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.17.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.17.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.17.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.17.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.17.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.17.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.17.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.17.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.17.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.18.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.18.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.18.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.18.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.18.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.18.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.18.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.18.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.18.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.19.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.19.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.19.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.19.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.19.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.19.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.19.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.19.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.19.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.2.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.2.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.2.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.20.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.20.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.20.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.20.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.20.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.20.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.20.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.20.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.20.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.21.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.21.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.21.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.21.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.21.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.21.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.21.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.21.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.21.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.22.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.22.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.22.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.22.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.22.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.22.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.22.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.22.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.22.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.23.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.23.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.23.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.23.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.23.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.23.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.23.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.23.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.23.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.24.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.24.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.24.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.24.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.24.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.24.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.24.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.24.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.24.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.25.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.25.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.25.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.25.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.25.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.25.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.25.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.25.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.25.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.26.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.26.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.26.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.26.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.26.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.26.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.26.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.26.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.26.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.27.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.27.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.27.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.27.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.27.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.27.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.27.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.27.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.27.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.28.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.28.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.28.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.28.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.28.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.28.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.28.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.28.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.28.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.29.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.29.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.29.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.29.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.29.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.29.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.29.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.29.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.29.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.3.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.3.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.3.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.3.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.30.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.30.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.30.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.30.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.30.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.30.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.30.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.30.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.30.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.31.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.31.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.31.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.31.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.31.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.31.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.31.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.31.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.31.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.4.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.4.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.4.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.4.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.4.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.4.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.5.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.5.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.5.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.5.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.5.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.5.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.6.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.6.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.6.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.6.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.6.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.6.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.6.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.7.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.7.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.7.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.7.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.7.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.7.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.7.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.7.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.8.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.8.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.8.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.8.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.8.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.8.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.8.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.8.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.8.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.9.input_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.9.mlp.down_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.9.mlp.gate_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.9.mlp.up_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.9.post_attention_layernorm.weight": "model-00001-of-00001.safetensors",
"model.layers.9.self_attn.k_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.9.self_attn.o_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.9.self_attn.q_proj.weight": "model-00001-of-00001.safetensors",
"model.layers.9.self_attn.v_proj.weight": "model-00001-of-00001.safetensors",
"model.norm.weight": "model-00001-of-00001.safetensors"
}
}

View File

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

View File

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

1
special_tokens_map.json Normal file
View File

@@ -0,0 +1 @@
{}

110789
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

3
tokenizer.model Normal file
View File

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

40
tokenizer_config.json Normal file
View File

@@ -0,0 +1,40 @@
{
"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": 1000000000000000019884624838656,
"pad_token": null,
"sp_model_kwargs": {},
"spaces_between_special_tokens": false,
"tokenizer_class": "PreTrainedTokenizerFast",
"unk_token": "<unk>",
"use_default_system_prompt": false
}