mioqwq commited on
Commit
8d01582
·
verified ·
1 Parent(s): 36c3f1a

Add Clover-125M v0.1.0 SFTv3 final and FP32 GGUF

Browse files

私有验收版本:保留原始 SFTv3 final FP32 权重和原分词器,提供 FP32 GGUF、中英双语模型卡、训练过程与 2 核 / 1 GB CPU 部署说明。模型仍为纯英文。代码和模型许可证待定,不包含原始/处理后数据、旧权重或数据清洗与准备源码。

.gitattributes CHANGED
@@ -1,35 +1,2 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
  *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ *.gguf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
.gitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv*/
4
+ .env
5
+ .env.*
LICENSE_STATUS.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # License status: pending
2
+
3
+ The project owner has not selected a license for the project code or the model
4
+ weights. This review bundle deliberately contains no MIT, Apache or other grant
5
+ for either. Confirm the two decisions separately before public distribution and
6
+ then update the repository license files and model-card metadata accordingly.
7
+
8
+ Upstream dependency and dataset licenses remain attached to their respective
9
+ works; they are recorded in THIRD_PARTY_NOTICES.md and provenance/sources.json.
10
+ They do not by themselves assign a license to this project's code or weights.
11
+ This notice is a preparation status, not a replacement license.
README.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ pipeline_tag: text-generation
5
+ library_name: transformers
6
+ tags:
7
+ - llama
8
+ - from-scratch
9
+ - gguf
10
+ - english
11
+ ---
12
+
13
+ # Clover-125M v0.1.0
14
+
15
+ 由 **mio 从零预训练、经过三轮 Full SFT** 的 1.25 亿参数纯英文语言模型。
16
+ 提供 **SFTv3 final FP32 safetensors + FP32 GGUF**,适合体验短英文对话、简单指令和阅读理解。
17
+
18
+ **当前为私有验收版本,代码与模型许可证均待定,尚未正式公开发布。**
19
+ 中文是说明文档语言,模型仍是英文模型;`language: en` 保持不变。
20
+
21
+ - [完整中文说明:训练过程、评估、运行与 2 核 / 1 GB 部署](README.zh-CN.md)
22
+ - [English model card](#english-model-card)
23
+ - [GitHub:训练、推理与 Web 部署源码](https://github.com/mio-qwq/Clover-125m-demo)
24
+
25
+ 模型共有 124,720,896 个参数、14 层、1,024 token 上下文。Base 预训练约 2.636B
26
+ 目标 token,之后完成三轮全参数 SFT。原始数据和历史权重不随本仓库分发。
27
+ FP32 GGUF 没有量化或裁剪;2 核 / 1 GB 的部署依赖原生运行时、mmap、单任务和 swap,
28
+ 详见中文说明。采样参数不会提升模型本身能力,仍可能出现重复和事实错误。
29
+
30
+ ## English model card
31
+
32
+ Private review preview. Model version is **0.1.0**; **SFTv3** identifies
33
+ the internal training stage, not a separate product version. Future runtime/UI
34
+ patches increment the patch number; materially changed weights or capabilities
35
+ increment the minor number while below 1.0. A 1.0 release is not implied by the
36
+ number of training rounds.
37
+
38
+ English research/demo language model, trained from scratch and then full fine-tuned
39
+ locally by the project owner. Candidate fixed to the **final export**, not the best
40
+ validation checkpoint, of `sft_125m_round3/20261016_022934_UTC`.
41
+
42
+ ## Architecture and lineage
43
+
44
+ 124,720,896 parameters; decoder-only Llama architecture; 14 layers, hidden size
45
+ 768, intermediate size 2080, 12 attention/KV heads, head dimension 64. Tied input
46
+ embedding/output matrix, SiLU, RMSNorm epsilon 1e-5, RoPE theta 10000. Vocabulary
47
+ 32000; context 1024 tokens. English ByteLevel BPE tokenizer trained only on the
48
+ pretraining train split. Plain role serialization `english_plain_roles_v1`; use
49
+ the included `sft_format.py` (code repo: `scripts/sft_format.py`), not a generic chat template.
50
+
51
+ Base pretraining: approximately 2.636B target tokens. Base -> Full SFT round one
52
+ (584 updates, 2,334,382 assistant targets) -> round two (1506 updates,
53
+ 11,973,174 targets) -> round three (574 updates, 447,475 targets, one epoch).
54
+ Round-three training was completed by the owner on 2026-10-16. Release preparation
55
+ performs **zero optimizer updates**.
56
+
57
+ Round-three train: 18,343 conversations: 11,000 SQuAD answer examples, 1,999
58
+ missing-answer examples, 1,374 explicitly authored template exercises, and 3,970
59
+ prior-train replay examples. Validation/Test: 650 each. Replay and templates are
60
+ not counted as newly collected human conversations.
61
+
62
+ Original final export SHA-256:
63
+ `3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c`.
64
+ Tokenizer SHA-256:
65
+ `43fb4fb8c8eedfef2bc57675c3dd980d505c3cd25126474a2f3269192baa2668`.
66
+
67
+ ## Evaluation
68
+
69
+ The already chosen final candidate was assessed once; no Test-based model
70
+ selection or generation-parameter tuning was performed for this release.
71
+
72
+ | Split | Conversations | Assistant targets | Loss | PPL |
73
+ | --- | ---: | ---: | ---: | ---: |
74
+ | Round-three reading Test | 650 | 8,386 | 0.439808 | 1.552409 |
75
+ | Prior round-two dialogue Test | 388 | 90,855 | 2.152472 | 8.606110 |
76
+ | Round-three validation (training receipt) | 650 | 8,055 | 0.443229 | 1.557729 |
77
+ | Original pretraining validation retention | — | 1,048,576 | 3.282923 | 26.653567 |
78
+
79
+ These are assistant-masked, teacher-forced token losses (retention uses original
80
+ pretraining targets). Scores across different tasks are not directly comparable.
81
+ Low reading PPL is not an accuracy/EM/F1 score, a chat benchmark, or evidence of
82
+ parity with GPT-1 or any other model. Development examples are not held-out
83
+ capability measurements. There is no independent broad safety or reasoning
84
+ benchmark in this release.
85
+
86
+ ## FP32 deployment
87
+
88
+ The GGUF payload is unchanged from the retained v0.1 RC1 candidate (its internal
89
+ conversion name remains recorded for provenance). This public runtime/UI release
90
+ uses `release.json` as its version authority. The included GGUF stores **all 128 tensors in FP32**, without quantization. Q/K
91
+ tensor layout is permuted for llama.cpp and every tensor is inverse-verified
92
+ bitwise against the original safetensors. The tied output matrix is retained by
93
+ the native runtime. The CPU service uses FP32 KV cache and the original
94
+ tokenizer.json plus exact role encoder; it bypasses native tokenization/templates.
95
+ Three reference prompts have identical highest-logit tokens and maximum absolute
96
+ FP32 logit error <= 0.000022 on the preparation machine. Floating-point kernels
97
+ can differ slightly; NumPy sampling uses a different RNG from PyTorch, so equal
98
+ seeds across these runtimes do not promise identical sampled text.
99
+
100
+ Public defaults: sample, temperature 0.35, top-p 0.85, top-k 30, repetition penalty
101
+ 1.1, no-repeat 4-gram, max new tokens 128, seed 42. Service cap: 256 output tokens,
102
+ 1024 total context, 90-second generation deadline, one active generation. Older
103
+ complete turns are removed when context fills. Generation controls affect output;
104
+ they do not improve the weights.
105
+
106
+ ## Intended use and limits
107
+
108
+ Short English conversation, simple instructions, and reading supplied short text.
109
+ The model may repeat, invent facts, answer inaccurately, mishandle instructions,
110
+ or forget earlier turns. It has no search, real-time knowledge, tool use or human
111
+ employment/experience. It is not a general coding model, Chinese model, or source
112
+ of reliable medical/legal/financial decisions. The public demo is a small
113
+ single-user-at-a-time CPU service, with no availability or concurrency guarantee.
114
+
115
+ ## Data attribution and redistribution status
116
+
117
+ Pretraining combined accepted English Wikipedia, Gutenberg, web/C4 material and
118
+ arXiv text. Underlying works have heterogeneous rights; a dataset wrapper license
119
+ does not establish a uniform license for all underlying works. Gutenberg public
120
+ domain status can vary by territory. Original provenance/filter receipts remain
121
+ in the project; raw corpora are **not distributed** in this release.
122
+
123
+ Pinned SFT source references are recorded in `provenance/sources.json`:
124
+
125
+ | Source | Revision | Upstream card license |
126
+ | --- | --- | --- |
127
+ | [Smol Smoltalk](https://huggingface.co/datasets/HuggingFaceTB/smol-smoltalk) | f73fe857d519ff6ac5af2ea67c4d3834da7b8bcc | Apache-2.0 |
128
+ | [Everyday Conversations](https://huggingface.co/datasets/HuggingFaceTB/everyday-conversations-llama3.1-2k) | 14f543216b9ba42b6b951dc5bd199460d193b162 | Apache-2.0 |
129
+ | [OpenAssistant 2](https://huggingface.co/datasets/OpenAssistant/oasst2) | 179dd21fc55192153d94adb0e0ce8f69e222bf75 | Apache-2.0 |
130
+ | [UltraChat 200k](https://huggingface.co/datasets/HuggingFaceH4/ultrachat_200k) | 8049631c405ae6576f93f445c6b8166f76f5505a | MIT |
131
+ | [SQuAD 2.0, Rajpurkar et al.](https://huggingface.co/datasets/rajpurkar/squad_v2) | 3ffb306f725f7d2ce8394bc1873b24868140c412 | CC-BY-SA-4.0 |
132
+
133
+ SQuAD examples were reformatted to role messages and selected by article and
134
+ answer availability; exact answers/supporting spans were retained. Attribution
135
+ and ShareAlike notices from that source remain applicable to adapted data as
136
+ specified by its license. No single permissive license is asserted over the mixed
137
+ dataset or trained weights. **Code and model licenses are both pending.** This repository is a private review preview;
138
+ public redistribution is not licensed by this upload. See `LICENSE_STATUS.md`.
139
+
140
+ Runtime: [llama.cpp](https://github.com/ggml-org/llama.cpp) and
141
+ [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) (MIT),
142
+ [Hugging Face Tokenizers](https://github.com/huggingface/tokenizers) (Apache-2.0),
143
+ NumPy (BSD). Runtime dependencies are installed from PyPI and the binding
144
+ maintainer's official CPU wheel index; source conversion uses the official GGUF
145
+ package. Original dependency licenses are retained in installed distributions.
146
+
147
+ ## Files and local inference
148
+
149
+ The model repo contains only two weight files: `model.safetensors` (SFTv3 final,
150
+ FP32, 498,897,824 bytes) and `gguf/Clover-125M-v0.1.0-F32.gguf` (500,008,288 bytes).
151
+ Both are copied byte-for-byte from the retained artifacts. GGUF SHA-256:
152
+ `c8649696f1a89d73d59ae0ed7b9635ec7ce1b61db86ed5ddc9d3b64eb296da00`.
153
+ Base, earlier SFT weights, optimizer checkpoints and corpora are not included.
154
+
155
+ Using Python 3.12 in a new activated environment, from the downloaded model repo:
156
+
157
+ ```text
158
+ python -m pip install torch==2.14.1 --index-url https://download.pytorch.org/whl/cpu
159
+ python -m pip install -r requirements-inference.txt
160
+ python -B generate.py --prompt "Hello! Who are you?" --device cpu
161
+ ```
162
+
163
+ The supplied `generate.py` streams text, loads local safetensors only and uses
164
+ the exact role formatter. Sampling defaults are given above; `--greedy` disables
165
+ sampling. For CUDA, install the tested Torch wheel from the official `cu130`
166
+ index instead and pass `--device cuda`. CPU portable loading is checked during
167
+ publication preparation; this is not a new GPU performance benchmark.
168
+
169
+ `AutoModelForCausalLM` can read the architecture/weights without remote code.
170
+ Generic `pipeline` chat or `apply_chat_template` use is not an accepted entry:
171
+ the unchanged tokenizer configuration has no generic chat template. Use the
172
+ provided `tokenizers.Tokenizer` formatter, including its segment boundaries.
173
+ The source `sft_template.json` retains its historical inference entrypoint for
174
+ provenance; `generate.py` is the standalone entry in this model repository.
175
+
176
+ The code repo contains the smaller native CPU streaming client and web runtime.
177
+ See `docs/INFERENCE.md` and `docs/CPU_2C1G.md` in the code repository.
178
+ Both repositories are private owner review previews.
179
+
180
+ ## Code and deployment
181
+
182
+ [GitHub source](https://github.com/mio-qwq/Clover-125m-demo) (private review repository).
183
+ The code repository contains only training implementation, inference and web deployment,
184
+ with a detailed training history and 2 vCPU / 1 GB FP32 deployment record.
185
+ Raw/processed datasets and collection/cleaning/preparation source are not released.
README.zh-CN.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Clover-125M v0.1.0
2
+
3
+ 由 mio 从零预训练、经过三轮全参数监督微调的 **1.25 亿参数纯英文语言模型**。
4
+ 本仓库提供 **SFTv3 final 的 FP32 safetensors 与 FP32 GGUF**,供本地推理和研究体验。
5
+ 这是私有验收版本,代码和模型许可证仍待定,尚未正式公开发布。
6
+
7
+ [模型仓库](https://huggingface.co/mioqwq/Clover-125M) ·
8
+ [代码、训练过程与 Web 部署](https://github.com/mio-qwq/Clover-125m-demo) ·
9
+ [English model card](README.md#english-model-card)
10
+
11
+ **中文只是文档语言。模型训练目标是英文,不因加入中文 README 而获得中文对话能力。**
12
+
13
+ ## 这是什么模型
14
+
15
+ Clover 使用 decoder-only Llama 架构,共 **124,720,896 个参数**:14 层,隐藏维度
16
+ 768,FFN 维度 2080,12 个 attention heads / KV heads,词表 32,000,上下文长度
17
+ 1,024 tokens,输入 embedding 与输出权重共享。使用 SiLU、RMSNorm 和 RoPE。
18
+ 分词器为仅在预训练训练集上拟合的英文 ByteLevel BPE。
19
+
20
+ 对话格式是 `english_plain_roles_v1`,必须使用随仓库提供的 `sft_format.py`。
21
+ 不要直接套用其他模型的聊天模板。模型目录中的 `generate.py` 已处理格式并支持流式输出。
22
+
23
+ `v0.1.0` 是模型发布版本,`SFTv3` 表示内部第三轮微调。本次固定选择第三轮的
24
+ **final** 导出,不是按 Test 分数重新挑选 checkpoint。打包和上传不训练、不修改权重。
25
+
26
+ ## 训练过程
27
+
28
+ 全部训练在作者本地完成。纯英文预训练后进行了三轮 Full SFT;Full SFT 更新全部
29
+ 模型参数,并非 LoRA。原始数据、Base 和各轮历史权重继续保存在本地,不随本仓库分发。
30
+
31
+ | 阶段 | 样本/轮次说明 | 更新步数 | 训练目标 token |
32
+ | --- | --- | ---: | ---: |
33
+ | Base 预训练 | 英文语料,1 epoch | 80,465 | 2,636,654,462 |
34
+ | Full SFT 第一轮 | 18,660 条,1 epoch | 584 | 2,334,382 |
35
+ | Full SFT 第二轮 | 24,066 条独立样本,2 epochs | 1,506 | 11,973,174 |
36
+ | Full SFT 第三轮 | 18,343 条,1 epoch | 574 | 447,475 |
37
+
38
+ 预训练包括已验收的英文 Wikipedia、Gutenberg、网页/C4 与 arXiv 文本。
39
+ SFT 来源包括 Smol Smoltalk、Everyday Conversations、OpenAssistant 2、UltraChat
40
+ 和 SQuAD 2.0,另含明确编写的模板练习及此前训练集回放。第三轮包含 11,000 条
41
+ 阅读回答、1,999 条缺失答案练习、1,374 条模板练习、3,970 条此前训练集回放。
42
+ 模板与回放不冒充新增的人类对话。上游版本与许可记录见
43
+ [provenance/sources.json](provenance/sources.json) 和
44
+ [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
45
+
46
+ ## 已记录的评估
47
+
48
+ 候选 final 确定后进行一次 Test 评估,没有根据 Test 选择权重或调生成参数。
49
+
50
+ | 评估集 | 会话数 | Assistant 目标 token | Loss | PPL |
51
+ | --- | ---: | ---: | ---: | ---: |
52
+ | 第三轮阅读 Test | 650 | 8,386 | 0.439808 | 1.552409 |
53
+ | 第二轮对话 Test | 388 | 90,855 | 2.152472 | 8.606110 |
54
+
55
+ 这里是只对 assistant 目标计算的 teacher-forced token loss。阅读 PPL 不是回答准确率、
56
+ EM/F1 或综合聊天能力分数,不应跨任务直接比较,也不能据此宣称达到 GPT-1 或其他
57
+ 模型水平。本版本没有独立的广泛推理/安全评测。原始评估摘要见
58
+ [provenance/evaluation.json](provenance/evaluation.json)。
59
+
60
+ ## 下载与运行
61
+
62
+ 仓库仍为私有,下载需要有权限的 HF 账号。使用已登录的 HF CLI:
63
+
64
+ ```powershell
65
+ hf download mioqwq/Clover-125M --local-dir .\Clover-125M
66
+ Set-Location .\Clover-125M
67
+ ```
68
+
69
+ 在新建并激活的 Python 3.12 环境中安装 CPU 依赖,然后运行:
70
+
71
+ ```powershell
72
+ python -m pip install torch==2.14.1 --index-url https://download.pytorch.org/whl/cpu
73
+ python -m pip install -r requirements-inference.txt
74
+ python -B generate.py --prompt "Hello! Who are you?" --device cpu
75
+ ```
76
+
77
+ GPU 推理需先从 PyTorch 官方 `cu130` 索引安装训练项目已验证的对应 Torch wheel,
78
+ 再将设备改成 `--device cuda`。这里的发布验收是 CPU 可移植性检查,不是新增 GPU 跑分。
79
+ 采样默认值为 temperature 0.35、top-p 0.85、top-k 30、repetition penalty 1.1、
80
+ no-repeat 4-gram、max new tokens 128、seed 42;可以通过脚本参数调整,`--greedy`
81
+ 关闭采样。生成参数只能影响解码行为,不能修复权重能力。
82
+
83
+ `AutoModelForCausalLM` 可以无需 remote code 读取架构和权重;通用 `pipeline` 聊天或
84
+ `apply_chat_template` 不是本项目验收过的对话入口。请使用上述脚本和原角色格式。
85
+ 原生 GGUF 流式推理与 Web 源码、配置和部署说明放在
86
+ [代码仓库](https://github.com/mio-qwq/Clover-125m-demo)。
87
+
88
+ ## 为什么能在 2 核 / 1 GB 的服务器上运行
89
+
90
+ 现有 CPU 服务运行在 **2 vCPU、887 MiB 可见物理内存、1,023 MiB swap** 的 Ubuntu
91
+ 24.04 x86-64 主机上,没有 GPU。依赖 swap;这里没有宣称不需要 swap 的 1 GB 部署。
92
+
93
+ 部署使用 llama.cpp 原生运行时和 mmap,加载本仓库的 **FP32 GGUF**,没有量化、裁剪
94
+ 或蒸馏。仅保留一个模型实例和一个生成任务,CPU threads 为 2、batch 为 32。
95
+ 使用原 tokenizer.json 和精确角色编码,KV cache 为 FP32。KV 主数组在上下文
96
+ 256 / 512 / 1,024 tokens 时分别约为 21 / 42 / 84 MiB;代码包支持启动时选择长度。
97
+ 该启动选项的验收不表示已经替换线上服务配置。
98
+
99
+ 此前记录的进程 RSS 约 508.40 MiB,RSS 高水位 584.59 MiB,进程 swap 约
100
+ 117.59 MiB,cgroup 内存峰值约 591.62 MiB。这些是特定工作负载的历史观测,
101
+ 不是任意上下文、并发或系统下的上限保证;本次上传未探测或重启线上服务。
102
+ 详细记录见 [CPU 部署文档](https://github.com/mio-qwq/Clover-125m-demo/blob/main/docs/CPU_2C1G.md)
103
+ 与 [provenance/cpu_2c1g.json](provenance/cpu_2c1g.json)。
104
+
105
+ GGUF 中 128 个张量全部为 FP32。Q/K 布局为适配 llama.cpp 进行了必要的可逆变换,
106
+ 还原后的张量已逐一与原 safetensors 做字节级核对。三个参考提示的最高 logit token
107
+ 一致,CPU FP32 最大绝对 logit 差不超过 0.000022。不同运行时的随机数生成器不同,
108
+ 相同 seed 不保证采样文本逐字相同。
109
+
110
+ ## 文件与完整性
111
+
112
+ | 权重文件 | 大小 | SHA-256 |
113
+ | --- | ---: | --- |
114
+ | `model.safetensors` | 498,897,824 bytes | `3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c` |
115
+ | `gguf/Clover-125M-v0.1.0-F32.gguf` | 500,008,288 bytes | `c8649696f1a89d73d59ae0ed7b9635ec7ce1b61db86ed5ddc9d3b64eb296da00` |
116
+
117
+ 其余是原分词器、配置、角色格式、独立推理入口、来源/验收记录与文档。
118
+ 完整文件清单见 `SHA256SUMS`。只分发这两个权重文件,不包含 Base、旧 SFT、优化器
119
+ checkpoint、原始/处理后语料或数据清洗/准备程序。
120
+
121
+ ## 能力边界与许可
122
+
123
+ 适合体验短英文对话、简单指令和阅读给定短文本。它仍可能重复、编造事实、答错、
124
+ 误解指令或遗忘上文,没有搜索、实时知识或工具调用能力。不能保证可靠的中文、
125
+ 代码生成、复杂推理或专业建议。小型 CPU 网页服务每次只处理一个生成任务,
126
+ 没有高并发或可用性保证。
127
+
128
+ **代码与模型许可证均待定。** 没有给项目代码或权重套用上游数据/依赖的许可证,
129
+ 私有上传也不代表已授予公开再分发许可。SQuAD 等来源的署名、ShareAlike 与其他
130
+ 上游声明保留,原语料本身不在这里分发。发布前请查看
131
+ [LICENSE_STATUS.md](LICENSE_STATUS.md) 和 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
SHA256SUMS ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ e656e13897e3ef9c16a5bd506b16cc1cd557212bd0c55e10994be2e70e01bf47 .gitattributes
2
+ eb783715c1e61fdbe340466f8c1232e2d6d7899e67d8d4659c872a304640a31d .gitignore
3
+ ce04b3d0256c9d9a01d4676d080473942f12f7a7985cc947e65e72782238b3e6 LICENSE_STATUS.md
4
+ bdffa7570058cbb5fece75e3f857b94a5e18897bb310cd4c8143e74d121d60d8 README.md
5
+ ef594544b931bc7b994d32f992001db5dfd3227c6551cd45716f1f33711bebe3 README.zh-CN.md
6
+ 6ba81d16cbba60d2161e64c233cb50bd52f357d3fec8728a93854c0d8578a3c0 THIRD_PARTY_NOTICES.md
7
+ ec88ea160a3d65584ef6abe2abfa268e40f0fe82adbb4f5a67ab6eb9d90014ab assistant_profile.json
8
+ d3bcbf97d0d68ab747b92145146b4517974e00ec593312b9d797d31cefa44f2a config.json
9
+ 5924c4dbd0e1336da4df956b8483449253ae3019760147e8b42a8e05a7a6cd78 generate.py
10
+ c59e168d9401bd172285d67a5d35ba473f137667789842496f2059006bbfdd77 generation_config.json
11
+ c8649696f1a89d73d59ae0ed7b9635ec7ce1b61db86ed5ddc9d3b64eb296da00 gguf/Clover-125M-v0.1.0-F32.gguf
12
+ 3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c model.safetensors
13
+ 9f3ab9bb8ccf488c61b41805526400bb76a9f7c09bafa260fa99149501a726bb provenance/conversion.json
14
+ 842c6e887ee882acdd42527204c558fb5881fd39d092754f7a74954b307436e8 provenance/cpu_2c1g.json
15
+ 4489e42ea48c0e7f3acb73b4e176d1cd371172c1226297742f3ffa91d706c6f4 provenance/evaluation.json
16
+ 3870b631360313a3d387ee93e1534337798555f8f8a4f909bfbdca1b1d980187 provenance/native_parity.json
17
+ 8bf49d23a1fa7bb6cae86bb974a85ae5cb74fecfb36d035ef99c4171b0ec8022 provenance/publication_checks.json
18
+ 466cb051c263809624e3b193951ab17fd4d2bd2e7e3174c966c1273910e6048f provenance/sources.json
19
+ 5302610b36bd994eb5b1c1b901ec1ee900520ce591d8308ea5239781805c3d9f release.json
20
+ e91d2600c777459b2d9c5b1ca8d928283d7608e264f8bb24cb13738cac156697 requirements-inference.txt
21
+ 74094a77a5da6a99c43561f73625b17fefdf8d2e63cbe38ae8253ab2b791d834 sft_format.py
22
+ efb989b9868aa0a6af6a8dc1e34b0b0880257793260c397e7b6d997d410b66b7 sft_template.json
23
+ ef78c7e6659e34c798194f0d344e807c722de70cbca1359ef54772661e11ca38 third_party/GGUF.LICENSE
24
+ 6bb528f36ee0a3d29e360b06293eb6cad2a65039ebfd53dfcc7c67e3616fcbd7 third_party/llama-cpp-python.LICENSE.md
25
+ 43fb4fb8c8eedfef2bc57675c3dd980d505c3cd25126474a2f3269192baa2668 tokenizer.json
26
+ 64f8d9ae65aa4ffd518a4730ffcdf6289742f1d5111530a21486f1cc4ec4a1be tokenizer_config.json
THIRD_PARTY_NOTICES.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Third-party notices
2
+
3
+ Project code and model licenses are pending; this document does not assign them.
4
+ Upstream source-card terms remain recorded in `provenance/sources.json` and the
5
+ model card, including attribution for SQuAD 2.0 (Rajpurkar et al., CC-BY-SA-4.0).
6
+ Adapted data is not distributed. A dataset wrapper license does not establish
7
+ uniform rights in the underlying Wikipedia/web/books/papers or model weights.
8
+
9
+ Dependencies and conversion references:
10
+
11
+ | Project | Use / upstream license |
12
+ | --- | --- |
13
+ | [PyTorch](https://github.com/pytorch/pytorch) | FP32/BF16 inference and training; BSD-style |
14
+ | [Transformers](https://github.com/huggingface/transformers) | Llama implementation; Apache-2.0 |
15
+ | [Tokenizers](https://github.com/huggingface/tokenizers) | Original BPE encoding/decoding; Apache-2.0 |
16
+ | [Safetensors](https://github.com/huggingface/safetensors) | Weight serialization; Apache-2.0 |
17
+ | [NumPy](https://github.com/numpy/numpy) | Numeric operations/native sampling; BSD-3-Clause |
18
+ | [llama.cpp](https://github.com/ggml-org/llama.cpp) | Native kernels and Q/K layout reference; MIT |
19
+ | [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) | Native Python binding; MIT |
20
+ | [GGUF](https://github.com/ggml-org/llama.cpp/tree/master/gguf-py) | Conversion/file IO; MIT |
21
+
22
+ The converter's Q/K layout follows llama.cpp `conversion/llama.py`; the reference
23
+ is retained in its source and conversion proof. Copies of the installed upstream
24
+ GGUF and llama-cpp-python license notices are under `third_party/`. Other runtime
25
+ dependencies are installed separately and retain licenses in their distributions.
26
+ These upstream notices apply to their works, not as a project/model license grant.
assistant_profile.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "name": "Clover",
4
+ "kind": "small English language model",
5
+ "facts": [
6
+ "My name is Clover.",
7
+ "I am an AI language model.",
8
+ "I generate English text and can make mistakes.",
9
+ "I am not a human and do not have a human job or personal life."
10
+ ],
11
+ "name_choice": "User requested an ordinary English word and delegated the choice; Clover was selected.",
12
+ "scope": "Declared project identity; not a claim of employment, credentials or ownership by another AI provider."
13
+ }
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 3,
8
+ "dtype": "float32",
9
+ "eos_token_id": 1,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 2080,
15
+ "max_position_embeddings": 1024,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 14,
20
+ "num_key_value_heads": 12,
21
+ "pad_token_id": 0,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": true,
29
+ "transformers_version": "5.19.0",
30
+ "use_cache": false,
31
+ "vocab_size": 32000
32
+ }
generate.py ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Offline, streaming Clover-125M inference from a standalone HF export."""
2
+ import argparse
3
+ from contextlib import nullcontext
4
+ import hashlib
5
+ import json
6
+ import math
7
+ import os
8
+ from pathlib import Path
9
+ import sys
10
+
11
+ os.environ.setdefault('HF_HUB_OFFLINE', '1')
12
+ os.environ.setdefault('TRANSFORMERS_OFFLINE', '1')
13
+ os.environ.setdefault('TOKENIZERS_PARALLELISM', 'false')
14
+
15
+ try:
16
+ from sft_format import encode_prompt
17
+ except ModuleNotFoundError:
18
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
19
+ from scripts.sft_format import encode_prompt
20
+
21
+
22
+ def parser():
23
+ p = argparse.ArgumentParser(description=__doc__)
24
+ p.add_argument('--model-dir', type=Path, default=Path(__file__).resolve().parent)
25
+ source = p.add_mutually_exclusive_group(required=True)
26
+ source.add_argument('--prompt')
27
+ source.add_argument('--messages-json', type=Path)
28
+ p.add_argument('--device', choices=('cpu', 'cuda'), default='cpu')
29
+ p.add_argument('--greedy', action='store_true', help='Disable sampling')
30
+ p.add_argument('--temperature', type=float, default=.35)
31
+ p.add_argument('--top-p', type=float, default=.85)
32
+ p.add_argument('--top-k', type=int, default=30)
33
+ p.add_argument('--repetition-penalty', type=float, default=1.1)
34
+ p.add_argument('--no-repeat-ngram-size', type=int, default=4)
35
+ p.add_argument('--max-new-tokens', type=int, default=128)
36
+ p.add_argument('--seed', type=int, default=42)
37
+ p.add_argument('--threads', type=int, default=2)
38
+ return p
39
+
40
+
41
+ def validate(args):
42
+ if not (1 <= args.max_new_tokens <= 512 and 0 <= args.seed <= 2147483647 and args.threads > 0):
43
+ raise ValueError('Invalid output length, seed or CPU thread count')
44
+ if not (math.isfinite(args.temperature) and args.temperature > 0 and
45
+ math.isfinite(args.top_p) and 0 < args.top_p <= 1 and 0 <= args.top_k <= 32000 and
46
+ math.isfinite(args.repetition_penalty) and args.repetition_penalty > 0 and
47
+ 0 <= args.no_repeat_ngram_size <= 32):
48
+ raise ValueError('Invalid sampling or repetition controls')
49
+
50
+
51
+ def load(args):
52
+ import torch
53
+ from tokenizers import Tokenizer
54
+ from transformers import AutoModelForCausalLM
55
+ validate(args)
56
+ root = args.model_dir.resolve()
57
+ template = json.loads((root / 'sft_template.json').read_text(encoding='utf8'))
58
+ formatter = Path(sys.modules[encode_prompt.__module__].__file__)
59
+ if hashlib.sha256(formatter.read_bytes()).hexdigest() != template['formatter_sha256']:
60
+ raise ValueError('Role formatter does not match the released model')
61
+ with (root / 'tokenizer.json').open('rb') as stream:
62
+ digest = hashlib.file_digest(stream, 'sha256').hexdigest()
63
+ if digest != template['tokenizer_files_sha256']['tokenizer.json']:
64
+ raise ValueError('Tokenizer does not match the released model')
65
+ if args.device == 'cuda' and not torch.cuda.is_available():
66
+ raise ValueError('CUDA unavailable; use --device cpu')
67
+ torch.set_num_threads(args.threads)
68
+ # Keep the same seed-before-model-load order as the original inference CLI.
69
+ torch.manual_seed(args.seed)
70
+ if args.device == 'cuda': torch.cuda.manual_seed_all(args.seed)
71
+ tokenizer = Tokenizer.from_file(str(root / 'tokenizer.json'))
72
+ model = AutoModelForCausalLM.from_pretrained(
73
+ root, local_files_only=True, dtype=torch.float32,
74
+ attn_implementation='sdpa', trust_remote_code=False).to(args.device).eval()
75
+ if model.num_parameters() != 124720896 or model.config.max_position_embeddings != 1024:
76
+ raise ValueError('Unexpected Clover model architecture')
77
+ return model, tokenizer
78
+
79
+
80
+ def run(args, model, tokenizer, messages, stream=None):
81
+ import torch
82
+ from transformers import TextStreamer
83
+ validate(args)
84
+ ids = encode_prompt(messages, tokenizer)
85
+ if len(ids) + args.max_new_tokens > model.config.max_position_embeddings:
86
+ raise ValueError('Prompt + output exceeds 1024 tokens; shorten history or output')
87
+ stream = sys.stdout if stream is None else stream
88
+ class Streamer(TextStreamer):
89
+ def on_finalized_text(self, text, stream_end=False):
90
+ stream.write(text + ('\n' if stream_end else '')); stream.flush()
91
+ options = dict(max_new_tokens=args.max_new_tokens, do_sample=not args.greedy,
92
+ repetition_penalty=args.repetition_penalty,
93
+ no_repeat_ngram_size=args.no_repeat_ngram_size,
94
+ suppress_tokens=[0, 2, 3], eos_token_id=1, pad_token_id=0,
95
+ use_cache=True, renormalize_logits=True)
96
+ if not args.greedy:
97
+ options.update(temperature=args.temperature, top_p=args.top_p, top_k=args.top_k)
98
+ x = torch.tensor([ids], dtype=torch.long, device=args.device)
99
+ amp = torch.autocast('cuda', dtype=torch.bfloat16) if args.device == 'cuda' else nullcontext()
100
+ with torch.inference_mode(), amp:
101
+ output = model.generate(x, attention_mask=torch.ones_like(x),
102
+ streamer=Streamer(tokenizer, skip_prompt=True, skip_special_tokens=True),
103
+ **options)
104
+ return output[0, len(ids):].tolist()
105
+
106
+
107
+ def main(argv=None):
108
+ args = parser().parse_args(argv)
109
+ messages = json.loads(args.messages_json.read_text(encoding='utf8')) if args.messages_json else [
110
+ {'role': 'user', 'content': args.prompt}]
111
+ model, tokenizer = load(args)
112
+ run(args, model, tokenizer, messages)
113
+ return 0
114
+
115
+
116
+ if __name__ == '__main__':
117
+ if hasattr(sys.stdout, 'reconfigure'): sys.stdout.reconfigure(encoding='utf8')
118
+ try: raise SystemExit(main())
119
+ except KeyboardInterrupt: raise SystemExit(130)
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 3,
4
+ "eos_token_id": 1,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.19.0",
9
+ "use_cache": false
10
+ }
gguf/Clover-125M-v0.1.0-F32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8649696f1a89d73d59ae0ed7b9635ec7ce1b61db86ed5ddc9d3b64eb296da00
3
+ size 500008288
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c
3
+ size 498897824
provenance/conversion.json ADDED
@@ -0,0 +1,1393 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "passed",
3
+ "precision": "FP32 (no quantization)",
4
+ "all_tensors_bitwise_reversible": true,
5
+ "tensor_count": 128,
6
+ "parameters": 124720896,
7
+ "source_sha256": "3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c",
8
+ "gguf_sha256": "c8649696f1a89d73d59ae0ed7b9635ec7ce1b61db86ed5ddc9d3b64eb296da00",
9
+ "tokenizer_sha256": "43fb4fb8c8eedfef2bc57675c3dd980d505c3cd25126474a2f3269192baa2668",
10
+ "tensors": [
11
+ {
12
+ "source": "model.embed_tokens.weight",
13
+ "gguf": "token_embd.weight",
14
+ "shape": [
15
+ 32000,
16
+ 768
17
+ ],
18
+ "permuted": false,
19
+ "heads": 12,
20
+ "sha256": "6ad685b2caa4e9fd8f9a357ffff1a1ca09d3d4346b9cc36d53d2453d0102c879"
21
+ },
22
+ {
23
+ "source": "model.layers.0.input_layernorm.weight",
24
+ "gguf": "blk.0.attn_norm.weight",
25
+ "shape": [
26
+ 768
27
+ ],
28
+ "permuted": false,
29
+ "heads": 12,
30
+ "sha256": "134964b82929e811a2b8a89814c44fca550c9492a4b18ec31484b4778615e6ba"
31
+ },
32
+ {
33
+ "source": "model.layers.0.mlp.down_proj.weight",
34
+ "gguf": "blk.0.ffn_down.weight",
35
+ "shape": [
36
+ 768,
37
+ 2080
38
+ ],
39
+ "permuted": false,
40
+ "heads": 12,
41
+ "sha256": "4a574d9ca882e4f3069499cea765e56f64eb96b0750b260038c17e70ec862c25"
42
+ },
43
+ {
44
+ "source": "model.layers.0.mlp.gate_proj.weight",
45
+ "gguf": "blk.0.ffn_gate.weight",
46
+ "shape": [
47
+ 2080,
48
+ 768
49
+ ],
50
+ "permuted": false,
51
+ "heads": 12,
52
+ "sha256": "0202754c98280999da3e686022a29356720eecef5c1f8def336521088db4e97d"
53
+ },
54
+ {
55
+ "source": "model.layers.0.mlp.up_proj.weight",
56
+ "gguf": "blk.0.ffn_up.weight",
57
+ "shape": [
58
+ 2080,
59
+ 768
60
+ ],
61
+ "permuted": false,
62
+ "heads": 12,
63
+ "sha256": "cfd99a20385d2f7aa2ddf9497b3c2c36f7f93d9d3490f56e7ddb501809505019"
64
+ },
65
+ {
66
+ "source": "model.layers.0.post_attention_layernorm.weight",
67
+ "gguf": "blk.0.ffn_norm.weight",
68
+ "shape": [
69
+ 768
70
+ ],
71
+ "permuted": false,
72
+ "heads": 12,
73
+ "sha256": "385771bcb3e1cb84121091af580a9666f3f501e2e16a0962990eaf8257b72f2b"
74
+ },
75
+ {
76
+ "source": "model.layers.0.self_attn.k_proj.weight",
77
+ "gguf": "blk.0.attn_k.weight",
78
+ "shape": [
79
+ 768,
80
+ 768
81
+ ],
82
+ "permuted": true,
83
+ "heads": 12,
84
+ "sha256": "66fead13de9e2bda6dbb953bd7fb9ce7924de7a01fef5efc26a3302483a5a28f"
85
+ },
86
+ {
87
+ "source": "model.layers.0.self_attn.o_proj.weight",
88
+ "gguf": "blk.0.attn_output.weight",
89
+ "shape": [
90
+ 768,
91
+ 768
92
+ ],
93
+ "permuted": false,
94
+ "heads": 12,
95
+ "sha256": "e56a501ddb256035dcab421a1718327d9bbf640ffa4ba6b790bd7d4b896f1091"
96
+ },
97
+ {
98
+ "source": "model.layers.0.self_attn.q_proj.weight",
99
+ "gguf": "blk.0.attn_q.weight",
100
+ "shape": [
101
+ 768,
102
+ 768
103
+ ],
104
+ "permuted": true,
105
+ "heads": 12,
106
+ "sha256": "5de99e527e19245710b1a32af3f1d93b2150d863754947d0b93b768647524fbb"
107
+ },
108
+ {
109
+ "source": "model.layers.0.self_attn.v_proj.weight",
110
+ "gguf": "blk.0.attn_v.weight",
111
+ "shape": [
112
+ 768,
113
+ 768
114
+ ],
115
+ "permuted": false,
116
+ "heads": 12,
117
+ "sha256": "000a2870bfa4cce0606131a31e16b4febeb50f86766b420b2b9760c3c6b7a5eb"
118
+ },
119
+ {
120
+ "source": "model.layers.1.input_layernorm.weight",
121
+ "gguf": "blk.1.attn_norm.weight",
122
+ "shape": [
123
+ 768
124
+ ],
125
+ "permuted": false,
126
+ "heads": 12,
127
+ "sha256": "e74d3b4d13b6a576c2f32192f806357fc0bb3e3d4789660d2c5ac487ad95b482"
128
+ },
129
+ {
130
+ "source": "model.layers.1.mlp.down_proj.weight",
131
+ "gguf": "blk.1.ffn_down.weight",
132
+ "shape": [
133
+ 768,
134
+ 2080
135
+ ],
136
+ "permuted": false,
137
+ "heads": 12,
138
+ "sha256": "e53a1f0bc1ac0b753a16c964d57860c9ef56ab2eb6f8b3c824b337bfece8d554"
139
+ },
140
+ {
141
+ "source": "model.layers.1.mlp.gate_proj.weight",
142
+ "gguf": "blk.1.ffn_gate.weight",
143
+ "shape": [
144
+ 2080,
145
+ 768
146
+ ],
147
+ "permuted": false,
148
+ "heads": 12,
149
+ "sha256": "5326f425da57c3bfc5a02c17c9609ff33f06a020afe29015f283d980d3a955b0"
150
+ },
151
+ {
152
+ "source": "model.layers.1.mlp.up_proj.weight",
153
+ "gguf": "blk.1.ffn_up.weight",
154
+ "shape": [
155
+ 2080,
156
+ 768
157
+ ],
158
+ "permuted": false,
159
+ "heads": 12,
160
+ "sha256": "83e9128826b3547826397f39f231fc5d6cb7a18a60f9c45c2847a280f8acd7a9"
161
+ },
162
+ {
163
+ "source": "model.layers.1.post_attention_layernorm.weight",
164
+ "gguf": "blk.1.ffn_norm.weight",
165
+ "shape": [
166
+ 768
167
+ ],
168
+ "permuted": false,
169
+ "heads": 12,
170
+ "sha256": "92c73604887424aa7b07475c75b0bc2926c2c37eae9c7af0b0f787094ef295db"
171
+ },
172
+ {
173
+ "source": "model.layers.1.self_attn.k_proj.weight",
174
+ "gguf": "blk.1.attn_k.weight",
175
+ "shape": [
176
+ 768,
177
+ 768
178
+ ],
179
+ "permuted": true,
180
+ "heads": 12,
181
+ "sha256": "5b5977e7bd07214ad8031bf621f627962cefe65186f5fdd605b9ffcbd2716f67"
182
+ },
183
+ {
184
+ "source": "model.layers.1.self_attn.o_proj.weight",
185
+ "gguf": "blk.1.attn_output.weight",
186
+ "shape": [
187
+ 768,
188
+ 768
189
+ ],
190
+ "permuted": false,
191
+ "heads": 12,
192
+ "sha256": "f0e78ebe0b52ba1a59485dd9d2abef34afa272816d9abfb3822e213390064f19"
193
+ },
194
+ {
195
+ "source": "model.layers.1.self_attn.q_proj.weight",
196
+ "gguf": "blk.1.attn_q.weight",
197
+ "shape": [
198
+ 768,
199
+ 768
200
+ ],
201
+ "permuted": true,
202
+ "heads": 12,
203
+ "sha256": "b418c6aa28c07741cef5078eae6d5201573a3b48ce3d0f1c2e7ac9c36cf7a3f4"
204
+ },
205
+ {
206
+ "source": "model.layers.1.self_attn.v_proj.weight",
207
+ "gguf": "blk.1.attn_v.weight",
208
+ "shape": [
209
+ 768,
210
+ 768
211
+ ],
212
+ "permuted": false,
213
+ "heads": 12,
214
+ "sha256": "472a4f71148448730c7f5189b8c2a981d542b79f9f5a622bd426868ddae154ac"
215
+ },
216
+ {
217
+ "source": "model.layers.10.input_layernorm.weight",
218
+ "gguf": "blk.10.attn_norm.weight",
219
+ "shape": [
220
+ 768
221
+ ],
222
+ "permuted": false,
223
+ "heads": 12,
224
+ "sha256": "cea6c3a5641fb8027f136b8b1cb5252785d017dcbce49f8aed4274d3f2f82d74"
225
+ },
226
+ {
227
+ "source": "model.layers.10.mlp.down_proj.weight",
228
+ "gguf": "blk.10.ffn_down.weight",
229
+ "shape": [
230
+ 768,
231
+ 2080
232
+ ],
233
+ "permuted": false,
234
+ "heads": 12,
235
+ "sha256": "5821c5cf66708a27f2c7637c50623da88694a1224adb977d63fe7ec2d067309b"
236
+ },
237
+ {
238
+ "source": "model.layers.10.mlp.gate_proj.weight",
239
+ "gguf": "blk.10.ffn_gate.weight",
240
+ "shape": [
241
+ 2080,
242
+ 768
243
+ ],
244
+ "permuted": false,
245
+ "heads": 12,
246
+ "sha256": "7c3aa543d84548a9b4777ae84fbf425755175b7db311c37368e4f1027d89083a"
247
+ },
248
+ {
249
+ "source": "model.layers.10.mlp.up_proj.weight",
250
+ "gguf": "blk.10.ffn_up.weight",
251
+ "shape": [
252
+ 2080,
253
+ 768
254
+ ],
255
+ "permuted": false,
256
+ "heads": 12,
257
+ "sha256": "683b4ad0627d8140f02c9033e473801d8940bad342f58fa8f32b861603031718"
258
+ },
259
+ {
260
+ "source": "model.layers.10.post_attention_layernorm.weight",
261
+ "gguf": "blk.10.ffn_norm.weight",
262
+ "shape": [
263
+ 768
264
+ ],
265
+ "permuted": false,
266
+ "heads": 12,
267
+ "sha256": "f3ed2ac38555a5d914dc65796621836193d1a3b9be8a2e88883528371fc6f26f"
268
+ },
269
+ {
270
+ "source": "model.layers.10.self_attn.k_proj.weight",
271
+ "gguf": "blk.10.attn_k.weight",
272
+ "shape": [
273
+ 768,
274
+ 768
275
+ ],
276
+ "permuted": true,
277
+ "heads": 12,
278
+ "sha256": "d0fad7cccae82d3536fe65c8b2f431baeb6200c131731e3685a2a926c9a2cc05"
279
+ },
280
+ {
281
+ "source": "model.layers.10.self_attn.o_proj.weight",
282
+ "gguf": "blk.10.attn_output.weight",
283
+ "shape": [
284
+ 768,
285
+ 768
286
+ ],
287
+ "permuted": false,
288
+ "heads": 12,
289
+ "sha256": "dd20e31c42ffc82a3e9528b9f1cc16015e582f5584430339f563f354bc513604"
290
+ },
291
+ {
292
+ "source": "model.layers.10.self_attn.q_proj.weight",
293
+ "gguf": "blk.10.attn_q.weight",
294
+ "shape": [
295
+ 768,
296
+ 768
297
+ ],
298
+ "permuted": true,
299
+ "heads": 12,
300
+ "sha256": "31a9dda6e709181d3acabe4f08782006169efedde95e49f5e26554a8ae9cccfa"
301
+ },
302
+ {
303
+ "source": "model.layers.10.self_attn.v_proj.weight",
304
+ "gguf": "blk.10.attn_v.weight",
305
+ "shape": [
306
+ 768,
307
+ 768
308
+ ],
309
+ "permuted": false,
310
+ "heads": 12,
311
+ "sha256": "4c43660574453c60fbc55b51fee47d33df64cfc7b2aa9c6890cfbecebdbda344"
312
+ },
313
+ {
314
+ "source": "model.layers.11.input_layernorm.weight",
315
+ "gguf": "blk.11.attn_norm.weight",
316
+ "shape": [
317
+ 768
318
+ ],
319
+ "permuted": false,
320
+ "heads": 12,
321
+ "sha256": "155aba94a95e8b33f1e26c0d22c9e04ebe4bdaa9e9921cb32d4053d9b98f75c6"
322
+ },
323
+ {
324
+ "source": "model.layers.11.mlp.down_proj.weight",
325
+ "gguf": "blk.11.ffn_down.weight",
326
+ "shape": [
327
+ 768,
328
+ 2080
329
+ ],
330
+ "permuted": false,
331
+ "heads": 12,
332
+ "sha256": "0de1bf150be2aa72d5e9460558a8c2fc9c3a7c582fd74d04bb2e42e98612a1eb"
333
+ },
334
+ {
335
+ "source": "model.layers.11.mlp.gate_proj.weight",
336
+ "gguf": "blk.11.ffn_gate.weight",
337
+ "shape": [
338
+ 2080,
339
+ 768
340
+ ],
341
+ "permuted": false,
342
+ "heads": 12,
343
+ "sha256": "6fc475aed295fc74a5a9777d6e2a0f2a42651a7fec8fea5c5e88d40e393f494b"
344
+ },
345
+ {
346
+ "source": "model.layers.11.mlp.up_proj.weight",
347
+ "gguf": "blk.11.ffn_up.weight",
348
+ "shape": [
349
+ 2080,
350
+ 768
351
+ ],
352
+ "permuted": false,
353
+ "heads": 12,
354
+ "sha256": "8da8e2f0682f6bcdf356c3ba08558e6d8a930a31b6f17fbb05de6f2f4b6a557d"
355
+ },
356
+ {
357
+ "source": "model.layers.11.post_attention_layernorm.weight",
358
+ "gguf": "blk.11.ffn_norm.weight",
359
+ "shape": [
360
+ 768
361
+ ],
362
+ "permuted": false,
363
+ "heads": 12,
364
+ "sha256": "90d78da54acf08306398a006d6fc59f2fd51af515ff6c478ce48f51569e6945a"
365
+ },
366
+ {
367
+ "source": "model.layers.11.self_attn.k_proj.weight",
368
+ "gguf": "blk.11.attn_k.weight",
369
+ "shape": [
370
+ 768,
371
+ 768
372
+ ],
373
+ "permuted": true,
374
+ "heads": 12,
375
+ "sha256": "f13a362705821949dcc8506697f565cb40aa0fc4010936a4a34fff92ef4f5c83"
376
+ },
377
+ {
378
+ "source": "model.layers.11.self_attn.o_proj.weight",
379
+ "gguf": "blk.11.attn_output.weight",
380
+ "shape": [
381
+ 768,
382
+ 768
383
+ ],
384
+ "permuted": false,
385
+ "heads": 12,
386
+ "sha256": "8360cd65ce8432c5aa3f3436921cc0b00c74b4c0f64dcaff05a34acfe73f217e"
387
+ },
388
+ {
389
+ "source": "model.layers.11.self_attn.q_proj.weight",
390
+ "gguf": "blk.11.attn_q.weight",
391
+ "shape": [
392
+ 768,
393
+ 768
394
+ ],
395
+ "permuted": true,
396
+ "heads": 12,
397
+ "sha256": "dc8c729051db877930d0b5239dce0a354b5bf50a7e1556621f411ccd939ff47b"
398
+ },
399
+ {
400
+ "source": "model.layers.11.self_attn.v_proj.weight",
401
+ "gguf": "blk.11.attn_v.weight",
402
+ "shape": [
403
+ 768,
404
+ 768
405
+ ],
406
+ "permuted": false,
407
+ "heads": 12,
408
+ "sha256": "4a02f66b78314e2b5ad4476e3c536cbb20a1b1aa1b634a396f7de503817d8098"
409
+ },
410
+ {
411
+ "source": "model.layers.12.input_layernorm.weight",
412
+ "gguf": "blk.12.attn_norm.weight",
413
+ "shape": [
414
+ 768
415
+ ],
416
+ "permuted": false,
417
+ "heads": 12,
418
+ "sha256": "77329fd8fb19e050d6ff8f32b03d71f2a717dfacf3e682c2c9a1df4190231e2f"
419
+ },
420
+ {
421
+ "source": "model.layers.12.mlp.down_proj.weight",
422
+ "gguf": "blk.12.ffn_down.weight",
423
+ "shape": [
424
+ 768,
425
+ 2080
426
+ ],
427
+ "permuted": false,
428
+ "heads": 12,
429
+ "sha256": "c1298292a5babcc3808fea104f609c9eeb1beb1928d80df7c03766e546bbd8f9"
430
+ },
431
+ {
432
+ "source": "model.layers.12.mlp.gate_proj.weight",
433
+ "gguf": "blk.12.ffn_gate.weight",
434
+ "shape": [
435
+ 2080,
436
+ 768
437
+ ],
438
+ "permuted": false,
439
+ "heads": 12,
440
+ "sha256": "fab1b9218dfeeff178292d3e96b005d742052ecb0b553bdc8e449d8483c72a88"
441
+ },
442
+ {
443
+ "source": "model.layers.12.mlp.up_proj.weight",
444
+ "gguf": "blk.12.ffn_up.weight",
445
+ "shape": [
446
+ 2080,
447
+ 768
448
+ ],
449
+ "permuted": false,
450
+ "heads": 12,
451
+ "sha256": "d75b60fda11f9a31d722aa5699c6728b17934897d1fec59270c5658b3d31a62e"
452
+ },
453
+ {
454
+ "source": "model.layers.12.post_attention_layernorm.weight",
455
+ "gguf": "blk.12.ffn_norm.weight",
456
+ "shape": [
457
+ 768
458
+ ],
459
+ "permuted": false,
460
+ "heads": 12,
461
+ "sha256": "fe4038316158796741c20c900ea2f876f00f8053d4d4c14f7f97568b1693d734"
462
+ },
463
+ {
464
+ "source": "model.layers.12.self_attn.k_proj.weight",
465
+ "gguf": "blk.12.attn_k.weight",
466
+ "shape": [
467
+ 768,
468
+ 768
469
+ ],
470
+ "permuted": true,
471
+ "heads": 12,
472
+ "sha256": "986b6fea61921eb37ca15773d7527caf349113664d746f6e21789aad1001a284"
473
+ },
474
+ {
475
+ "source": "model.layers.12.self_attn.o_proj.weight",
476
+ "gguf": "blk.12.attn_output.weight",
477
+ "shape": [
478
+ 768,
479
+ 768
480
+ ],
481
+ "permuted": false,
482
+ "heads": 12,
483
+ "sha256": "cecdf0bf4ccff0bc6b544ae83c61da7803109e80c6051536c86972281654c87a"
484
+ },
485
+ {
486
+ "source": "model.layers.12.self_attn.q_proj.weight",
487
+ "gguf": "blk.12.attn_q.weight",
488
+ "shape": [
489
+ 768,
490
+ 768
491
+ ],
492
+ "permuted": true,
493
+ "heads": 12,
494
+ "sha256": "154f89236c2c44ce5c4ab4b7d7171170c3af809d829f93c51d4948ea644c2b5c"
495
+ },
496
+ {
497
+ "source": "model.layers.12.self_attn.v_proj.weight",
498
+ "gguf": "blk.12.attn_v.weight",
499
+ "shape": [
500
+ 768,
501
+ 768
502
+ ],
503
+ "permuted": false,
504
+ "heads": 12,
505
+ "sha256": "3f8f161c4454930a03959399d90815d961cc70408d0052d113cf43a29fec19ae"
506
+ },
507
+ {
508
+ "source": "model.layers.13.input_layernorm.weight",
509
+ "gguf": "blk.13.attn_norm.weight",
510
+ "shape": [
511
+ 768
512
+ ],
513
+ "permuted": false,
514
+ "heads": 12,
515
+ "sha256": "307e22c4b50a3799b064aa28dff6307613417784d83afcdfbc1119664a6a8e96"
516
+ },
517
+ {
518
+ "source": "model.layers.13.mlp.down_proj.weight",
519
+ "gguf": "blk.13.ffn_down.weight",
520
+ "shape": [
521
+ 768,
522
+ 2080
523
+ ],
524
+ "permuted": false,
525
+ "heads": 12,
526
+ "sha256": "f82aaa166e67dacaf52871562c1d5f862867d9f8f1f162d9f1a1f0eb6cb9edad"
527
+ },
528
+ {
529
+ "source": "model.layers.13.mlp.gate_proj.weight",
530
+ "gguf": "blk.13.ffn_gate.weight",
531
+ "shape": [
532
+ 2080,
533
+ 768
534
+ ],
535
+ "permuted": false,
536
+ "heads": 12,
537
+ "sha256": "3214c2860cd4bb17d9ee68ac4eb2d6bd32c8ac3787a0c1d29b2bf5ce32edba43"
538
+ },
539
+ {
540
+ "source": "model.layers.13.mlp.up_proj.weight",
541
+ "gguf": "blk.13.ffn_up.weight",
542
+ "shape": [
543
+ 2080,
544
+ 768
545
+ ],
546
+ "permuted": false,
547
+ "heads": 12,
548
+ "sha256": "1d6b8e592d03cdd73b7776b8ce21d15ad6ee38cd901e21c89460e2099b010b7b"
549
+ },
550
+ {
551
+ "source": "model.layers.13.post_attention_layernorm.weight",
552
+ "gguf": "blk.13.ffn_norm.weight",
553
+ "shape": [
554
+ 768
555
+ ],
556
+ "permuted": false,
557
+ "heads": 12,
558
+ "sha256": "6a82f0a60d7757cf8460fc97b79fbf54c6b23a1e5603e552d4f73c508210de85"
559
+ },
560
+ {
561
+ "source": "model.layers.13.self_attn.k_proj.weight",
562
+ "gguf": "blk.13.attn_k.weight",
563
+ "shape": [
564
+ 768,
565
+ 768
566
+ ],
567
+ "permuted": true,
568
+ "heads": 12,
569
+ "sha256": "e38ec3db4479850800db6bb497838213ba66523112ac2f6c82d6f54d5e1a554c"
570
+ },
571
+ {
572
+ "source": "model.layers.13.self_attn.o_proj.weight",
573
+ "gguf": "blk.13.attn_output.weight",
574
+ "shape": [
575
+ 768,
576
+ 768
577
+ ],
578
+ "permuted": false,
579
+ "heads": 12,
580
+ "sha256": "5bce8b52184515bd45d298943f4e1b85067f10292a13def46eb20acea58e1c27"
581
+ },
582
+ {
583
+ "source": "model.layers.13.self_attn.q_proj.weight",
584
+ "gguf": "blk.13.attn_q.weight",
585
+ "shape": [
586
+ 768,
587
+ 768
588
+ ],
589
+ "permuted": true,
590
+ "heads": 12,
591
+ "sha256": "e68f161e44a41c947292cda44aaabb909b975ee59bebeb121246bb2425a67ccb"
592
+ },
593
+ {
594
+ "source": "model.layers.13.self_attn.v_proj.weight",
595
+ "gguf": "blk.13.attn_v.weight",
596
+ "shape": [
597
+ 768,
598
+ 768
599
+ ],
600
+ "permuted": false,
601
+ "heads": 12,
602
+ "sha256": "33c04494e829a5bea678dd43dd112e0f9ad8e66fa1ef4de3880c54f5662bac25"
603
+ },
604
+ {
605
+ "source": "model.layers.2.input_layernorm.weight",
606
+ "gguf": "blk.2.attn_norm.weight",
607
+ "shape": [
608
+ 768
609
+ ],
610
+ "permuted": false,
611
+ "heads": 12,
612
+ "sha256": "3cfadaed9d5b6158f7771eb9f056dcf25f4b2e6f965d8ac9cb2c3306b3ebea2c"
613
+ },
614
+ {
615
+ "source": "model.layers.2.mlp.down_proj.weight",
616
+ "gguf": "blk.2.ffn_down.weight",
617
+ "shape": [
618
+ 768,
619
+ 2080
620
+ ],
621
+ "permuted": false,
622
+ "heads": 12,
623
+ "sha256": "a7eede3bb51337d638c539cc78fc87587482b7fdaa5520b03ae45d3ca54d7aea"
624
+ },
625
+ {
626
+ "source": "model.layers.2.mlp.gate_proj.weight",
627
+ "gguf": "blk.2.ffn_gate.weight",
628
+ "shape": [
629
+ 2080,
630
+ 768
631
+ ],
632
+ "permuted": false,
633
+ "heads": 12,
634
+ "sha256": "5cc1edb1fc7be9aca63f6578f68bcdb2d6ad114c57450fbdfbac3ead57e030aa"
635
+ },
636
+ {
637
+ "source": "model.layers.2.mlp.up_proj.weight",
638
+ "gguf": "blk.2.ffn_up.weight",
639
+ "shape": [
640
+ 2080,
641
+ 768
642
+ ],
643
+ "permuted": false,
644
+ "heads": 12,
645
+ "sha256": "8d860ed06be965fb493956f9d462b23abc9e44d10122c2bd64fc50df37dfb2f3"
646
+ },
647
+ {
648
+ "source": "model.layers.2.post_attention_layernorm.weight",
649
+ "gguf": "blk.2.ffn_norm.weight",
650
+ "shape": [
651
+ 768
652
+ ],
653
+ "permuted": false,
654
+ "heads": 12,
655
+ "sha256": "78f423e65adf3ffd1ba24db218f7709b94670e439f8ac867804443595cdb2eea"
656
+ },
657
+ {
658
+ "source": "model.layers.2.self_attn.k_proj.weight",
659
+ "gguf": "blk.2.attn_k.weight",
660
+ "shape": [
661
+ 768,
662
+ 768
663
+ ],
664
+ "permuted": true,
665
+ "heads": 12,
666
+ "sha256": "d11fbf9c9fcd0ac5565e04f4d7c1384cc09030adb92b080893674bc454ed2db4"
667
+ },
668
+ {
669
+ "source": "model.layers.2.self_attn.o_proj.weight",
670
+ "gguf": "blk.2.attn_output.weight",
671
+ "shape": [
672
+ 768,
673
+ 768
674
+ ],
675
+ "permuted": false,
676
+ "heads": 12,
677
+ "sha256": "eda1053a817aa857ad058d030137aacf289e8573fed3f016295486f45a5bc568"
678
+ },
679
+ {
680
+ "source": "model.layers.2.self_attn.q_proj.weight",
681
+ "gguf": "blk.2.attn_q.weight",
682
+ "shape": [
683
+ 768,
684
+ 768
685
+ ],
686
+ "permuted": true,
687
+ "heads": 12,
688
+ "sha256": "9998d82e7b4aba0d2a3bdc3117def6a9d2154ac96b5d1efe14032e38d0eb39be"
689
+ },
690
+ {
691
+ "source": "model.layers.2.self_attn.v_proj.weight",
692
+ "gguf": "blk.2.attn_v.weight",
693
+ "shape": [
694
+ 768,
695
+ 768
696
+ ],
697
+ "permuted": false,
698
+ "heads": 12,
699
+ "sha256": "d1674e39b97c89ccd5c5ecb19d4232b9a75e771d09a1a356ae39970d0dc48d2d"
700
+ },
701
+ {
702
+ "source": "model.layers.3.input_layernorm.weight",
703
+ "gguf": "blk.3.attn_norm.weight",
704
+ "shape": [
705
+ 768
706
+ ],
707
+ "permuted": false,
708
+ "heads": 12,
709
+ "sha256": "311b68bdc15925ad957d5417a3c2c253343c7beb817762fca54287115e425db4"
710
+ },
711
+ {
712
+ "source": "model.layers.3.mlp.down_proj.weight",
713
+ "gguf": "blk.3.ffn_down.weight",
714
+ "shape": [
715
+ 768,
716
+ 2080
717
+ ],
718
+ "permuted": false,
719
+ "heads": 12,
720
+ "sha256": "4cf817061d3f4991e264927a4e40408bff7cf5052f7f2f1e7d251998ba670b42"
721
+ },
722
+ {
723
+ "source": "model.layers.3.mlp.gate_proj.weight",
724
+ "gguf": "blk.3.ffn_gate.weight",
725
+ "shape": [
726
+ 2080,
727
+ 768
728
+ ],
729
+ "permuted": false,
730
+ "heads": 12,
731
+ "sha256": "f9a28608740daa011cfa388f50aa8bf8e7bd8dc0ae79371b0900e15c5b5a40eb"
732
+ },
733
+ {
734
+ "source": "model.layers.3.mlp.up_proj.weight",
735
+ "gguf": "blk.3.ffn_up.weight",
736
+ "shape": [
737
+ 2080,
738
+ 768
739
+ ],
740
+ "permuted": false,
741
+ "heads": 12,
742
+ "sha256": "ceccde1c9ec2486f3fad291f6d5ebb58e9690325df0788f5d8753d8654d77af7"
743
+ },
744
+ {
745
+ "source": "model.layers.3.post_attention_layernorm.weight",
746
+ "gguf": "blk.3.ffn_norm.weight",
747
+ "shape": [
748
+ 768
749
+ ],
750
+ "permuted": false,
751
+ "heads": 12,
752
+ "sha256": "ed66eea4c3e124a7ab3fb3112fff171556cacae1e9eb89be11ebbebe256d33fb"
753
+ },
754
+ {
755
+ "source": "model.layers.3.self_attn.k_proj.weight",
756
+ "gguf": "blk.3.attn_k.weight",
757
+ "shape": [
758
+ 768,
759
+ 768
760
+ ],
761
+ "permuted": true,
762
+ "heads": 12,
763
+ "sha256": "ccd4e75c2c570a24b4ee679be60a81412a86fb2388c014e490de792291a736db"
764
+ },
765
+ {
766
+ "source": "model.layers.3.self_attn.o_proj.weight",
767
+ "gguf": "blk.3.attn_output.weight",
768
+ "shape": [
769
+ 768,
770
+ 768
771
+ ],
772
+ "permuted": false,
773
+ "heads": 12,
774
+ "sha256": "d84e5b1e0ab3ada667a15e017178398816620b05cf197117036fabe63052b381"
775
+ },
776
+ {
777
+ "source": "model.layers.3.self_attn.q_proj.weight",
778
+ "gguf": "blk.3.attn_q.weight",
779
+ "shape": [
780
+ 768,
781
+ 768
782
+ ],
783
+ "permuted": true,
784
+ "heads": 12,
785
+ "sha256": "1c03663db78ec525b6032a9fac3528173b383e7540cc0188007527a87614e83a"
786
+ },
787
+ {
788
+ "source": "model.layers.3.self_attn.v_proj.weight",
789
+ "gguf": "blk.3.attn_v.weight",
790
+ "shape": [
791
+ 768,
792
+ 768
793
+ ],
794
+ "permuted": false,
795
+ "heads": 12,
796
+ "sha256": "dccd207530fe9b7bd7b589da516fa87e0b6dee1ecfb4411522c5007905edfe96"
797
+ },
798
+ {
799
+ "source": "model.layers.4.input_layernorm.weight",
800
+ "gguf": "blk.4.attn_norm.weight",
801
+ "shape": [
802
+ 768
803
+ ],
804
+ "permuted": false,
805
+ "heads": 12,
806
+ "sha256": "9ec3510a803b752d453e844ddf0dde331df3029c6a20f2ef2eae9fb95493fdb9"
807
+ },
808
+ {
809
+ "source": "model.layers.4.mlp.down_proj.weight",
810
+ "gguf": "blk.4.ffn_down.weight",
811
+ "shape": [
812
+ 768,
813
+ 2080
814
+ ],
815
+ "permuted": false,
816
+ "heads": 12,
817
+ "sha256": "067e19a4ef0cd20b2673cee02f235f054072e16fa81fef7c77433ba126482939"
818
+ },
819
+ {
820
+ "source": "model.layers.4.mlp.gate_proj.weight",
821
+ "gguf": "blk.4.ffn_gate.weight",
822
+ "shape": [
823
+ 2080,
824
+ 768
825
+ ],
826
+ "permuted": false,
827
+ "heads": 12,
828
+ "sha256": "cdd1d7bc9d8b4efa9b3229988157724949924c43f858c6141546705e99eb71ed"
829
+ },
830
+ {
831
+ "source": "model.layers.4.mlp.up_proj.weight",
832
+ "gguf": "blk.4.ffn_up.weight",
833
+ "shape": [
834
+ 2080,
835
+ 768
836
+ ],
837
+ "permuted": false,
838
+ "heads": 12,
839
+ "sha256": "c29a0e710e289bbffafc8a2995873692a8317b756be2cc4ba1dc1d5b6e53815c"
840
+ },
841
+ {
842
+ "source": "model.layers.4.post_attention_layernorm.weight",
843
+ "gguf": "blk.4.ffn_norm.weight",
844
+ "shape": [
845
+ 768
846
+ ],
847
+ "permuted": false,
848
+ "heads": 12,
849
+ "sha256": "e8306877b87c6b2b593fe14e10a9a41fdceecdf879ff1a198188b7f3d9ae8918"
850
+ },
851
+ {
852
+ "source": "model.layers.4.self_attn.k_proj.weight",
853
+ "gguf": "blk.4.attn_k.weight",
854
+ "shape": [
855
+ 768,
856
+ 768
857
+ ],
858
+ "permuted": true,
859
+ "heads": 12,
860
+ "sha256": "d716eb7dd5859301d029c3e4c01e52d695e814fa46dffc18517a7be62b0750d6"
861
+ },
862
+ {
863
+ "source": "model.layers.4.self_attn.o_proj.weight",
864
+ "gguf": "blk.4.attn_output.weight",
865
+ "shape": [
866
+ 768,
867
+ 768
868
+ ],
869
+ "permuted": false,
870
+ "heads": 12,
871
+ "sha256": "10c6155e39d01bc0736bfed46a659b8939700e9d78b6575863147d707af0da55"
872
+ },
873
+ {
874
+ "source": "model.layers.4.self_attn.q_proj.weight",
875
+ "gguf": "blk.4.attn_q.weight",
876
+ "shape": [
877
+ 768,
878
+ 768
879
+ ],
880
+ "permuted": true,
881
+ "heads": 12,
882
+ "sha256": "7cdde83b1321dde202418072d99396c3bbae27b8e408b759f47ef6eb484d1a9e"
883
+ },
884
+ {
885
+ "source": "model.layers.4.self_attn.v_proj.weight",
886
+ "gguf": "blk.4.attn_v.weight",
887
+ "shape": [
888
+ 768,
889
+ 768
890
+ ],
891
+ "permuted": false,
892
+ "heads": 12,
893
+ "sha256": "b2379fbcb3ed33a54dd4b0b2a3f6e3f56b7dc29bac0cd1263a544b006a7c94a5"
894
+ },
895
+ {
896
+ "source": "model.layers.5.input_layernorm.weight",
897
+ "gguf": "blk.5.attn_norm.weight",
898
+ "shape": [
899
+ 768
900
+ ],
901
+ "permuted": false,
902
+ "heads": 12,
903
+ "sha256": "b7e41e5134d9fe94d394b3a9b2687f16257fd23d7cb35202accb8c597ccc54c8"
904
+ },
905
+ {
906
+ "source": "model.layers.5.mlp.down_proj.weight",
907
+ "gguf": "blk.5.ffn_down.weight",
908
+ "shape": [
909
+ 768,
910
+ 2080
911
+ ],
912
+ "permuted": false,
913
+ "heads": 12,
914
+ "sha256": "54730837d66b2757f2fc6bb7d79f2c3127e8d1495573baef2155283458f4c161"
915
+ },
916
+ {
917
+ "source": "model.layers.5.mlp.gate_proj.weight",
918
+ "gguf": "blk.5.ffn_gate.weight",
919
+ "shape": [
920
+ 2080,
921
+ 768
922
+ ],
923
+ "permuted": false,
924
+ "heads": 12,
925
+ "sha256": "1a1f132bb7be3fa6ee335d0109b52569ab0585273b63edd6357867b991389f75"
926
+ },
927
+ {
928
+ "source": "model.layers.5.mlp.up_proj.weight",
929
+ "gguf": "blk.5.ffn_up.weight",
930
+ "shape": [
931
+ 2080,
932
+ 768
933
+ ],
934
+ "permuted": false,
935
+ "heads": 12,
936
+ "sha256": "eb6c997f2fd31547ae8490df566a954a0688ab600ecf2db7e20a0e460fcae414"
937
+ },
938
+ {
939
+ "source": "model.layers.5.post_attention_layernorm.weight",
940
+ "gguf": "blk.5.ffn_norm.weight",
941
+ "shape": [
942
+ 768
943
+ ],
944
+ "permuted": false,
945
+ "heads": 12,
946
+ "sha256": "5b2eb165378b8715b367b9af9c34f19687e54a7a7b860ad3bd5762aab7cccabd"
947
+ },
948
+ {
949
+ "source": "model.layers.5.self_attn.k_proj.weight",
950
+ "gguf": "blk.5.attn_k.weight",
951
+ "shape": [
952
+ 768,
953
+ 768
954
+ ],
955
+ "permuted": true,
956
+ "heads": 12,
957
+ "sha256": "09e0d5928effa229895fa5252562b676abb9b0522c15cf7bba303e35bc63e155"
958
+ },
959
+ {
960
+ "source": "model.layers.5.self_attn.o_proj.weight",
961
+ "gguf": "blk.5.attn_output.weight",
962
+ "shape": [
963
+ 768,
964
+ 768
965
+ ],
966
+ "permuted": false,
967
+ "heads": 12,
968
+ "sha256": "9c191e37c9b835d3c8fb074200aa1ebefb4761f8d6b578041fbcfab978f85805"
969
+ },
970
+ {
971
+ "source": "model.layers.5.self_attn.q_proj.weight",
972
+ "gguf": "blk.5.attn_q.weight",
973
+ "shape": [
974
+ 768,
975
+ 768
976
+ ],
977
+ "permuted": true,
978
+ "heads": 12,
979
+ "sha256": "4ab62ff19bf8444d93f80d06262fe6ccd7a094060a410b1a7ff91f460d13c661"
980
+ },
981
+ {
982
+ "source": "model.layers.5.self_attn.v_proj.weight",
983
+ "gguf": "blk.5.attn_v.weight",
984
+ "shape": [
985
+ 768,
986
+ 768
987
+ ],
988
+ "permuted": false,
989
+ "heads": 12,
990
+ "sha256": "dc8c5a97e7ae4b37d616142d6a0b5c1d42230c762a24491e0ed07d8f84a7c410"
991
+ },
992
+ {
993
+ "source": "model.layers.6.input_layernorm.weight",
994
+ "gguf": "blk.6.attn_norm.weight",
995
+ "shape": [
996
+ 768
997
+ ],
998
+ "permuted": false,
999
+ "heads": 12,
1000
+ "sha256": "9101f3a935b065449ad7c334519d7cc7bcd5bbca610a3b72247b9bbc861400be"
1001
+ },
1002
+ {
1003
+ "source": "model.layers.6.mlp.down_proj.weight",
1004
+ "gguf": "blk.6.ffn_down.weight",
1005
+ "shape": [
1006
+ 768,
1007
+ 2080
1008
+ ],
1009
+ "permuted": false,
1010
+ "heads": 12,
1011
+ "sha256": "030d8b0c50d527135c07f5ea8728c836c9c92c47206baacdc6b30919dc15fc63"
1012
+ },
1013
+ {
1014
+ "source": "model.layers.6.mlp.gate_proj.weight",
1015
+ "gguf": "blk.6.ffn_gate.weight",
1016
+ "shape": [
1017
+ 2080,
1018
+ 768
1019
+ ],
1020
+ "permuted": false,
1021
+ "heads": 12,
1022
+ "sha256": "a8efe46d5e9704858812f38574c5b1d24f33ee3225df7d6548cf6fec1b43daba"
1023
+ },
1024
+ {
1025
+ "source": "model.layers.6.mlp.up_proj.weight",
1026
+ "gguf": "blk.6.ffn_up.weight",
1027
+ "shape": [
1028
+ 2080,
1029
+ 768
1030
+ ],
1031
+ "permuted": false,
1032
+ "heads": 12,
1033
+ "sha256": "5f8027ed291e102aa092af830bba354d22576ab17e0b97c87a85d140c6f676d1"
1034
+ },
1035
+ {
1036
+ "source": "model.layers.6.post_attention_layernorm.weight",
1037
+ "gguf": "blk.6.ffn_norm.weight",
1038
+ "shape": [
1039
+ 768
1040
+ ],
1041
+ "permuted": false,
1042
+ "heads": 12,
1043
+ "sha256": "e626aa66720ce24fe284dec9595995adb56300dd1d895b4e32ac707ece7f7842"
1044
+ },
1045
+ {
1046
+ "source": "model.layers.6.self_attn.k_proj.weight",
1047
+ "gguf": "blk.6.attn_k.weight",
1048
+ "shape": [
1049
+ 768,
1050
+ 768
1051
+ ],
1052
+ "permuted": true,
1053
+ "heads": 12,
1054
+ "sha256": "f8f11bb1af2d539f1048d920556793e73da1cbb110885c52246497b2917aae06"
1055
+ },
1056
+ {
1057
+ "source": "model.layers.6.self_attn.o_proj.weight",
1058
+ "gguf": "blk.6.attn_output.weight",
1059
+ "shape": [
1060
+ 768,
1061
+ 768
1062
+ ],
1063
+ "permuted": false,
1064
+ "heads": 12,
1065
+ "sha256": "2e702c95bf1860c3c126ef95e5ea9f6925b515ed84d4970b1b651ed46b482c53"
1066
+ },
1067
+ {
1068
+ "source": "model.layers.6.self_attn.q_proj.weight",
1069
+ "gguf": "blk.6.attn_q.weight",
1070
+ "shape": [
1071
+ 768,
1072
+ 768
1073
+ ],
1074
+ "permuted": true,
1075
+ "heads": 12,
1076
+ "sha256": "60e9905bcbee13bd4d11d4b47f2c71e2d8f361b440c0e5f4d4e9c820f5525f33"
1077
+ },
1078
+ {
1079
+ "source": "model.layers.6.self_attn.v_proj.weight",
1080
+ "gguf": "blk.6.attn_v.weight",
1081
+ "shape": [
1082
+ 768,
1083
+ 768
1084
+ ],
1085
+ "permuted": false,
1086
+ "heads": 12,
1087
+ "sha256": "63e77f79f9a877075e088052dad9aec8cc017f13d6b4f5c3950b2f5bbf72e276"
1088
+ },
1089
+ {
1090
+ "source": "model.layers.7.input_layernorm.weight",
1091
+ "gguf": "blk.7.attn_norm.weight",
1092
+ "shape": [
1093
+ 768
1094
+ ],
1095
+ "permuted": false,
1096
+ "heads": 12,
1097
+ "sha256": "7bb4b816cb8f2a233fac1a37ad1fa3fa3ce2e219e0132c4842feb00a4017e552"
1098
+ },
1099
+ {
1100
+ "source": "model.layers.7.mlp.down_proj.weight",
1101
+ "gguf": "blk.7.ffn_down.weight",
1102
+ "shape": [
1103
+ 768,
1104
+ 2080
1105
+ ],
1106
+ "permuted": false,
1107
+ "heads": 12,
1108
+ "sha256": "ff0bb884a8c27c5af04110657690eb70df3b04ddc3b7919f5205e69bf5cf18f4"
1109
+ },
1110
+ {
1111
+ "source": "model.layers.7.mlp.gate_proj.weight",
1112
+ "gguf": "blk.7.ffn_gate.weight",
1113
+ "shape": [
1114
+ 2080,
1115
+ 768
1116
+ ],
1117
+ "permuted": false,
1118
+ "heads": 12,
1119
+ "sha256": "c749075d6b325b942fd4e013ebde2fce14f3e3aa3dab659d4da1ab17dd278a2c"
1120
+ },
1121
+ {
1122
+ "source": "model.layers.7.mlp.up_proj.weight",
1123
+ "gguf": "blk.7.ffn_up.weight",
1124
+ "shape": [
1125
+ 2080,
1126
+ 768
1127
+ ],
1128
+ "permuted": false,
1129
+ "heads": 12,
1130
+ "sha256": "fb46518c7e606b306c5ef9930171ae167e62196e521ff404d382de0e82aca9ce"
1131
+ },
1132
+ {
1133
+ "source": "model.layers.7.post_attention_layernorm.weight",
1134
+ "gguf": "blk.7.ffn_norm.weight",
1135
+ "shape": [
1136
+ 768
1137
+ ],
1138
+ "permuted": false,
1139
+ "heads": 12,
1140
+ "sha256": "b66e24c1f5c8b7432c167d9c6e948a45393e39866003e78c9b6a97b9b21eaa55"
1141
+ },
1142
+ {
1143
+ "source": "model.layers.7.self_attn.k_proj.weight",
1144
+ "gguf": "blk.7.attn_k.weight",
1145
+ "shape": [
1146
+ 768,
1147
+ 768
1148
+ ],
1149
+ "permuted": true,
1150
+ "heads": 12,
1151
+ "sha256": "4ad5bde667bf56fe685c60f702222becafe1a74665bfeb2684baa54773aba614"
1152
+ },
1153
+ {
1154
+ "source": "model.layers.7.self_attn.o_proj.weight",
1155
+ "gguf": "blk.7.attn_output.weight",
1156
+ "shape": [
1157
+ 768,
1158
+ 768
1159
+ ],
1160
+ "permuted": false,
1161
+ "heads": 12,
1162
+ "sha256": "82c86ae925b10f84a3d0970f2185e4ee45a2011a5c4321b7c552e989d453fdea"
1163
+ },
1164
+ {
1165
+ "source": "model.layers.7.self_attn.q_proj.weight",
1166
+ "gguf": "blk.7.attn_q.weight",
1167
+ "shape": [
1168
+ 768,
1169
+ 768
1170
+ ],
1171
+ "permuted": true,
1172
+ "heads": 12,
1173
+ "sha256": "d003551ab6b38e7a053e5b7aea13d335eba408e0bcb1c4f04b5ef1e3ba0c5f29"
1174
+ },
1175
+ {
1176
+ "source": "model.layers.7.self_attn.v_proj.weight",
1177
+ "gguf": "blk.7.attn_v.weight",
1178
+ "shape": [
1179
+ 768,
1180
+ 768
1181
+ ],
1182
+ "permuted": false,
1183
+ "heads": 12,
1184
+ "sha256": "cdd783b2ca4b33da57e28733c13dd222d58dcc03f5247761426a9d6c3a91c2f8"
1185
+ },
1186
+ {
1187
+ "source": "model.layers.8.input_layernorm.weight",
1188
+ "gguf": "blk.8.attn_norm.weight",
1189
+ "shape": [
1190
+ 768
1191
+ ],
1192
+ "permuted": false,
1193
+ "heads": 12,
1194
+ "sha256": "f6ab89c71773cabaef0f479bcb722cf4900e04f61eece141e1f455eb37336972"
1195
+ },
1196
+ {
1197
+ "source": "model.layers.8.mlp.down_proj.weight",
1198
+ "gguf": "blk.8.ffn_down.weight",
1199
+ "shape": [
1200
+ 768,
1201
+ 2080
1202
+ ],
1203
+ "permuted": false,
1204
+ "heads": 12,
1205
+ "sha256": "01fe526d3d36d46603cfcd4fdd3b235cbfec7701e9b6c75101b46cb9ca795ac2"
1206
+ },
1207
+ {
1208
+ "source": "model.layers.8.mlp.gate_proj.weight",
1209
+ "gguf": "blk.8.ffn_gate.weight",
1210
+ "shape": [
1211
+ 2080,
1212
+ 768
1213
+ ],
1214
+ "permuted": false,
1215
+ "heads": 12,
1216
+ "sha256": "316f1b1b4a702098864967e8a968c0f6eb5638676629fadfd9384677b420fca0"
1217
+ },
1218
+ {
1219
+ "source": "model.layers.8.mlp.up_proj.weight",
1220
+ "gguf": "blk.8.ffn_up.weight",
1221
+ "shape": [
1222
+ 2080,
1223
+ 768
1224
+ ],
1225
+ "permuted": false,
1226
+ "heads": 12,
1227
+ "sha256": "8d7eb06e23e87b11ea730e40dc2bb48c9f125c91cbcfc41365859e1a6e53e112"
1228
+ },
1229
+ {
1230
+ "source": "model.layers.8.post_attention_layernorm.weight",
1231
+ "gguf": "blk.8.ffn_norm.weight",
1232
+ "shape": [
1233
+ 768
1234
+ ],
1235
+ "permuted": false,
1236
+ "heads": 12,
1237
+ "sha256": "e20ae4438895768f2504c473bab0f2de563c310f04f43251185159505e199d86"
1238
+ },
1239
+ {
1240
+ "source": "model.layers.8.self_attn.k_proj.weight",
1241
+ "gguf": "blk.8.attn_k.weight",
1242
+ "shape": [
1243
+ 768,
1244
+ 768
1245
+ ],
1246
+ "permuted": true,
1247
+ "heads": 12,
1248
+ "sha256": "8c5cbfc7a985ec19d68685494a13f354e44626d18073eda29e2d21b2b4e762f5"
1249
+ },
1250
+ {
1251
+ "source": "model.layers.8.self_attn.o_proj.weight",
1252
+ "gguf": "blk.8.attn_output.weight",
1253
+ "shape": [
1254
+ 768,
1255
+ 768
1256
+ ],
1257
+ "permuted": false,
1258
+ "heads": 12,
1259
+ "sha256": "d591f0742567e5d30897cc7649a7e670da393f12aa38b36cef1789cff365e902"
1260
+ },
1261
+ {
1262
+ "source": "model.layers.8.self_attn.q_proj.weight",
1263
+ "gguf": "blk.8.attn_q.weight",
1264
+ "shape": [
1265
+ 768,
1266
+ 768
1267
+ ],
1268
+ "permuted": true,
1269
+ "heads": 12,
1270
+ "sha256": "995a2b77642c74e2f585266518004f9a5ba49afa693e6976e2dc4d7baec95678"
1271
+ },
1272
+ {
1273
+ "source": "model.layers.8.self_attn.v_proj.weight",
1274
+ "gguf": "blk.8.attn_v.weight",
1275
+ "shape": [
1276
+ 768,
1277
+ 768
1278
+ ],
1279
+ "permuted": false,
1280
+ "heads": 12,
1281
+ "sha256": "9fd70a01a673ff62841f2852cc0437f4ff773aa5f6d58418b499f7e63ee7f41b"
1282
+ },
1283
+ {
1284
+ "source": "model.layers.9.input_layernorm.weight",
1285
+ "gguf": "blk.9.attn_norm.weight",
1286
+ "shape": [
1287
+ 768
1288
+ ],
1289
+ "permuted": false,
1290
+ "heads": 12,
1291
+ "sha256": "773b01d25456e1ff92164d7787e3981b3ae2560c62b22ed450f38acf776a695d"
1292
+ },
1293
+ {
1294
+ "source": "model.layers.9.mlp.down_proj.weight",
1295
+ "gguf": "blk.9.ffn_down.weight",
1296
+ "shape": [
1297
+ 768,
1298
+ 2080
1299
+ ],
1300
+ "permuted": false,
1301
+ "heads": 12,
1302
+ "sha256": "5635bded219bbc95c12482aa6aaef4b4b52064fc1eb64d6e3086c0be2ad584b5"
1303
+ },
1304
+ {
1305
+ "source": "model.layers.9.mlp.gate_proj.weight",
1306
+ "gguf": "blk.9.ffn_gate.weight",
1307
+ "shape": [
1308
+ 2080,
1309
+ 768
1310
+ ],
1311
+ "permuted": false,
1312
+ "heads": 12,
1313
+ "sha256": "852d9a3d17cbf56cde793b13a4db0bada94a04532b2bb6e957d92af0790d23e0"
1314
+ },
1315
+ {
1316
+ "source": "model.layers.9.mlp.up_proj.weight",
1317
+ "gguf": "blk.9.ffn_up.weight",
1318
+ "shape": [
1319
+ 2080,
1320
+ 768
1321
+ ],
1322
+ "permuted": false,
1323
+ "heads": 12,
1324
+ "sha256": "6945b8c60182a8f49fb9613253d75897402df9d8c52e1660ce661f0f056ba1e3"
1325
+ },
1326
+ {
1327
+ "source": "model.layers.9.post_attention_layernorm.weight",
1328
+ "gguf": "blk.9.ffn_norm.weight",
1329
+ "shape": [
1330
+ 768
1331
+ ],
1332
+ "permuted": false,
1333
+ "heads": 12,
1334
+ "sha256": "a70e414d9aaaaa220659c854f76a6034847774e8276c561154d0dd5022dfb7c6"
1335
+ },
1336
+ {
1337
+ "source": "model.layers.9.self_attn.k_proj.weight",
1338
+ "gguf": "blk.9.attn_k.weight",
1339
+ "shape": [
1340
+ 768,
1341
+ 768
1342
+ ],
1343
+ "permuted": true,
1344
+ "heads": 12,
1345
+ "sha256": "241f9dcdd6b92a475442b75ced7840fc10b6455000abca787a1b1823a477525c"
1346
+ },
1347
+ {
1348
+ "source": "model.layers.9.self_attn.o_proj.weight",
1349
+ "gguf": "blk.9.attn_output.weight",
1350
+ "shape": [
1351
+ 768,
1352
+ 768
1353
+ ],
1354
+ "permuted": false,
1355
+ "heads": 12,
1356
+ "sha256": "fa9e813d4796c861519a930c0bdecc0bb5f0be9d2684cfd89cace90d414049eb"
1357
+ },
1358
+ {
1359
+ "source": "model.layers.9.self_attn.q_proj.weight",
1360
+ "gguf": "blk.9.attn_q.weight",
1361
+ "shape": [
1362
+ 768,
1363
+ 768
1364
+ ],
1365
+ "permuted": true,
1366
+ "heads": 12,
1367
+ "sha256": "5af1259d89cc4536b69df7d70369511c8ef9b4676336a54a5ad47ef39e32cd52"
1368
+ },
1369
+ {
1370
+ "source": "model.layers.9.self_attn.v_proj.weight",
1371
+ "gguf": "blk.9.attn_v.weight",
1372
+ "shape": [
1373
+ 768,
1374
+ 768
1375
+ ],
1376
+ "permuted": false,
1377
+ "heads": 12,
1378
+ "sha256": "731d32d25a6525a22b00477993b070fa71b4c5e19d3daf1ac54535c28542be4f"
1379
+ },
1380
+ {
1381
+ "source": "model.norm.weight",
1382
+ "gguf": "output_norm.weight",
1383
+ "shape": [
1384
+ 768
1385
+ ],
1386
+ "permuted": false,
1387
+ "heads": 12,
1388
+ "sha256": "ce43c8651afdb57af67851891e0807ba6d5bfdcb0b1630aa400f0517f4b6438a"
1389
+ }
1390
+ ],
1391
+ "native_tokenization_used": false,
1392
+ "upstream_layout_reference": "https://github.com/ggml-org/llama.cpp/blob/master/conversion/llama.py"
1393
+ }
provenance/cpu_2c1g.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "scope": "Previously captured production snapshots; no new server probe",
3
+ "host": {
4
+ "vcpus": 2,
5
+ "visible_ram_mib": 887,
6
+ "existing_swap_mib": 1023,
7
+ "gpu": false,
8
+ "os": "Ubuntu 24.04 x86-64"
9
+ },
10
+ "gguf_bytes": 500008288,
11
+ "parameter_bytes": 498883584,
12
+ "initial_process_memory": {
13
+ "VmRSS": "564668 kB",
14
+ "VmHWM": "567868 kB",
15
+ "VmSwap": "80232 kB",
16
+ "Threads": "1",
17
+ "Rss": "564668 kB",
18
+ "Pss": "556316 kB",
19
+ "Private_Clean": "499988 kB",
20
+ "Private_Dirty": "54072 kB",
21
+ "Swap": "80232 kB"
22
+ },
23
+ "later_process_memory_kib": {
24
+ "VmHWM": 598616,
25
+ "VmRSS": 520604,
26
+ "VmSwap": 120408
27
+ },
28
+ "later_cgroup_memory_peak_bytes": 620363776,
29
+ "short_request_observations": [
30
+ {
31
+ "case": "identity",
32
+ "first_delta_seconds": 3.361260175006464,
33
+ "output_tokens": 11,
34
+ "elapsed_seconds": 9.451545831048861,
35
+ "finish_reason": "eos"
36
+ },
37
+ {
38
+ "case": "memory",
39
+ "first_delta_seconds": 0.7546888610813767,
40
+ "output_tokens": 7,
41
+ "elapsed_seconds": 0.9977525309659541,
42
+ "finish_reason": "eos"
43
+ }
44
+ ],
45
+ "near_full_context_observation": {
46
+ "prompt_tokens": 1008,
47
+ "first_delta_seconds": 14.691606600000114,
48
+ "outcome": "stopped",
49
+ "note": "Cancelled request; not a steady-state decode benchmark"
50
+ },
51
+ "kv_main_arrays_bytes": {
52
+ "256": 22020096,
53
+ "512": 44040192,
54
+ "1024": 88080384
55
+ },
56
+ "new_public_startup_context_option": true,
57
+ "production_service_changed": false
58
+ }
provenance/evaluation.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "passed",
3
+ "model_sha256": "3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c",
4
+ "optimizer_updates": 0,
5
+ "candidate_fixed_before_test": true,
6
+ "metrics": {
7
+ "round3_reading_test": {
8
+ "conversations": 650,
9
+ "loss": 0.4398080707022833,
10
+ "perplexity": 1.5524092371019236,
11
+ "tokens": 8386,
12
+ "sources": {
13
+ "squad_answer": {
14
+ "loss": 0.4571292130286717,
15
+ "tokens": 7336
16
+ },
17
+ "squad_missing": {
18
+ "loss": 0.31879102298191614,
19
+ "tokens": 1050
20
+ }
21
+ }
22
+ },
23
+ "round2_dialogue_test": {
24
+ "conversations": 388,
25
+ "loss": 2.1524724243719966,
26
+ "perplexity": 8.606110071061696,
27
+ "tokens": 90855,
28
+ "sources": {
29
+ "ultrachat": {
30
+ "loss": 2.1648425034903878,
31
+ "tokens": 80665
32
+ },
33
+ "everyday": {
34
+ "loss": 2.0545497126855374,
35
+ "tokens": 10190
36
+ }
37
+ }
38
+ }
39
+ },
40
+ "round3_training_validation": {
41
+ "loss": 0.44322897550262036,
42
+ "perplexity": 1.5577289752842636,
43
+ "tokens": 8055,
44
+ "sources": {
45
+ "squad_missing": {
46
+ "loss": 0.3424483358292353,
47
+ "tokens": 1050
48
+ },
49
+ "squad_answer": {
50
+ "loss": 0.45833528123524764,
51
+ "tokens": 7005
52
+ }
53
+ }
54
+ },
55
+ "pretraining_validation_retention": {
56
+ "loss": 3.2829229876806494,
57
+ "perplexity": 26.653566996576266,
58
+ "tokens": 1048576,
59
+ "sources": {
60
+ "wikipedia": {
61
+ "loss": 3.0130124816554216,
62
+ "tokens": 410706
63
+ },
64
+ "gutenberg": {
65
+ "loss": 3.51290655578895,
66
+ "tokens": 147320
67
+ },
68
+ "web_articles": {
69
+ "loss": 3.4582553048037856,
70
+ "tokens": 449795
71
+ },
72
+ "arxiv": {
73
+ "loss": 3.2365258696210586,
74
+ "tokens": 40755
75
+ }
76
+ }
77
+ },
78
+ "note": "Previously recorded results; no Test rerun or Test-based selection during publication preparation"
79
+ }
provenance/native_parity.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "passed",
3
+ "load_seconds": 0.1272835000000896,
4
+ "cases": [
5
+ {
6
+ "id": 0,
7
+ "same_argmax": true,
8
+ "max_absolute_error": 2.1189451217651367e-05,
9
+ "mean_absolute_error": 2.156372602257761e-06
10
+ },
11
+ {
12
+ "id": 1,
13
+ "same_argmax": true,
14
+ "max_absolute_error": 2.09808349609375e-05,
15
+ "mean_absolute_error": 6.85391751176212e-06
16
+ },
17
+ {
18
+ "id": 2,
19
+ "same_argmax": true,
20
+ "max_absolute_error": 1.33514404296875e-05,
21
+ "mean_absolute_error": 3.4589706956467126e-06
22
+ }
23
+ ],
24
+ "generation": {
25
+ "output_tokens": 11,
26
+ "finish_reason": "eos",
27
+ "seconds": 0.28517069999998057,
28
+ "text": "I am Clover, an AI language model."
29
+ },
30
+ "precision": "FP32 weights and FP32 KV",
31
+ "optimizer_updates": 0,
32
+ "note": "Different CPU kernels and NumPy RNG may change sampled outputs; original tokenizer and role token IDs are retained."
33
+ }
provenance/publication_checks.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "passed",
3
+ "scope": "slim training/inference/web publication",
4
+ "public_python_source_allowlist": [
5
+ "deployment/export_f32.py",
6
+ "deployment/native_engine.py",
7
+ "deployment/serve_public.py",
8
+ "inference/generate.py",
9
+ "inference/generate_gguf.py",
10
+ "scripts/lm_common.py",
11
+ "scripts/lm_data.py",
12
+ "scripts/lm_progress.py",
13
+ "scripts/serve_sft_web.py",
14
+ "scripts/sft_common.py",
15
+ "scripts/sft_format.py",
16
+ "scripts/sft_round2_common.py",
17
+ "scripts/sft_round3_common.py",
18
+ "scripts/train_lm.py",
19
+ "scripts/train_sft.py",
20
+ "scripts/train_sft_round2.py",
21
+ "scripts/train_sft_round3.py"
22
+ ],
23
+ "historical_files_byte_identical": 19,
24
+ "web_functions_preserved_by_ast": [
25
+ "APIError",
26
+ "parameters",
27
+ "fit_history",
28
+ "Job",
29
+ "Controller",
30
+ "make_handler"
31
+ ],
32
+ "source_privacy": {
33
+ "raw_data_included": false,
34
+ "processed_data_included": false,
35
+ "collection_cleaning_preparation_source_included": false,
36
+ "tests_included": false,
37
+ "private_deployment_admin_tools_included": false
38
+ },
39
+ "training_config_only_checks": {
40
+ "status": "passed",
41
+ "cases": [
42
+ {
43
+ "entry": "scripts/train_lm.py",
44
+ "configuration_only": true,
45
+ "parameters": 124720896,
46
+ "optimizer_updates": 0
47
+ },
48
+ {
49
+ "entry": "scripts/train_sft.py",
50
+ "configuration_only": true,
51
+ "parameters": 124720896,
52
+ "optimizer_updates": 0
53
+ },
54
+ {
55
+ "entry": "scripts/train_sft_round2.py",
56
+ "configuration_only": true,
57
+ "parameters": 124720896,
58
+ "optimizer_updates": 0
59
+ },
60
+ {
61
+ "entry": "scripts/train_sft_round3.py",
62
+ "configuration_only": true,
63
+ "parameters": 124720896,
64
+ "optimizer_updates": 0
65
+ }
66
+ ],
67
+ "training_data_read": false,
68
+ "weights_loaded": false,
69
+ "optimizer_updates": 0,
70
+ "scope": "Configuration/import closure only; private training receipts/data are not distributed"
71
+ },
72
+ "native_checks": {
73
+ "status": "passed",
74
+ "runtime": "portable GGUF CPU FP32 weights / FP32 KV",
75
+ "cases": [
76
+ {
77
+ "id": 0,
78
+ "same_role_token_ids": true,
79
+ "same_argmax": true,
80
+ "max_absolute_error": 2.1189451217651367e-05
81
+ },
82
+ {
83
+ "id": 1,
84
+ "same_role_token_ids": true,
85
+ "same_argmax": true,
86
+ "max_absolute_error": 2.09808349609375e-05
87
+ },
88
+ {
89
+ "id": 2,
90
+ "same_role_token_ids": true,
91
+ "same_argmax": true,
92
+ "max_absolute_error": 1.33514404296875e-05
93
+ }
94
+ ],
95
+ "http_static_assets": 4,
96
+ "cross_origin_rejected": true,
97
+ "streaming_generation": {
98
+ "text": "I am Clover, an AI language model.",
99
+ "tokens": 11,
100
+ "finish_reason": "eos"
101
+ },
102
+ "versions": {
103
+ "llama_cpp": "0.3.36",
104
+ "numpy": "2.5.4",
105
+ "tokenizers": "0.23.3"
106
+ },
107
+ "torch_imported": false,
108
+ "elapsed_seconds": 0.5309999999999491,
109
+ "optimizer_updates": 0,
110
+ "production_server_contacted": false
111
+ },
112
+ "boundary_checks": {
113
+ "status": "passed",
114
+ "tests_run": 7,
115
+ "failures": 0,
116
+ "errors": 0,
117
+ "tests_distributed": false,
118
+ "startup_context_cli": {
119
+ "context_tokens": 512,
120
+ "threads": 2,
121
+ "state_http_status": 200,
122
+ "effective_ui_default": 512,
123
+ "ui_limits": [
124
+ 256,
125
+ 512
126
+ ]
127
+ },
128
+ "production_server_contacted": false,
129
+ "optimizer_updates": 0
130
+ },
131
+ "hf_torch_acceptance_reused": {
132
+ "reason": "All runtime input/source hashes identical",
133
+ "files_compared": [
134
+ "model.safetensors",
135
+ "config.json",
136
+ "generation_config.json",
137
+ "tokenizer.json",
138
+ "tokenizer_config.json",
139
+ "sft_template.json",
140
+ "assistant_profile.json",
141
+ "generate.py",
142
+ "sft_format.py",
143
+ "requirements-inference.txt"
144
+ ],
145
+ "previous_acceptance_status": "passed",
146
+ "previous_logit_max_error": 0.0
147
+ },
148
+ "python_syntax_files": 19,
149
+ "relative_doc_links": 16,
150
+ "content_checks": {
151
+ "secret_and_private_path_scan": "passed (bounded patterns + allowlist)",
152
+ "weight_scope": [
153
+ "gguf/Clover-125M-v0.1.0-F32.gguf",
154
+ "model.safetensors"
155
+ ],
156
+ "no_data_or_credentials_directories": true
157
+ },
158
+ "model_hashes_unchanged": {
159
+ "safetensors": "3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c",
160
+ "gguf": "c8649696f1a89d73d59ae0ed7b9635ec7ce1b61db86ed5ddc9d3b64eb296da00"
161
+ },
162
+ "raw_files_metadata_unchanged": 4969,
163
+ "protected_weights_unchanged": 5,
164
+ "frozen_training_files_unchanged": 33,
165
+ "cpu_evidence": "Previous captures, anonymized; no new server probe",
166
+ "hf_link": "https://huggingface.co/YOUR_HF_USERNAME/Clover-125M",
167
+ "hf_link_is_placeholder": true,
168
+ "optimizer_updates": 0,
169
+ "test_evaluations_rerun": 0,
170
+ "uploads": 0,
171
+ "production_service_operations": 0,
172
+ "code_license": "pending",
173
+ "model_license": "pending"
174
+ }
provenance/sources.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "scope": "Training-source attribution; not a license grant for code or weights",
3
+ "sft": [
4
+ {
5
+ "repo_id": "HuggingFaceTB/smol-smoltalk",
6
+ "revision": "f73fe857d519ff6ac5af2ea67c4d3834da7b8bcc",
7
+ "upstream_card_license": "Apache-2.0",
8
+ "card_url": "https://huggingface.co/datasets/HuggingFaceTB/smol-smoltalk/blob/f73fe857d519ff6ac5af2ea67c4d3834da7b8bcc/README.md"
9
+ },
10
+ {
11
+ "repo_id": "HuggingFaceTB/everyday-conversations-llama3.1-2k",
12
+ "revision": "14f543216b9ba42b6b951dc5bd199460d193b162",
13
+ "upstream_card_license": "Apache-2.0",
14
+ "card_url": "https://huggingface.co/datasets/HuggingFaceTB/everyday-conversations-llama3.1-2k/blob/14f543216b9ba42b6b951dc5bd199460d193b162/README.md"
15
+ },
16
+ {
17
+ "repo_id": "OpenAssistant/oasst2",
18
+ "revision": "179dd21fc55192153d94adb0e0ce8f69e222bf75",
19
+ "upstream_card_license": "Apache-2.0",
20
+ "card_url": "https://huggingface.co/datasets/OpenAssistant/oasst2/blob/179dd21fc55192153d94adb0e0ce8f69e222bf75/README.md"
21
+ },
22
+ {
23
+ "repo_id": "HuggingFaceH4/ultrachat_200k",
24
+ "revision": "8049631c405ae6576f93f445c6b8166f76f5505a",
25
+ "upstream_card_license": "MIT",
26
+ "card_url": "https://huggingface.co/datasets/HuggingFaceH4/ultrachat_200k/blob/8049631c405ae6576f93f445c6b8166f76f5505a/README.md"
27
+ },
28
+ {
29
+ "repo_id": "rajpurkar/squad_v2",
30
+ "revision": "3ffb306f725f7d2ce8394bc1873b24868140c412",
31
+ "upstream_card_license": "CC-BY-SA-4.0",
32
+ "card_url": "https://huggingface.co/datasets/rajpurkar/squad_v2/blob/3ffb306f725f7d2ce8394bc1873b24868140c412/README.md"
33
+ }
34
+ ],
35
+ "pretraining": [
36
+ "English Wikipedia",
37
+ "Project Gutenberg",
38
+ "web/C4 material",
39
+ "arXiv"
40
+ ],
41
+ "pretraining_rights": "Heterogeneous underlying rights; no blanket corpus license asserted",
42
+ "squad_attribution": "SQuAD 2.0: Rajpurkar et al.; selected and reformatted question/context/answer messages; source card CC-BY-SA-4.0",
43
+ "authored_material": "Project-authored identity/templates; not counted as newly collected human dialogue",
44
+ "raw_or_processed_examples_distributed": false
45
+ }
release.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Clover-125M",
3
+ "display_name": "Clover",
4
+ "version": "0.1.0",
5
+ "channel": "private-review",
6
+ "training_stage": "SFTv3",
7
+ "selected_checkpoint": "final",
8
+ "parameters": 124720896,
9
+ "source_model_sha256": "3fa7af023a29ac684c09f66dc40b80ad695681f43be6fa50759f79bed941c79c",
10
+ "gguf_sha256": "c8649696f1a89d73d59ae0ed7b9635ec7ce1b61db86ed5ddc9d3b64eb296da00",
11
+ "tokenizer_sha256": "43fb4fb8c8eedfef2bc57675c3dd980d505c3cd25126474a2f3269192baa2668",
12
+ "formatter_sha256": "74094a77a5da6a99c43561f73625b17fefdf8d2e63cbe38ae8253ab2b791d834",
13
+ "precision": "FP32",
14
+ "code_license": "pending",
15
+ "model_license": "pending",
16
+ "published": false,
17
+ "code_scope": "training, inference and web deployment only",
18
+ "data_pipeline_released": false,
19
+ "hf_repo_url": "https://huggingface.co/mioqwq/Clover-125M",
20
+ "github_repo_url": "https://github.com/mio-qwq/Clover-125m-demo",
21
+ "repository_urls_are_placeholders": false,
22
+ "hf_visibility": "private",
23
+ "github_visibility": "private",
24
+ "publication_state": "private-model-review",
25
+ "documentation_languages": [
26
+ "zh",
27
+ "en"
28
+ ],
29
+ "model_language": "en"
30
+ }
requirements-inference.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Install Torch separately from the official PyTorch index.
2
+ transformers==5.19.0
3
+ tokenizers==0.23.3
4
+ safetensors==0.8.0
5
+ numpy==2.5.4
sft_format.py ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Shared SFT serialization; no model, optimizer or corpus writes.
2
+
3
+ Headers/content are tokenized as separate segments on purpose. Training and chat
4
+ inference MUST call these helpers so BPE cannot merge across loss-mask boundaries.
5
+ No vocabulary entries are added; only existing EOS id 1 ends assistant turns.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ TEMPLATE_VERSION = 'english_plain_roles_v1'
10
+ EOS_ID = 1
11
+ PAD_ID = 0
12
+ SPECIAL_TEXT = ('<|pad|>', '<|endoftext|>', '<|unk|>', '<|beginoftext|>')
13
+ HEADERS = {'system': 'System:\n', 'user': 'User:\n', 'assistant': 'Assistant:\n'}
14
+ SEPARATOR = '\n\n'
15
+
16
+
17
+ def validate_messages(messages, *, complete=True):
18
+ if not isinstance(messages, list) or not messages:
19
+ raise ValueError('Conversation must be a nonempty message list')
20
+ expected = 'user'
21
+ for index, message in enumerate(messages):
22
+ if not isinstance(message, dict) or set(message) != {'role', 'content'}:
23
+ raise ValueError('Messages require exactly role/content')
24
+ role, content = message['role'], message['content']
25
+ if role not in HEADERS or not isinstance(content, str) or not content.strip():
26
+ raise ValueError('Invalid or empty role/content')
27
+ if any(marker in content for marker in SPECIAL_TEXT):
28
+ raise ValueError('Reserved token text inside message content')
29
+ if role == 'system':
30
+ if index != 0:
31
+ raise ValueError('System message must be first')
32
+ continue
33
+ if role != expected:
34
+ raise ValueError('User and assistant roles must alternate')
35
+ expected = 'assistant' if role == 'user' else 'user'
36
+ if messages[-1]['role'] != ('assistant' if complete else 'user'):
37
+ raise ValueError('Complete conversation must end with assistant; prompt with user')
38
+
39
+
40
+ def _encode(messages, tokenizer, *, prompt=False):
41
+ validate_messages(messages, complete=not prompt)
42
+ ids, mask, text_parts = [], [], []
43
+
44
+ def append(text, supervised):
45
+ tokens = tokenizer.encode(text, add_special_tokens=False).ids
46
+ if any(token in (0, 1, 2, 3) for token in tokens):
47
+ raise ValueError('Unexpected special/unknown token in a text segment')
48
+ ids.extend(tokens)
49
+ mask.extend([int(supervised)]*len(tokens))
50
+ text_parts.append(text)
51
+
52
+ for index, message in enumerate(messages):
53
+ role = message['role']
54
+ append(HEADERS[role], False)
55
+ append(message['content'], role == 'assistant')
56
+ if role == 'assistant':
57
+ ids.append(EOS_ID)
58
+ mask.append(1)
59
+ text_parts.append(SPECIAL_TEXT[1])
60
+ if index < len(messages)-1 or prompt:
61
+ append(SEPARATOR, False)
62
+ if prompt:
63
+ append(HEADERS['assistant'], False)
64
+ return {'input_ids': ids, 'assistant_mask': mask,
65
+ 'assistant_targets': sum(mask[1:]), 'text': ''.join(text_parts)}
66
+
67
+
68
+ def encode_conversation(messages, tokenizer):
69
+ return _encode(messages, tokenizer)
70
+
71
+
72
+ def encode_prompt(messages, tokenizer):
73
+ return _encode(messages, tokenizer, prompt=True)['input_ids']
sft_template.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_version": "english_plain_roles_v1",
3
+ "formatter_sha256": "74094a77a5da6a99c43561f73625b17fefdf8d2e63cbe38ae8253ab2b791d834",
4
+ "role_headers": {
5
+ "system": "System:\n",
6
+ "user": "User:\n",
7
+ "assistant": "Assistant:\n"
8
+ },
9
+ "separator": "\n\n",
10
+ "encoding_policy": "Encode each role header, content and separator as separate segments; append existing EOS after assistant content",
11
+ "assistant_eos_token_id": 1,
12
+ "inference_entrypoint": "scripts/generate_sft.py",
13
+ "generic_chat_template": false,
14
+ "tokenizer_policy": "Unchanged base tokenizer files and vocabulary; use the dedicated segmented chat formatter",
15
+ "tokenizer_files_sha256": {
16
+ "tokenizer.json": "43fb4fb8c8eedfef2bc57675c3dd980d505c3cd25126474a2f3269192baa2668",
17
+ "tokenizer_config.json": "64f8d9ae65aa4ffd518a4730ffcdf6289742f1d5111530a21486f1cc4ec4a1be"
18
+ },
19
+ "model_context_length": 1024,
20
+ "sft_sequence_length": 512
21
+ }
third_party/GGUF.LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Georgi Gerganov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
third_party/llama-cpp-python.LICENSE.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Andrei Betlen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ 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.
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|beginoftext|>",
4
+ "eos_token": "<|endoftext|>",
5
+ "model_max_length": 1024,
6
+ "pad_token": "<|pad|>",
7
+ "tokenizer_class": "TokenizersBackend",
8
+ "unk_token": "<|unk|>"
9
+ }