Instructions to use RESMP-DEV/LFM2.5-Encoder-230M-Code-MXFP4-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use RESMP-DEV/LFM2.5-Encoder-230M-Code-MXFP4-GPTQ with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir LFM2.5-Encoder-230M-Code-MXFP4-GPTQ RESMP-DEV/LFM2.5-Encoder-230M-Code-MXFP4-GPTQ
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Add files using upload-large-folder tool
Browse files- 1_Pooling/config.json +10 -0
- LICENSE +71 -0
- MODIFICATIONS.md +8 -0
- README.md +101 -0
- artifact_manifest.json +107 -0
- benchmarks/jina-code-calibrated-4k.json +187 -0
- benchmarks/lfm25-230m-bf16-4k.json +182 -0
- benchmarks/lfm25-230m-bf16-cuda-4k.json +191 -0
- benchmarks/lfm25-230m-gptq-mxfp4-4k.json +196 -0
- benchmarks/lfm25-230m-gptq-mxfp8-4k.json +196 -0
- benchmarks/lfm25-230m-gptq-mxfp8-vs-bf16-bootstrap.json +11 -0
- benchmarks/lfm25-230m-rtn-mxfp4-4k.json +196 -0
- benchmarks/lfm25-230m-rtn-mxfp8-4k.json +196 -0
- benchmarks/nomic-v1.5-4k.json +181 -0
- chat_template.jinja +64 -0
- config.json +68 -0
- corpus_receipt.json +106 -0
- embedding_config.json +7 -0
- model.safetensors +3 -0
- modeling_lfm2_bidirectional.py +211 -0
- modules.json +14 -0
- quantization_report.json +1264 -0
- source_receipt.json +179 -0
- tokenizer.json +0 -0
- tokenizer_config.json +12 -0
- training_report.json +82 -0
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"word_embedding_dimension": 1024,
|
| 3 |
+
"pooling_mode_cls_token": false,
|
| 4 |
+
"pooling_mode_mean_tokens": true,
|
| 5 |
+
"pooling_mode_max_tokens": false,
|
| 6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
| 7 |
+
"pooling_mode_weightedmean_tokens": false,
|
| 8 |
+
"pooling_mode_lasttoken": false,
|
| 9 |
+
"include_prompt": true
|
| 10 |
+
}
|
LICENSE
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
LFM Open License v1.0
|
| 2 |
+
|
| 3 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 4 |
+
|
| 5 |
+
1. Definitions.
|
| 6 |
+
|
| 7 |
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by this document.
|
| 8 |
+
|
| 9 |
+
"Licensor" shall mean Liquid AI, Inc.
|
| 10 |
+
|
| 11 |
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
| 12 |
+
|
| 13 |
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
| 14 |
+
|
| 15 |
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
| 16 |
+
|
| 17 |
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
| 18 |
+
|
| 19 |
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
|
| 20 |
+
|
| 21 |
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
| 22 |
+
|
| 23 |
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
| 24 |
+
|
| 25 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
| 26 |
+
|
| 27 |
+
"Commercial Use" shall mean any use of the Work for direct or indirect commercial advantage or monetary compensation.
|
| 28 |
+
|
| 29 |
+
"Qualified Non-Profit Organization" shall mean a Legal Entity that is organized and operated exclusively for religious, charitable, scientific, testing for public safety, literary, or educational purposes, and which is exempt from federal income tax under Section 501(c)(3) of the United States Internal Revenue Code of 1986, as amended, or any equivalent non-profit or charitable organization in a foreign jurisdiction.
|
| 30 |
+
|
| 31 |
+
"Non-Commercial or Research Purposes" shall mean purposes that do not involve any use of the Work or a Derivative Work for Commercial Use.
|
| 32 |
+
|
| 33 |
+
"Threshold" shall mean annual revenue of 10 million United States dollars ($10,000,000) or more.
|
| 34 |
+
|
| 35 |
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
| 36 |
+
|
| 37 |
+
3. Grant of Patent License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
| 38 |
+
|
| 39 |
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
| 40 |
+
|
| 41 |
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
| 42 |
+
|
| 43 |
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
| 44 |
+
|
| 45 |
+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
| 46 |
+
|
| 47 |
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
| 48 |
+
|
| 49 |
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
| 50 |
+
|
| 51 |
+
5. Commercial Use Limitation.
|
| 52 |
+
|
| 53 |
+
(a) The rights granted under this License for Commercial Use are conditioned upon You or Your Legal Entity not exceeding the Threshold.
|
| 54 |
+
|
| 55 |
+
(b) Any Commercial Use of the Work or a Derivative Work by a Legal Entity that exceeds the Threshold is not licensed under this Agreement.
|
| 56 |
+
|
| 57 |
+
(c) The Threshold shall not apply to a Qualified Non-Profit Organization's use of the Work or a Derivative Work for Non-Commercial or Research Purposes.
|
| 58 |
+
|
| 59 |
+
6. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
| 60 |
+
|
| 61 |
+
7. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except for the reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
| 62 |
+
|
| 63 |
+
8. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
| 64 |
+
|
| 65 |
+
9. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
| 66 |
+
|
| 67 |
+
10. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
| 68 |
+
|
| 69 |
+
11. Termination. This License will terminate automatically and immediately if You fail to comply with any of its terms and conditions. Upon termination, You must cease all use of the Work and any Derivative Works and delete all copies in Your possession.
|
| 70 |
+
|
| 71 |
+
END OF TERMS AND CONDITIONS
|
MODIFICATIONS.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Modifications by RESMP.DEV
|
| 2 |
+
|
| 3 |
+
This is a derivative of the identified LiquidAI LFM2.5 Encoder checkpoint, not an
|
| 4 |
+
official LiquidAI release. RESMP.DEV removed the masked-language-model head and
|
| 5 |
+
contrastively fine-tuned the complete encoder body for code retrieval using the procedure
|
| 6 |
+
and corpus hashes in `training_report.json`. The resulting weights are stored in BF16.
|
| 7 |
+
|
| 8 |
+
RESMP.DEV activation-calibrated the BF16 weights with block-GPTQ and packed eligible linear layers as native group-32 MLX MXFP4. Exact settings and hashes are recorded in `quantization_report.json`.
|
README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: lfm1.0
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
base_model: LiquidAI/LFM2.5-Encoder-230M
|
| 6 |
+
pipeline_tag: feature-extraction
|
| 7 |
+
library_name: mlx
|
| 8 |
+
tags:
|
| 9 |
+
- code
|
| 10 |
+
- embeddings
|
| 11 |
+
- feature-extraction
|
| 12 |
+
- mlx
|
| 13 |
+
- mxfp4
|
| 14 |
+
- gptq
|
| 15 |
+
- quantized
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# LFM2.5 Encoder 230M Code MXFP4-GPTQ
|
| 19 |
+
|
| 20 |
+
This is a modified RESMP.DEV research release derived from
|
| 21 |
+
[`LiquidAI/LFM2.5-Encoder-230M`](https://huggingface.co/LiquidAI/LFM2.5-Encoder-230M) at revision `0b649ad0c684378b03d4d8304f7577a662ab89bc`. It is
|
| 22 |
+
not an official Liquid AI release. We removed the masked-language-model head and
|
| 23 |
+
contrastively fine-tuned the full bidirectional encoder for multilingual code retrieval.
|
| 24 |
+
|
| 25 |
+
## Quantization finding
|
| 26 |
+
|
| 27 |
+
This is a research artifact, not an automatic recommendation to replace the BF16 model.
|
| 28 |
+
Activation calibration is compared with matched native round-to-nearest quantization and
|
| 29 |
+
the complete machine-readable receipts are included so mobile and Apple-Silicon users
|
| 30 |
+
can evaluate the size, latency, memory, and quality tradeoff themselves.
|
| 31 |
+
|
| 32 |
+
## Held-out retrieval results
|
| 33 |
+
|
| 34 |
+
All rows use the same untouched 6,995-pair multilingual test set, 1,200-character query
|
| 35 |
+
and 4,000-character passage caps, query token cap 512, and passage token cap 2,048.
|
| 36 |
+
Higher is better. RTN is a matched quantization control; Nomic and Jina are external
|
| 37 |
+
service baselines, not architecture-matched controls.
|
| 38 |
+
|
| 39 |
+
| Model | MRR | R@1 | R@5 | R@10 | NDCG@10 | Python MRR | TypeScript MRR | Artifact |
|
| 40 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 41 |
+
| LFM2.5 230M BF16 | 0.3960 | 0.3212 | 0.4756 | 0.5375 | 0.4235 | 0.8360 | 0.2527 | 464.2 MB |
|
| 42 |
+
| LFM2.5 230M calibrated MXFP4 | 0.2110 | 0.1620 | 0.2572 | 0.3029 | 0.2262 | 0.7113 | 0.0693 | 225.5 MB |
|
| 43 |
+
| LFM2.5 230M RTN MXFP4 | 0.0806 | 0.0609 | 0.0931 | 0.1139 | 0.0844 | 0.4435 | 0.0191 | 225.4 MB |
|
| 44 |
+
| LFM2.5 230M calibrated MXFP8 | 0.3934 | 0.3197 | 0.4715 | 0.5342 | 0.4207 | 0.8394 | 0.2447 | 306.8 MB |
|
| 45 |
+
| LFM2.5 230M RTN MXFP8 | 0.3878 | 0.3162 | 0.4622 | 0.5245 | 0.4139 | 0.8322 | 0.2459 | 306.7 MB |
|
| 46 |
+
| Nomic v1.5 service | 0.5439 | 0.4968 | 0.5954 | 0.6236 | 0.5595 | 0.9289 | 0.3617 | service |
|
| 47 |
+
| Jina calibrated MXFP4 | 0.6645 | 0.6133 | 0.7221 | 0.7571 | 0.6832 | 0.9462 | 0.5057 | 1167.7 MB |
|
| 48 |
+
|
| 49 |
+
A separate BF16 cross-runtime run on `NVIDIA GeForce RTX 3090 Ti` with PyTorch `2.13.0+cu130` produced MRR 0.3963, 755.7 queries/s, 190.8 passages/s, and 736.2 MB peak CUDA allocation. CUDA throughput is reported separately and is not compared directly with Metal.
|
| 50 |
+
|
| 51 |
+
A paired 10,000-sample bootstrap estimates calibrated MXFP8 minus BF16 MRR at -0.0026, with a 95% interval of [-0.0042, -0.0010]. A point estimate whose interval crosses zero is not presented as a
|
| 52 |
+
quality win.
|
| 53 |
+
|
| 54 |
+
## Usage
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
git clone https://github.com/RESMP-DEV/calibrated-code-embeddings
|
| 58 |
+
cd calibrated-code-embeddings
|
| 59 |
+
uv sync --extra mlx
|
| 60 |
+
CODE_EMBEDDING_MODEL_PATH=/path/to/this-model code-embedding-serve --port 1235
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
The service exposes `POST /v1/embeddings`. It runs the bidirectional LFM2.5 body
|
| 64 |
+
directly with MLX; LM Studio is not required. Prefix retrieval queries with `query: `
|
| 65 |
+
and candidate code with `passage: ` when calling the model directly.
|
| 66 |
+
|
| 67 |
+
## Training and data receipts
|
| 68 |
+
|
| 69 |
+
Full-backbone symmetric in-batch InfoNCE training used 24,626 language-balanced pairs,
|
| 70 |
+
two epochs, batch size 32, learning rate 2e-5, temperature 0.05, and seed 17. The
|
| 71 |
+
training report records the NVIDIA RTX A6000 runtime and validation history.
|
| 72 |
+
|
| 73 |
+
- `train`: 42,626 rows, SHA-256 `426ebfaad34b14d7627ba6e668ae36e08e548c9d057b0edc208bcfa6fe527629`
|
| 74 |
+
- `validation`: 5,319 rows, SHA-256 `9ac88b3138de4ca94c2ef3a87ccf19381fc76265c2bc9d65b4791983d0315096`
|
| 75 |
+
- `test`: 6,995 rows, SHA-256 `9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315`
|
| 76 |
+
- `calibration`: 4,096 rows, SHA-256 `ee9edaf80a6854c18053b96521090a51bdb76642abeb98618d7aed36e70b6de9`
|
| 77 |
+
|
| 78 |
+
The corpus combines pinned CodeSearchNet data with pinned permissively licensed code
|
| 79 |
+
repositories. Exact and token 8-gram near-duplicates were removed with test-before-
|
| 80 |
+
validation-before-train precedence. See `corpus_receipt.json`, `source_receipt.json`,
|
| 81 |
+
`training_report.json`, `quantization_report.json` when present, `benchmarks/`, and
|
| 82 |
+
`artifact_manifest.json` for machine-readable evidence.
|
| 83 |
+
|
| 84 |
+
## License and attribution
|
| 85 |
+
|
| 86 |
+
The weights retain the LFM Open License v1.0 in `LICENSE`, including its attribution and
|
| 87 |
+
commercial-use conditions. `MODIFICATIONS.md` identifies RESMP.DEV's changes. The
|
| 88 |
+
[training and quantization workbench](https://github.com/RESMP-DEV/calibrated-code-embeddings)
|
| 89 |
+
is separately MIT licensed.
|
| 90 |
+
|
| 91 |
+
## Citation
|
| 92 |
+
|
| 93 |
+
```bibtex
|
| 94 |
+
@article{liquidAI2026Encoders,
|
| 95 |
+
author = {Liquid AI},
|
| 96 |
+
title = {LFM2.5-Encoders: Fast at Long Context, Even on CPU},
|
| 97 |
+
journal = {Liquid AI Blog},
|
| 98 |
+
year = {2026},
|
| 99 |
+
note = {www.liquid.ai/blog/lfm2-5-encoders},
|
| 100 |
+
}
|
| 101 |
+
```
|
artifact_manifest.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact": "LFM2.5-Encoder-230M-Code-MXFP4-GPTQ",
|
| 3 |
+
"files": {
|
| 4 |
+
"1_Pooling/config.json": {
|
| 5 |
+
"bytes": 298,
|
| 6 |
+
"sha256": "39843b49282a69b60b0ce46529f6cb744d2905b2ab9baf3e244251dc0c61fb80"
|
| 7 |
+
},
|
| 8 |
+
"LICENSE": {
|
| 9 |
+
"bytes": 10574,
|
| 10 |
+
"sha256": "4d28ca14dedc0b3d0fcc2b3339f0e79931faa33874f3d24f522183a8fc70068c"
|
| 11 |
+
},
|
| 12 |
+
"MODIFICATIONS.md": {
|
| 13 |
+
"bytes": 569,
|
| 14 |
+
"sha256": "a9ddf6b09046c0a058e29f51a2cf4f38271eee95a90c9c8f82a690db8a43b92d"
|
| 15 |
+
},
|
| 16 |
+
"README.md": {
|
| 17 |
+
"bytes": 4775,
|
| 18 |
+
"sha256": "8402b18f1426c7de6e90dee68c9bc60359291b505755fc9b5f57f0cb28edcfc3"
|
| 19 |
+
},
|
| 20 |
+
"benchmarks/jina-code-calibrated-4k.json": {
|
| 21 |
+
"bytes": 5151,
|
| 22 |
+
"sha256": "decef25c22fdf3ff1d2c735cb93dff31dc672543c0c76e1ae601d0c5fbd35a05"
|
| 23 |
+
},
|
| 24 |
+
"benchmarks/lfm25-230m-bf16-4k.json": {
|
| 25 |
+
"bytes": 5034,
|
| 26 |
+
"sha256": "400d3bb6a4bcae6c04dcb754917bd7b4e052b6a325ef1fd7f2c52a5e3115675b"
|
| 27 |
+
},
|
| 28 |
+
"benchmarks/lfm25-230m-bf16-cuda-4k.json": {
|
| 29 |
+
"bytes": 5155,
|
| 30 |
+
"sha256": "301612ba884bb0f95aa4f0a1776f1808a4806ed830eacb6ee9507df19bc62a9b"
|
| 31 |
+
},
|
| 32 |
+
"benchmarks/lfm25-230m-gptq-mxfp4-4k.json": {
|
| 33 |
+
"bytes": 5512,
|
| 34 |
+
"sha256": "0ea4e41d460da34900a65313eb1333a02a0d61fc2f408a69964d7e1e9d028a45"
|
| 35 |
+
},
|
| 36 |
+
"benchmarks/lfm25-230m-gptq-mxfp8-4k.json": {
|
| 37 |
+
"bytes": 5561,
|
| 38 |
+
"sha256": "d62f44c1a8514dccf749630b9b4ba2da240588c2eae6af93b1816003a29e025d"
|
| 39 |
+
},
|
| 40 |
+
"benchmarks/lfm25-230m-gptq-mxfp8-vs-bf16-bootstrap.json": {
|
| 41 |
+
"bytes": 335,
|
| 42 |
+
"sha256": "621a083593be9ac5a0c96d31ecd27d4e8f8143b83a4278f97be823e068c8d422"
|
| 43 |
+
},
|
| 44 |
+
"benchmarks/lfm25-230m-rtn-mxfp4-4k.json": {
|
| 45 |
+
"bytes": 5588,
|
| 46 |
+
"sha256": "c1156e3d9e081b56e9122072990a22cdbb2aa44962c08d095d2da0cc89506e6b"
|
| 47 |
+
},
|
| 48 |
+
"benchmarks/lfm25-230m-rtn-mxfp8-4k.json": {
|
| 49 |
+
"bytes": 5508,
|
| 50 |
+
"sha256": "87e07135f50b78c9f6be27d5d64ddae6b284264207e38434a8b288ee6b45f83a"
|
| 51 |
+
},
|
| 52 |
+
"benchmarks/nomic-v1.5-4k.json": {
|
| 53 |
+
"bytes": 4982,
|
| 54 |
+
"sha256": "3fde4066b3959e2a5753129128b954968fe231fe095a8b0b62ceea54b73e31cc"
|
| 55 |
+
},
|
| 56 |
+
"chat_template.jinja": {
|
| 57 |
+
"bytes": 2553,
|
| 58 |
+
"sha256": "013eed60546434b6967e3483153d8c5c37abcb1d667f8b1f914683f2a9411531"
|
| 59 |
+
},
|
| 60 |
+
"config.json": {
|
| 61 |
+
"bytes": 1586,
|
| 62 |
+
"sha256": "341f7adfd5a2fa09c7c133bc672dab7960e2babf8385f848294c4ec95f422868"
|
| 63 |
+
},
|
| 64 |
+
"corpus_receipt.json": {
|
| 65 |
+
"bytes": 3603,
|
| 66 |
+
"sha256": "df09633105fa5c5e185e6b1edf0833d717f1a9f447ac8bfb59096ff5fca9e830"
|
| 67 |
+
},
|
| 68 |
+
"embedding_config.json": {
|
| 69 |
+
"bytes": 144,
|
| 70 |
+
"sha256": "0dca688cc9361b756defad37abe42878dcfddfe3eefc5be81e38f4e4d0d320b9"
|
| 71 |
+
},
|
| 72 |
+
"model.safetensors": {
|
| 73 |
+
"bytes": 220693600,
|
| 74 |
+
"sha256": "c3c6540a9580560630ec5a5179c71872c16eff32f633e234114df814cb3a3a94"
|
| 75 |
+
},
|
| 76 |
+
"modeling_lfm2_bidirectional.py": {
|
| 77 |
+
"bytes": 7093,
|
| 78 |
+
"sha256": "f171f518be2a07da48b17fdea5655cad0a2452ab548e90e8ae903143686647e2"
|
| 79 |
+
},
|
| 80 |
+
"modules.json": {
|
| 81 |
+
"bytes": 230,
|
| 82 |
+
"sha256": "0580fad756940809b1bc064ce1e7c1275c8b0dd80869562fe0abeb6f7059cb97"
|
| 83 |
+
},
|
| 84 |
+
"quantization_report.json": {
|
| 85 |
+
"bytes": 37017,
|
| 86 |
+
"sha256": "66624dd504280135dcf4da0852299aacebb879eaf54bb1998046e077e0a4100e"
|
| 87 |
+
},
|
| 88 |
+
"source_receipt.json": {
|
| 89 |
+
"bytes": 5585,
|
| 90 |
+
"sha256": "0da314cd3a3f7b83aa59511ece0b91869955e45f8a33f579670845dc0ea14371"
|
| 91 |
+
},
|
| 92 |
+
"tokenizer.json": {
|
| 93 |
+
"bytes": 4733626,
|
| 94 |
+
"sha256": "266c9cd45ef2e588c298bc9d63d2fed769aa8e733eebedc7431e247354e41e39"
|
| 95 |
+
},
|
| 96 |
+
"tokenizer_config.json": {
|
| 97 |
+
"bytes": 334,
|
| 98 |
+
"sha256": "329ecab66a644be3996013ff4782a293c773f2738bef01851d3d78a01be75a4d"
|
| 99 |
+
},
|
| 100 |
+
"training_report.json": {
|
| 101 |
+
"bytes": 2290,
|
| 102 |
+
"sha256": "a6253b4cea2107b2c300c8fd020d122f275745c6be15bd099f9c77101ee62d2d"
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
"schema_version": 1,
|
| 106 |
+
"total_bytes": 225546703
|
| 107 |
+
}
|
benchmarks/jina-code-calibrated-4k.json
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_bytes": 1167680422,
|
| 3 |
+
"corpus": "/Users/kearm/datasets/calibrated-code-embeddings/corpus-v2/test.jsonl",
|
| 4 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 5 |
+
"input_limits": {
|
| 6 |
+
"max_passage_chars": 4000,
|
| 7 |
+
"max_query_chars": 1200,
|
| 8 |
+
"passage_tokens": 2048,
|
| 9 |
+
"query_tokens": 512
|
| 10 |
+
},
|
| 11 |
+
"language_counts": {
|
| 12 |
+
"c": 95,
|
| 13 |
+
"cpp": 750,
|
| 14 |
+
"cuda": 1,
|
| 15 |
+
"go": 750,
|
| 16 |
+
"java": 750,
|
| 17 |
+
"javascript": 750,
|
| 18 |
+
"php": 750,
|
| 19 |
+
"python": 750,
|
| 20 |
+
"ruby": 750,
|
| 21 |
+
"rust": 750,
|
| 22 |
+
"shell": 6,
|
| 23 |
+
"swift": 1,
|
| 24 |
+
"toml": 129,
|
| 25 |
+
"typescript": 750,
|
| 26 |
+
"yaml": 13
|
| 27 |
+
},
|
| 28 |
+
"mlx_peak_memory_bytes": 2240834788,
|
| 29 |
+
"model_path": "/Users/kearm/AlphaHENG/contrib/jina-code-mlx/artifacts/jina-code-embeddings-1.5b-block-gptq-mxfp4-32k",
|
| 30 |
+
"passage_seconds": 911.0980732080061,
|
| 31 |
+
"passages_per_second": 7.6775488892983565,
|
| 32 |
+
"quantization": {
|
| 33 |
+
"algorithm": "activation_calibrated_block_gptq",
|
| 34 |
+
"bits": 4,
|
| 35 |
+
"group_size": 32,
|
| 36 |
+
"mode": "mxfp4"
|
| 37 |
+
},
|
| 38 |
+
"queries_per_second": 105.21865375394287,
|
| 39 |
+
"query_seconds": 66.48060729191639,
|
| 40 |
+
"samples": 6995,
|
| 41 |
+
"schema_version": 1,
|
| 42 |
+
"slices": {
|
| 43 |
+
"all": {
|
| 44 |
+
"mean_rank": 103.54639027877055,
|
| 45 |
+
"mrr": 0.6645307132129207,
|
| 46 |
+
"ndcg_at_10": 0.6832195198595511,
|
| 47 |
+
"recall_at_1": 0.6132952108649035,
|
| 48 |
+
"recall_at_10": 0.7571122230164403,
|
| 49 |
+
"recall_at_5": 0.7220872051465332
|
| 50 |
+
},
|
| 51 |
+
"c": {
|
| 52 |
+
"mean_rank": 10.536842105263158,
|
| 53 |
+
"mrr": 0.3892350185776422,
|
| 54 |
+
"ndcg_at_10": 0.4356184122309751,
|
| 55 |
+
"recall_at_1": 0.25263157894736843,
|
| 56 |
+
"recall_at_10": 0.6421052631578947,
|
| 57 |
+
"recall_at_5": 0.5052631578947369,
|
| 58 |
+
"samples": 95
|
| 59 |
+
},
|
| 60 |
+
"cpp": {
|
| 61 |
+
"mean_rank": 152.416,
|
| 62 |
+
"mrr": 0.15427718580417377,
|
| 63 |
+
"ndcg_at_10": 0.16714531254791365,
|
| 64 |
+
"recall_at_1": 0.09866666666666667,
|
| 65 |
+
"recall_at_10": 0.252,
|
| 66 |
+
"recall_at_5": 0.19866666666666666,
|
| 67 |
+
"samples": 750
|
| 68 |
+
},
|
| 69 |
+
"cuda": {
|
| 70 |
+
"mean_rank": 1.0,
|
| 71 |
+
"mrr": 1.0,
|
| 72 |
+
"ndcg_at_10": 1.0,
|
| 73 |
+
"recall_at_1": 1.0,
|
| 74 |
+
"recall_at_10": 1.0,
|
| 75 |
+
"recall_at_5": 1.0,
|
| 76 |
+
"samples": 1
|
| 77 |
+
},
|
| 78 |
+
"go": {
|
| 79 |
+
"mean_rank": 4.412,
|
| 80 |
+
"mrr": 0.8582833049575193,
|
| 81 |
+
"ndcg_at_10": 0.8651855424934813,
|
| 82 |
+
"recall_at_1": 0.8306666666666667,
|
| 83 |
+
"recall_at_10": 0.9,
|
| 84 |
+
"recall_at_5": 0.8826666666666667,
|
| 85 |
+
"samples": 750
|
| 86 |
+
},
|
| 87 |
+
"java": {
|
| 88 |
+
"mean_rank": 16.785333333333334,
|
| 89 |
+
"mrr": 0.66186456149203,
|
| 90 |
+
"ndcg_at_10": 0.691268227161557,
|
| 91 |
+
"recall_at_1": 0.5893333333333334,
|
| 92 |
+
"recall_at_10": 0.808,
|
| 93 |
+
"recall_at_5": 0.752,
|
| 94 |
+
"samples": 750
|
| 95 |
+
},
|
| 96 |
+
"javascript": {
|
| 97 |
+
"mean_rank": 27.624,
|
| 98 |
+
"mrr": 0.6826498449161382,
|
| 99 |
+
"ndcg_at_10": 0.7014276716148345,
|
| 100 |
+
"recall_at_1": 0.6213333333333333,
|
| 101 |
+
"recall_at_10": 0.776,
|
| 102 |
+
"recall_at_5": 0.7493333333333333,
|
| 103 |
+
"samples": 750
|
| 104 |
+
},
|
| 105 |
+
"php": {
|
| 106 |
+
"mean_rank": 1.268,
|
| 107 |
+
"mrr": 0.9669247234247235,
|
| 108 |
+
"ndcg_at_10": 0.9735119733985235,
|
| 109 |
+
"recall_at_1": 0.9493333333333334,
|
| 110 |
+
"recall_at_10": 0.9946666666666667,
|
| 111 |
+
"recall_at_5": 0.988,
|
| 112 |
+
"samples": 750
|
| 113 |
+
},
|
| 114 |
+
"python": {
|
| 115 |
+
"mean_rank": 4.644,
|
| 116 |
+
"mrr": 0.9461748374111352,
|
| 117 |
+
"ndcg_at_10": 0.9538578205814637,
|
| 118 |
+
"recall_at_1": 0.928,
|
| 119 |
+
"recall_at_10": 0.9786666666666667,
|
| 120 |
+
"recall_at_5": 0.9746666666666667,
|
| 121 |
+
"samples": 750
|
| 122 |
+
},
|
| 123 |
+
"ruby": {
|
| 124 |
+
"mean_rank": 7.512,
|
| 125 |
+
"mrr": 0.9067472399844737,
|
| 126 |
+
"ndcg_at_10": 0.9196154278222062,
|
| 127 |
+
"recall_at_1": 0.8693333333333333,
|
| 128 |
+
"recall_at_10": 0.9613333333333334,
|
| 129 |
+
"recall_at_5": 0.9493333333333334,
|
| 130 |
+
"samples": 750
|
| 131 |
+
},
|
| 132 |
+
"rust": {
|
| 133 |
+
"mean_rank": 37.792,
|
| 134 |
+
"mrr": 0.6631819513078547,
|
| 135 |
+
"ndcg_at_10": 0.6858336492369697,
|
| 136 |
+
"recall_at_1": 0.5946666666666667,
|
| 137 |
+
"recall_at_10": 0.7733333333333333,
|
| 138 |
+
"recall_at_5": 0.744,
|
| 139 |
+
"samples": 750
|
| 140 |
+
},
|
| 141 |
+
"shell": {
|
| 142 |
+
"mean_rank": 1.1666666666666667,
|
| 143 |
+
"mrr": 0.9166666666666666,
|
| 144 |
+
"ndcg_at_10": 0.9384882922619097,
|
| 145 |
+
"recall_at_1": 0.8333333333333334,
|
| 146 |
+
"recall_at_10": 1.0,
|
| 147 |
+
"recall_at_5": 1.0,
|
| 148 |
+
"samples": 6
|
| 149 |
+
},
|
| 150 |
+
"swift": {
|
| 151 |
+
"mean_rank": 1.0,
|
| 152 |
+
"mrr": 1.0,
|
| 153 |
+
"ndcg_at_10": 1.0,
|
| 154 |
+
"recall_at_1": 1.0,
|
| 155 |
+
"recall_at_10": 1.0,
|
| 156 |
+
"recall_at_5": 1.0,
|
| 157 |
+
"samples": 1
|
| 158 |
+
},
|
| 159 |
+
"toml": {
|
| 160 |
+
"mean_rank": 50.58914728682171,
|
| 161 |
+
"mrr": 0.08224830770599856,
|
| 162 |
+
"ndcg_at_10": 0.08961173144962573,
|
| 163 |
+
"recall_at_1": 0.023255813953488372,
|
| 164 |
+
"recall_at_10": 0.17829457364341086,
|
| 165 |
+
"recall_at_5": 0.10852713178294573,
|
| 166 |
+
"samples": 129
|
| 167 |
+
},
|
| 168 |
+
"typescript": {
|
| 169 |
+
"mean_rank": 72.01733333333334,
|
| 170 |
+
"mrr": 0.505671283186395,
|
| 171 |
+
"ndcg_at_10": 0.5357110087200713,
|
| 172 |
+
"recall_at_1": 0.428,
|
| 173 |
+
"recall_at_10": 0.6533333333333333,
|
| 174 |
+
"recall_at_5": 0.592,
|
| 175 |
+
"samples": 750
|
| 176 |
+
},
|
| 177 |
+
"yaml": {
|
| 178 |
+
"mean_rank": 4.384615384615385,
|
| 179 |
+
"mrr": 0.4211871461871462,
|
| 180 |
+
"ndcg_at_10": 0.5338924197527659,
|
| 181 |
+
"recall_at_1": 0.23076923076923078,
|
| 182 |
+
"recall_at_10": 0.9230769230769231,
|
| 183 |
+
"recall_at_5": 0.6153846153846154,
|
| 184 |
+
"samples": 13
|
| 185 |
+
}
|
| 186 |
+
}
|
| 187 |
+
}
|
benchmarks/lfm25-230m-bf16-4k.json
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_bytes": 464159282,
|
| 3 |
+
"corpus": "/Users/kearm/datasets/calibrated-code-embeddings/corpus-v2/test.jsonl",
|
| 4 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 5 |
+
"input_limits": {
|
| 6 |
+
"max_passage_chars": 4000,
|
| 7 |
+
"max_query_chars": 1200,
|
| 8 |
+
"passage_tokens": 2048,
|
| 9 |
+
"query_tokens": 512
|
| 10 |
+
},
|
| 11 |
+
"language_counts": {
|
| 12 |
+
"c": 95,
|
| 13 |
+
"cpp": 750,
|
| 14 |
+
"cuda": 1,
|
| 15 |
+
"go": 750,
|
| 16 |
+
"java": 750,
|
| 17 |
+
"javascript": 750,
|
| 18 |
+
"php": 750,
|
| 19 |
+
"python": 750,
|
| 20 |
+
"ruby": 750,
|
| 21 |
+
"rust": 750,
|
| 22 |
+
"shell": 6,
|
| 23 |
+
"swift": 1,
|
| 24 |
+
"toml": 129,
|
| 25 |
+
"typescript": 750,
|
| 26 |
+
"yaml": 13
|
| 27 |
+
},
|
| 28 |
+
"mlx_peak_memory_bytes": 1410661986,
|
| 29 |
+
"model_path": "artifacts/LFM2.5-Encoder-230M-Code-BF16",
|
| 30 |
+
"passage_seconds": 271.1142002919223,
|
| 31 |
+
"passages_per_second": 25.800935518936786,
|
| 32 |
+
"quantization": "bf16",
|
| 33 |
+
"queries_per_second": 361.96893716199827,
|
| 34 |
+
"query_seconds": 19.324862665962428,
|
| 35 |
+
"samples": 6995,
|
| 36 |
+
"schema_version": 1,
|
| 37 |
+
"slices": {
|
| 38 |
+
"all": {
|
| 39 |
+
"mean_rank": 314.9765546819157,
|
| 40 |
+
"mrr": 0.39598055159047874,
|
| 41 |
+
"ndcg_at_10": 0.4234753226292455,
|
| 42 |
+
"recall_at_1": 0.32122944960686206,
|
| 43 |
+
"recall_at_10": 0.5375268048606148,
|
| 44 |
+
"recall_at_5": 0.4756254467476769
|
| 45 |
+
},
|
| 46 |
+
"c": {
|
| 47 |
+
"mean_rank": 13.2,
|
| 48 |
+
"mrr": 0.27127259362683326,
|
| 49 |
+
"ndcg_at_10": 0.31489596446779305,
|
| 50 |
+
"recall_at_1": 0.12631578947368421,
|
| 51 |
+
"recall_at_10": 0.5368421052631579,
|
| 52 |
+
"recall_at_5": 0.37894736842105264,
|
| 53 |
+
"samples": 95
|
| 54 |
+
},
|
| 55 |
+
"cpp": {
|
| 56 |
+
"mean_rank": 225.38266666666667,
|
| 57 |
+
"mrr": 0.08604463882815502,
|
| 58 |
+
"ndcg_at_10": 0.09148357992239335,
|
| 59 |
+
"recall_at_1": 0.050666666666666665,
|
| 60 |
+
"recall_at_10": 0.14266666666666666,
|
| 61 |
+
"recall_at_5": 0.11066666666666666,
|
| 62 |
+
"samples": 750
|
| 63 |
+
},
|
| 64 |
+
"cuda": {
|
| 65 |
+
"mean_rank": 1.0,
|
| 66 |
+
"mrr": 1.0,
|
| 67 |
+
"ndcg_at_10": 1.0,
|
| 68 |
+
"recall_at_1": 1.0,
|
| 69 |
+
"recall_at_10": 1.0,
|
| 70 |
+
"recall_at_5": 1.0,
|
| 71 |
+
"samples": 1
|
| 72 |
+
},
|
| 73 |
+
"go": {
|
| 74 |
+
"mean_rank": 12.889333333333333,
|
| 75 |
+
"mrr": 0.6583533907742375,
|
| 76 |
+
"ndcg_at_10": 0.6879186551747272,
|
| 77 |
+
"recall_at_1": 0.5706666666666667,
|
| 78 |
+
"recall_at_10": 0.7986666666666666,
|
| 79 |
+
"recall_at_5": 0.7573333333333333,
|
| 80 |
+
"samples": 750
|
| 81 |
+
},
|
| 82 |
+
"java": {
|
| 83 |
+
"mean_rank": 33.752,
|
| 84 |
+
"mrr": 0.4596354857845634,
|
| 85 |
+
"ndcg_at_10": 0.5029461493746858,
|
| 86 |
+
"recall_at_1": 0.352,
|
| 87 |
+
"recall_at_10": 0.6733333333333333,
|
| 88 |
+
"recall_at_5": 0.5786666666666667,
|
| 89 |
+
"samples": 750
|
| 90 |
+
},
|
| 91 |
+
"javascript": {
|
| 92 |
+
"mean_rank": 61.00266666666667,
|
| 93 |
+
"mrr": 0.4204841433840473,
|
| 94 |
+
"ndcg_at_10": 0.45503489086380006,
|
| 95 |
+
"recall_at_1": 0.33466666666666667,
|
| 96 |
+
"recall_at_10": 0.596,
|
| 97 |
+
"recall_at_5": 0.516,
|
| 98 |
+
"samples": 750
|
| 99 |
+
},
|
| 100 |
+
"php": {
|
| 101 |
+
"mean_rank": 14.898666666666667,
|
| 102 |
+
"mrr": 0.684684789217518,
|
| 103 |
+
"ndcg_at_10": 0.7201693391468748,
|
| 104 |
+
"recall_at_1": 0.6,
|
| 105 |
+
"recall_at_10": 0.8493333333333334,
|
| 106 |
+
"recall_at_5": 0.7853333333333333,
|
| 107 |
+
"samples": 750
|
| 108 |
+
},
|
| 109 |
+
"python": {
|
| 110 |
+
"mean_rank": 9.902666666666667,
|
| 111 |
+
"mrr": 0.8360201718005046,
|
| 112 |
+
"ndcg_at_10": 0.8508192256574992,
|
| 113 |
+
"recall_at_1": 0.796,
|
| 114 |
+
"recall_at_10": 0.9066666666666666,
|
| 115 |
+
"recall_at_5": 0.8813333333333333,
|
| 116 |
+
"samples": 750
|
| 117 |
+
},
|
| 118 |
+
"ruby": {
|
| 119 |
+
"mean_rank": 21.604,
|
| 120 |
+
"mrr": 0.6108544028135342,
|
| 121 |
+
"ndcg_at_10": 0.6486016939943591,
|
| 122 |
+
"recall_at_1": 0.508,
|
| 123 |
+
"recall_at_10": 0.7906666666666666,
|
| 124 |
+
"recall_at_5": 0.7333333333333333,
|
| 125 |
+
"samples": 750
|
| 126 |
+
},
|
| 127 |
+
"rust": {
|
| 128 |
+
"mean_rank": 62.276,
|
| 129 |
+
"mrr": 0.33950767317069686,
|
| 130 |
+
"ndcg_at_10": 0.3799804050647669,
|
| 131 |
+
"recall_at_1": 0.236,
|
| 132 |
+
"recall_at_10": 0.5466666666666666,
|
| 133 |
+
"recall_at_5": 0.456,
|
| 134 |
+
"samples": 750
|
| 135 |
+
},
|
| 136 |
+
"shell": {
|
| 137 |
+
"mean_rank": 1.3333333333333333,
|
| 138 |
+
"mrr": 0.8333333333333334,
|
| 139 |
+
"ndcg_at_10": 0.8769765845238192,
|
| 140 |
+
"recall_at_1": 0.6666666666666666,
|
| 141 |
+
"recall_at_10": 1.0,
|
| 142 |
+
"recall_at_5": 1.0,
|
| 143 |
+
"samples": 6
|
| 144 |
+
},
|
| 145 |
+
"swift": {
|
| 146 |
+
"mean_rank": 1.0,
|
| 147 |
+
"mrr": 1.0,
|
| 148 |
+
"ndcg_at_10": 1.0,
|
| 149 |
+
"recall_at_1": 1.0,
|
| 150 |
+
"recall_at_10": 1.0,
|
| 151 |
+
"recall_at_5": 1.0,
|
| 152 |
+
"samples": 1
|
| 153 |
+
},
|
| 154 |
+
"toml": {
|
| 155 |
+
"mean_rank": 60.70542635658915,
|
| 156 |
+
"mrr": 0.045741052176932806,
|
| 157 |
+
"ndcg_at_10": 0.04280747817711309,
|
| 158 |
+
"recall_at_1": 0.007751937984496124,
|
| 159 |
+
"recall_at_10": 0.10077519379844961,
|
| 160 |
+
"recall_at_5": 0.03875968992248062,
|
| 161 |
+
"samples": 129
|
| 162 |
+
},
|
| 163 |
+
"typescript": {
|
| 164 |
+
"mean_rank": 112.34,
|
| 165 |
+
"mrr": 0.2526504842825891,
|
| 166 |
+
"ndcg_at_10": 0.28206333694952074,
|
| 167 |
+
"recall_at_1": 0.16933333333333334,
|
| 168 |
+
"recall_at_10": 0.416,
|
| 169 |
+
"recall_at_5": 0.33466666666666667,
|
| 170 |
+
"samples": 750
|
| 171 |
+
},
|
| 172 |
+
"yaml": {
|
| 173 |
+
"mean_rank": 5.923076923076923,
|
| 174 |
+
"mrr": 0.3787221325682864,
|
| 175 |
+
"ndcg_at_10": 0.45436356133195205,
|
| 176 |
+
"recall_at_1": 0.23076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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_bytes": 464159282,
|
| 3 |
+
"attention_implementation": "sdpa",
|
| 4 |
+
"backend": "pytorch_cuda_bf16",
|
| 5 |
+
"batch_sizes": {
|
| 6 |
+
"passage": 4,
|
| 7 |
+
"query": 32
|
| 8 |
+
},
|
| 9 |
+
"corpus": "corpus/test.jsonl",
|
| 10 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 11 |
+
"cuda": {
|
| 12 |
+
"device": "NVIDIA GeForce RTX 3090 Ti",
|
| 13 |
+
"peak_memory_bytes": 736232960,
|
| 14 |
+
"torch": "2.13.0+cu130"
|
| 15 |
+
},
|
| 16 |
+
"input_limits": {
|
| 17 |
+
"max_passage_chars": 4000,
|
| 18 |
+
"max_query_chars": 1200,
|
| 19 |
+
"passage_tokens": 2048,
|
| 20 |
+
"query_tokens": 512
|
| 21 |
+
},
|
| 22 |
+
"language_counts": {
|
| 23 |
+
"c": 95,
|
| 24 |
+
"cpp": 750,
|
| 25 |
+
"cuda": 1,
|
| 26 |
+
"go": 750,
|
| 27 |
+
"java": 750,
|
| 28 |
+
"javascript": 750,
|
| 29 |
+
"php": 750,
|
| 30 |
+
"python": 750,
|
| 31 |
+
"ruby": 750,
|
| 32 |
+
"rust": 750,
|
| 33 |
+
"shell": 6,
|
| 34 |
+
"swift": 1,
|
| 35 |
+
"toml": 129,
|
| 36 |
+
"typescript": 750,
|
| 37 |
+
"yaml": 13
|
| 38 |
+
},
|
| 39 |
+
"model_path": "artifacts/LFM2.5-Encoder-230M-Code-BF16",
|
| 40 |
+
"passage_seconds": 36.66620972999999,
|
| 41 |
+
"passages_per_second": 190.77510469473884,
|
| 42 |
+
"queries_per_second": 755.686463584362,
|
| 43 |
+
"query_seconds": 9.256484451000233,
|
| 44 |
+
"samples": 6995,
|
| 45 |
+
"schema_version": 1,
|
| 46 |
+
"slices": {
|
| 47 |
+
"all": {
|
| 48 |
+
"mean_rank": 314.2793423874196,
|
| 49 |
+
"mrr": 0.3962739246063872,
|
| 50 |
+
"ndcg_at_10": 0.42364173920455106,
|
| 51 |
+
"recall_at_1": 0.3222301644031451,
|
| 52 |
+
"recall_at_10": 0.5373838456040029,
|
| 53 |
+
"recall_at_5": 0.4751965689778413
|
| 54 |
+
},
|
| 55 |
+
"c": {
|
| 56 |
+
"mean_rank": 13.052631578947368,
|
| 57 |
+
"mrr": 0.2737884028682507,
|
| 58 |
+
"ndcg_at_10": 0.3169729359077213,
|
| 59 |
+
"recall_at_1": 0.12631578947368421,
|
| 60 |
+
"recall_at_10": 0.5368421052631579,
|
| 61 |
+
"recall_at_5": 0.4,
|
| 62 |
+
"samples": 95
|
| 63 |
+
},
|
| 64 |
+
"cpp": {
|
| 65 |
+
"mean_rank": 225.32933333333332,
|
| 66 |
+
"mrr": 0.08600343125333741,
|
| 67 |
+
"ndcg_at_10": 0.0910546934939449,
|
| 68 |
+
"recall_at_1": 0.050666666666666665,
|
| 69 |
+
"recall_at_10": 0.14133333333333334,
|
| 70 |
+
"recall_at_5": 0.108,
|
| 71 |
+
"samples": 750
|
| 72 |
+
},
|
| 73 |
+
"cuda": {
|
| 74 |
+
"mean_rank": 1.0,
|
| 75 |
+
"mrr": 1.0,
|
| 76 |
+
"ndcg_at_10": 1.0,
|
| 77 |
+
"recall_at_1": 1.0,
|
| 78 |
+
"recall_at_10": 1.0,
|
| 79 |
+
"recall_at_5": 1.0,
|
| 80 |
+
"samples": 1
|
| 81 |
+
},
|
| 82 |
+
"go": {
|
| 83 |
+
"mean_rank": 12.850666666666667,
|
| 84 |
+
"mrr": 0.6596772572519141,
|
| 85 |
+
"ndcg_at_10": 0.6892601855452422,
|
| 86 |
+
"recall_at_1": 0.5733333333333334,
|
| 87 |
+
"recall_at_10": 0.8,
|
| 88 |
+
"recall_at_5": 0.756,
|
| 89 |
+
"samples": 750
|
| 90 |
+
},
|
| 91 |
+
"java": {
|
| 92 |
+
"mean_rank": 33.64666666666667,
|
| 93 |
+
"mrr": 0.45932888241935205,
|
| 94 |
+
"ndcg_at_10": 0.5034351901738695,
|
| 95 |
+
"recall_at_1": 0.35333333333333333,
|
| 96 |
+
"recall_at_10": 0.676,
|
| 97 |
+
"recall_at_5": 0.5813333333333334,
|
| 98 |
+
"samples": 750
|
| 99 |
+
},
|
| 100 |
+
"javascript": {
|
| 101 |
+
"mean_rank": 60.748,
|
| 102 |
+
"mrr": 0.4212374168111231,
|
| 103 |
+
"ndcg_at_10": 0.4547832561213962,
|
| 104 |
+
"recall_at_1": 0.336,
|
| 105 |
+
"recall_at_10": 0.5933333333333334,
|
| 106 |
+
"recall_at_5": 0.516,
|
| 107 |
+
"samples": 750
|
| 108 |
+
},
|
| 109 |
+
"php": {
|
| 110 |
+
"mean_rank": 14.878666666666666,
|
| 111 |
+
"mrr": 0.6847110916702501,
|
| 112 |
+
"ndcg_at_10": 0.7201481645824124,
|
| 113 |
+
"recall_at_1": 0.6013333333333334,
|
| 114 |
+
"recall_at_10": 0.8493333333333334,
|
| 115 |
+
"recall_at_5": 0.784,
|
| 116 |
+
"samples": 750
|
| 117 |
+
},
|
| 118 |
+
"python": {
|
| 119 |
+
"mean_rank": 9.890666666666666,
|
| 120 |
+
"mrr": 0.83537476194661,
|
| 121 |
+
"ndcg_at_10": 0.8503649612192248,
|
| 122 |
+
"recall_at_1": 0.7946666666666666,
|
| 123 |
+
"recall_at_10": 0.9066666666666666,
|
| 124 |
+
"recall_at_5": 0.8826666666666667,
|
| 125 |
+
"samples": 750
|
| 126 |
+
},
|
| 127 |
+
"ruby": {
|
| 128 |
+
"mean_rank": 21.602666666666668,
|
| 129 |
+
"mrr": 0.6119444880719548,
|
| 130 |
+
"ndcg_at_10": 0.6505055322380063,
|
| 131 |
+
"recall_at_1": 0.5093333333333333,
|
| 132 |
+
"recall_at_10": 0.7946666666666666,
|
| 133 |
+
"recall_at_5": 0.732,
|
| 134 |
+
"samples": 750
|
| 135 |
+
},
|
| 136 |
+
"rust": {
|
| 137 |
+
"mean_rank": 62.42133333333334,
|
| 138 |
+
"mrr": 0.3392667537492009,
|
| 139 |
+
"ndcg_at_10": 0.379030616915146,
|
| 140 |
+
"recall_at_1": 0.236,
|
| 141 |
+
"recall_at_10": 0.544,
|
| 142 |
+
"recall_at_5": 0.4533333333333333,
|
| 143 |
+
"samples": 750
|
| 144 |
+
},
|
| 145 |
+
"shell": {
|
| 146 |
+
"mean_rank": 1.3333333333333333,
|
| 147 |
+
"mrr": 0.8333333333333334,
|
| 148 |
+
"ndcg_at_10": 0.8769765845238192,
|
| 149 |
+
"recall_at_1": 0.6666666666666666,
|
| 150 |
+
"recall_at_10": 1.0,
|
| 151 |
+
"recall_at_5": 1.0,
|
| 152 |
+
"samples": 6
|
| 153 |
+
},
|
| 154 |
+
"swift": {
|
| 155 |
+
"mean_rank": 1.0,
|
| 156 |
+
"mrr": 1.0,
|
| 157 |
+
"ndcg_at_10": 1.0,
|
| 158 |
+
"recall_at_1": 1.0,
|
| 159 |
+
"recall_at_10": 1.0,
|
| 160 |
+
"recall_at_5": 1.0,
|
| 161 |
+
"samples": 1
|
| 162 |
+
},
|
| 163 |
+
"toml": {
|
| 164 |
+
"mean_rank": 60.713178294573645,
|
| 165 |
+
"mrr": 0.04564208938294146,
|
| 166 |
+
"ndcg_at_10": 0.038325852962882274,
|
| 167 |
+
"recall_at_1": 0.007751937984496124,
|
| 168 |
+
"recall_at_10": 0.08527131782945736,
|
| 169 |
+
"recall_at_5": 0.03875968992248062,
|
| 170 |
+
"samples": 129
|
| 171 |
+
},
|
| 172 |
+
"typescript": {
|
| 173 |
+
"mean_rank": 111.74533333333333,
|
| 174 |
+
"mrr": 0.25350446065401616,
|
| 175 |
+
"ndcg_at_10": 0.2827095492191127,
|
| 176 |
+
"recall_at_1": 0.17066666666666666,
|
| 177 |
+
"recall_at_10": 0.416,
|
| 178 |
+
"recall_at_5": 0.332,
|
| 179 |
+
"samples": 750
|
| 180 |
+
},
|
| 181 |
+
"yaml": {
|
| 182 |
+
"mean_rank": 5.846153846153846,
|
| 183 |
+
"mrr": 0.37979050863666247,
|
| 184 |
+
"ndcg_at_10": 0.4554739368028557,
|
| 185 |
+
"recall_at_1": 0.23076923076923078,
|
| 186 |
+
"recall_at_10": 0.7692307692307693,
|
| 187 |
+
"recall_at_5": 0.5384615384615384,
|
| 188 |
+
"samples": 13
|
| 189 |
+
}
|
| 190 |
+
}
|
| 191 |
+
}
|
benchmarks/lfm25-230m-gptq-mxfp4-4k.json
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_bytes": 225489914,
|
| 3 |
+
"corpus": "/Users/kearm/datasets/calibrated-code-embeddings/corpus-v2/test.jsonl",
|
| 4 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 5 |
+
"drift": {
|
| 6 |
+
"passage_mean_cosine_to_bf16": 0.9001623392105103,
|
| 7 |
+
"passage_minimum_cosine_to_bf16": 0.8123711347579956,
|
| 8 |
+
"passage_mse_to_bf16": 0.00019499551854096353,
|
| 9 |
+
"query_mean_cosine_to_bf16": 0.8672426342964172,
|
| 10 |
+
"query_minimum_cosine_to_bf16": 0.7169002890586853,
|
| 11 |
+
"query_mse_to_bf16": 0.0002592916425783187,
|
| 12 |
+
"retrieval_top_10_overlap_with_bf16": 0.34318799142244466
|
| 13 |
+
},
|
| 14 |
+
"input_limits": {
|
| 15 |
+
"max_passage_chars": 4000,
|
| 16 |
+
"max_query_chars": 1200,
|
| 17 |
+
"passage_tokens": 2048,
|
| 18 |
+
"query_tokens": 512
|
| 19 |
+
},
|
| 20 |
+
"language_counts": {
|
| 21 |
+
"c": 95,
|
| 22 |
+
"cpp": 750,
|
| 23 |
+
"cuda": 1,
|
| 24 |
+
"go": 750,
|
| 25 |
+
"java": 750,
|
| 26 |
+
"javascript": 750,
|
| 27 |
+
"php": 750,
|
| 28 |
+
"python": 750,
|
| 29 |
+
"ruby": 750,
|
| 30 |
+
"rust": 750,
|
| 31 |
+
"shell": 6,
|
| 32 |
+
"swift": 1,
|
| 33 |
+
"toml": 129,
|
| 34 |
+
"typescript": 750,
|
| 35 |
+
"yaml": 13
|
| 36 |
+
},
|
| 37 |
+
"mlx_peak_memory_bytes": 1270683880,
|
| 38 |
+
"model_path": "artifacts/LFM2.5-Encoder-230M-Code-MXFP4-GPTQ",
|
| 39 |
+
"passage_seconds": 165.19913604098838,
|
| 40 |
+
"passages_per_second": 42.34283645566062,
|
| 41 |
+
"quantization": {
|
| 42 |
+
"algorithm": "activation_calibrated_block_gptq",
|
| 43 |
+
"bits": 4,
|
| 44 |
+
"group_size": 32,
|
| 45 |
+
"mode": "mxfp4"
|
| 46 |
+
},
|
| 47 |
+
"queries_per_second": 339.05696688438445,
|
| 48 |
+
"query_seconds": 20.630751417018473,
|
| 49 |
+
"samples": 6995,
|
| 50 |
+
"schema_version": 1,
|
| 51 |
+
"slices": {
|
| 52 |
+
"all": {
|
| 53 |
+
"mean_rank": 682.4,
|
| 54 |
+
"mrr": 0.21102277176189885,
|
| 55 |
+
"ndcg_at_10": 0.22623315570861197,
|
| 56 |
+
"recall_at_1": 0.16197283774124374,
|
| 57 |
+
"recall_at_10": 0.30293066476054326,
|
| 58 |
+
"recall_at_5": 0.25718370264474627
|
| 59 |
+
},
|
| 60 |
+
"c": {
|
| 61 |
+
"mean_rank": 23.4,
|
| 62 |
+
"mrr": 0.18511194603483683,
|
| 63 |
+
"ndcg_at_10": 0.2225587534015042,
|
| 64 |
+
"recall_at_1": 0.07368421052631578,
|
| 65 |
+
"recall_at_10": 0.42105263157894735,
|
| 66 |
+
"recall_at_5": 0.25263157894736843,
|
| 67 |
+
"samples": 95
|
| 68 |
+
},
|
| 69 |
+
"cpp": {
|
| 70 |
+
"mean_rank": 300.284,
|
| 71 |
+
"mrr": 0.03172571011997162,
|
| 72 |
+
"ndcg_at_10": 0.031193148805015683,
|
| 73 |
+
"recall_at_1": 0.009333333333333334,
|
| 74 |
+
"recall_at_10": 0.05733333333333333,
|
| 75 |
+
"recall_at_5": 0.044,
|
| 76 |
+
"samples": 750
|
| 77 |
+
},
|
| 78 |
+
"cuda": {
|
| 79 |
+
"mean_rank": 1.0,
|
| 80 |
+
"mrr": 1.0,
|
| 81 |
+
"ndcg_at_10": 1.0,
|
| 82 |
+
"recall_at_1": 1.0,
|
| 83 |
+
"recall_at_10": 1.0,
|
| 84 |
+
"recall_at_5": 1.0,
|
| 85 |
+
"samples": 1
|
| 86 |
+
},
|
| 87 |
+
"go": {
|
| 88 |
+
"mean_rank": 24.014666666666667,
|
| 89 |
+
"mrr": 0.522450158268134,
|
| 90 |
+
"ndcg_at_10": 0.5571843490651691,
|
| 91 |
+
"recall_at_1": 0.4186666666666667,
|
| 92 |
+
"recall_at_10": 0.696,
|
| 93 |
+
"recall_at_5": 0.6306666666666667,
|
| 94 |
+
"samples": 750
|
| 95 |
+
},
|
| 96 |
+
"java": {
|
| 97 |
+
"mean_rank": 120.636,
|
| 98 |
+
"mrr": 0.1984414560175751,
|
| 99 |
+
"ndcg_at_10": 0.21641096846902996,
|
| 100 |
+
"recall_at_1": 0.13733333333333334,
|
| 101 |
+
"recall_at_10": 0.312,
|
| 102 |
+
"recall_at_5": 0.244,
|
| 103 |
+
"samples": 750
|
| 104 |
+
},
|
| 105 |
+
"javascript": {
|
| 106 |
+
"mean_rank": 114.972,
|
| 107 |
+
"mrr": 0.21666391773106192,
|
| 108 |
+
"ndcg_at_10": 0.22896335721326966,
|
| 109 |
+
"recall_at_1": 0.156,
|
| 110 |
+
"recall_at_10": 0.31333333333333335,
|
| 111 |
+
"recall_at_5": 0.25866666666666666,
|
| 112 |
+
"samples": 750
|
| 113 |
+
},
|
| 114 |
+
"php": {
|
| 115 |
+
"mean_rank": 35.90266666666667,
|
| 116 |
+
"mrr": 0.4798467083943148,
|
| 117 |
+
"ndcg_at_10": 0.5156929520230443,
|
| 118 |
+
"recall_at_1": 0.384,
|
| 119 |
+
"recall_at_10": 0.664,
|
| 120 |
+
"recall_at_5": 0.5906666666666667,
|
| 121 |
+
"samples": 750
|
| 122 |
+
},
|
| 123 |
+
"python": {
|
| 124 |
+
"mean_rank": 16.577333333333332,
|
| 125 |
+
"mrr": 0.7113012151405319,
|
| 126 |
+
"ndcg_at_10": 0.7341909620890315,
|
| 127 |
+
"recall_at_1": 0.6493333333333333,
|
| 128 |
+
"recall_at_10": 0.824,
|
| 129 |
+
"recall_at_5": 0.7773333333333333,
|
| 130 |
+
"samples": 750
|
| 131 |
+
},
|
| 132 |
+
"ruby": {
|
| 133 |
+
"mean_rank": 36.461333333333336,
|
| 134 |
+
"mrr": 0.43070829283433826,
|
| 135 |
+
"ndcg_at_10": 0.4738219260745133,
|
| 136 |
+
"recall_at_1": 0.32,
|
| 137 |
+
"recall_at_10": 0.648,
|
| 138 |
+
"recall_at_5": 0.5413333333333333,
|
| 139 |
+
"samples": 750
|
| 140 |
+
},
|
| 141 |
+
"rust": {
|
| 142 |
+
"mean_rank": 140.45066666666668,
|
| 143 |
+
"mrr": 0.15022863618272667,
|
| 144 |
+
"ndcg_at_10": 0.17060474898313907,
|
| 145 |
+
"recall_at_1": 0.08133333333333333,
|
| 146 |
+
"recall_at_10": 0.2786666666666667,
|
| 147 |
+
"recall_at_5": 0.21066666666666667,
|
| 148 |
+
"samples": 750
|
| 149 |
+
},
|
| 150 |
+
"shell": {
|
| 151 |
+
"mean_rank": 2.0,
|
| 152 |
+
"mrr": 0.7000000000000001,
|
| 153 |
+
"ndcg_at_10": 0.7747853857295762,
|
| 154 |
+
"recall_at_1": 0.5,
|
| 155 |
+
"recall_at_10": 1.0,
|
| 156 |
+
"recall_at_5": 1.0,
|
| 157 |
+
"samples": 6
|
| 158 |
+
},
|
| 159 |
+
"swift": {
|
| 160 |
+
"mean_rank": 1.0,
|
| 161 |
+
"mrr": 1.0,
|
| 162 |
+
"ndcg_at_10": 1.0,
|
| 163 |
+
"recall_at_1": 1.0,
|
| 164 |
+
"recall_at_10": 1.0,
|
| 165 |
+
"recall_at_5": 1.0,
|
| 166 |
+
"samples": 1
|
| 167 |
+
},
|
| 168 |
+
"toml": {
|
| 169 |
+
"mean_rank": 64.62790697674419,
|
| 170 |
+
"mrr": 0.042644471053711844,
|
| 171 |
+
"ndcg_at_10": 0.03522139021773911,
|
| 172 |
+
"recall_at_1": 0.007751937984496124,
|
| 173 |
+
"recall_at_10": 0.07751937984496124,
|
| 174 |
+
"recall_at_5": 0.03875968992248062,
|
| 175 |
+
"samples": 129
|
| 176 |
+
},
|
| 177 |
+
"typescript": {
|
| 178 |
+
"mean_rank": 189.06933333333333,
|
| 179 |
+
"mrr": 0.06929568406069198,
|
| 180 |
+
"ndcg_at_10": 0.07188175587707758,
|
| 181 |
+
"recall_at_1": 0.029333333333333333,
|
| 182 |
+
"recall_at_10": 0.124,
|
| 183 |
+
"recall_at_5": 0.09466666666666666,
|
| 184 |
+
"samples": 750
|
| 185 |
+
},
|
| 186 |
+
"yaml": {
|
| 187 |
+
"mean_rank": 6.846153846153846,
|
| 188 |
+
"mrr": 0.33180516065131455,
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_bytes": 306754942,
|
| 3 |
+
"corpus": "/Users/kearm/datasets/calibrated-code-embeddings/corpus-v2/test.jsonl",
|
| 4 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 5 |
+
"drift": {
|
| 6 |
+
"passage_mean_cosine_to_bf16": 0.9983464479446411,
|
| 7 |
+
"passage_minimum_cosine_to_bf16": 0.9948788285255432,
|
| 8 |
+
"passage_mse_to_bf16": 3.2294906304741744e-06,
|
| 9 |
+
"query_mean_cosine_to_bf16": 0.9970555305480957,
|
| 10 |
+
"query_minimum_cosine_to_bf16": 0.9922199249267578,
|
| 11 |
+
"query_mse_to_bf16": 5.750931450165808e-06,
|
| 12 |
+
"retrieval_top_10_overlap_with_bf16": 0.9202716225875626
|
| 13 |
+
},
|
| 14 |
+
"input_limits": {
|
| 15 |
+
"max_passage_chars": 4000,
|
| 16 |
+
"max_query_chars": 1200,
|
| 17 |
+
"passage_tokens": 2048,
|
| 18 |
+
"query_tokens": 512
|
| 19 |
+
},
|
| 20 |
+
"language_counts": {
|
| 21 |
+
"c": 95,
|
| 22 |
+
"cpp": 750,
|
| 23 |
+
"cuda": 1,
|
| 24 |
+
"go": 750,
|
| 25 |
+
"java": 750,
|
| 26 |
+
"javascript": 750,
|
| 27 |
+
"php": 750,
|
| 28 |
+
"python": 750,
|
| 29 |
+
"ruby": 750,
|
| 30 |
+
"rust": 750,
|
| 31 |
+
"shell": 6,
|
| 32 |
+
"swift": 1,
|
| 33 |
+
"toml": 129,
|
| 34 |
+
"typescript": 750,
|
| 35 |
+
"yaml": 13
|
| 36 |
+
},
|
| 37 |
+
"mlx_peak_memory_bytes": 1320441192,
|
| 38 |
+
"model_path": "artifacts/LFM2.5-Encoder-230M-Code-MXFP8-GPTQ",
|
| 39 |
+
"passage_seconds": 145.2683282920625,
|
| 40 |
+
"passages_per_second": 48.15227160827876,
|
| 41 |
+
"quantization": {
|
| 42 |
+
"algorithm": "activation_calibrated_block_gptq",
|
| 43 |
+
"bits": 8,
|
| 44 |
+
"group_size": 32,
|
| 45 |
+
"mode": "mxfp8"
|
| 46 |
+
},
|
| 47 |
+
"queries_per_second": 595.5550056432735,
|
| 48 |
+
"query_seconds": 11.745346666080877,
|
| 49 |
+
"samples": 6995,
|
| 50 |
+
"schema_version": 1,
|
| 51 |
+
"slices": {
|
| 52 |
+
"all": {
|
| 53 |
+
"mean_rank": 318.7030736240172,
|
| 54 |
+
"mrr": 0.39336530977743367,
|
| 55 |
+
"ndcg_at_10": 0.42065384043221277,
|
| 56 |
+
"recall_at_1": 0.31965689778413153,
|
| 57 |
+
"recall_at_10": 0.5342387419585418,
|
| 58 |
+
"recall_at_5": 0.4714796283059328
|
| 59 |
+
},
|
| 60 |
+
"c": {
|
| 61 |
+
"mean_rank": 13.410526315789474,
|
| 62 |
+
"mrr": 0.26351492317385833,
|
| 63 |
+
"ndcg_at_10": 0.30915035351524445,
|
| 64 |
+
"recall_at_1": 0.12631578947368421,
|
| 65 |
+
"recall_at_10": 0.5368421052631579,
|
| 66 |
+
"recall_at_5": 0.3684210526315789,
|
| 67 |
+
"samples": 95
|
| 68 |
+
},
|
| 69 |
+
"cpp": {
|
| 70 |
+
"mean_rank": 226.34666666666666,
|
| 71 |
+
"mrr": 0.08408784072365852,
|
| 72 |
+
"ndcg_at_10": 0.08994480895687991,
|
| 73 |
+
"recall_at_1": 0.048,
|
| 74 |
+
"recall_at_10": 0.14266666666666666,
|
| 75 |
+
"recall_at_5": 0.11066666666666666,
|
| 76 |
+
"samples": 750
|
| 77 |
+
},
|
| 78 |
+
"cuda": {
|
| 79 |
+
"mean_rank": 1.0,
|
| 80 |
+
"mrr": 1.0,
|
| 81 |
+
"ndcg_at_10": 1.0,
|
| 82 |
+
"recall_at_1": 1.0,
|
| 83 |
+
"recall_at_10": 1.0,
|
| 84 |
+
"recall_at_5": 1.0,
|
| 85 |
+
"samples": 1
|
| 86 |
+
},
|
| 87 |
+
"go": {
|
| 88 |
+
"mean_rank": 12.816,
|
| 89 |
+
"mrr": 0.6607739861176783,
|
| 90 |
+
"ndcg_at_10": 0.6896974686359035,
|
| 91 |
+
"recall_at_1": 0.5773333333333334,
|
| 92 |
+
"recall_at_10": 0.7986666666666666,
|
| 93 |
+
"recall_at_5": 0.7573333333333333,
|
| 94 |
+
"samples": 750
|
| 95 |
+
},
|
| 96 |
+
"java": {
|
| 97 |
+
"mean_rank": 34.12533333333333,
|
| 98 |
+
"mrr": 0.45295957271776993,
|
| 99 |
+
"ndcg_at_10": 0.49677620324503596,
|
| 100 |
+
"recall_at_1": 0.344,
|
| 101 |
+
"recall_at_10": 0.6693333333333333,
|
| 102 |
+
"recall_at_5": 0.58,
|
| 103 |
+
"samples": 750
|
| 104 |
+
},
|
| 105 |
+
"javascript": {
|
| 106 |
+
"mean_rank": 61.092,
|
| 107 |
+
"mrr": 0.4178612565390005,
|
| 108 |
+
"ndcg_at_10": 0.4519629928311683,
|
| 109 |
+
"recall_at_1": 0.332,
|
| 110 |
+
"recall_at_10": 0.592,
|
| 111 |
+
"recall_at_5": 0.5106666666666667,
|
| 112 |
+
"samples": 750
|
| 113 |
+
},
|
| 114 |
+
"php": {
|
| 115 |
+
"mean_rank": 14.836,
|
| 116 |
+
"mrr": 0.6816366973979637,
|
| 117 |
+
"ndcg_at_10": 0.7168133675928705,
|
| 118 |
+
"recall_at_1": 0.5946666666666667,
|
| 119 |
+
"recall_at_10": 0.8453333333333334,
|
| 120 |
+
"recall_at_5": 0.7826666666666666,
|
| 121 |
+
"samples": 750
|
| 122 |
+
},
|
| 123 |
+
"python": {
|
| 124 |
+
"mean_rank": 10.006666666666666,
|
| 125 |
+
"mrr": 0.8394292939633837,
|
| 126 |
+
"ndcg_at_10": 0.8532961748664522,
|
| 127 |
+
"recall_at_1": 0.8026666666666666,
|
| 128 |
+
"recall_at_10": 0.9066666666666666,
|
| 129 |
+
"recall_at_5": 0.8786666666666667,
|
| 130 |
+
"samples": 750
|
| 131 |
+
},
|
| 132 |
+
"ruby": {
|
| 133 |
+
"mean_rank": 21.478666666666665,
|
| 134 |
+
"mrr": 0.6096656243932941,
|
| 135 |
+
"ndcg_at_10": 0.6502157794954445,
|
| 136 |
+
"recall_at_1": 0.508,
|
| 137 |
+
"recall_at_10": 0.8,
|
| 138 |
+
"recall_at_5": 0.732,
|
| 139 |
+
"samples": 750
|
| 140 |
+
},
|
| 141 |
+
"rust": {
|
| 142 |
+
"mean_rank": 62.67333333333333,
|
| 143 |
+
"mrr": 0.3417210123346796,
|
| 144 |
+
"ndcg_at_10": 0.3816989502922837,
|
| 145 |
+
"recall_at_1": 0.23866666666666667,
|
| 146 |
+
"recall_at_10": 0.5466666666666666,
|
| 147 |
+
"recall_at_5": 0.4533333333333333,
|
| 148 |
+
"samples": 750
|
| 149 |
+
},
|
| 150 |
+
"shell": {
|
| 151 |
+
"mean_rank": 1.3333333333333333,
|
| 152 |
+
"mrr": 0.8333333333333334,
|
| 153 |
+
"ndcg_at_10": 0.8769765845238192,
|
| 154 |
+
"recall_at_1": 0.6666666666666666,
|
| 155 |
+
"recall_at_10": 1.0,
|
| 156 |
+
"recall_at_5": 1.0,
|
| 157 |
+
"samples": 6
|
| 158 |
+
},
|
| 159 |
+
"swift": {
|
| 160 |
+
"mean_rank": 1.0,
|
| 161 |
+
"mrr": 1.0,
|
| 162 |
+
"ndcg_at_10": 1.0,
|
| 163 |
+
"recall_at_1": 1.0,
|
| 164 |
+
"recall_at_10": 1.0,
|
| 165 |
+
"recall_at_5": 1.0,
|
| 166 |
+
"samples": 1
|
| 167 |
+
},
|
| 168 |
+
"toml": {
|
| 169 |
+
"mean_rank": 61.031007751937985,
|
| 170 |
+
"mrr": 0.04580534716961455,
|
| 171 |
+
"ndcg_at_10": 0.04080422851671489,
|
| 172 |
+
"recall_at_1": 0.007751937984496124,
|
| 173 |
+
"recall_at_10": 0.09302325581395349,
|
| 174 |
+
"recall_at_5": 0.046511627906976744,
|
| 175 |
+
"samples": 129
|
| 176 |
+
},
|
| 177 |
+
"typescript": {
|
| 178 |
+
"mean_rank": 113.064,
|
| 179 |
+
"mrr": 0.2447084716310596,
|
| 180 |
+
"ndcg_at_10": 0.27614689245083596,
|
| 181 |
+
"recall_at_1": 0.16266666666666665,
|
| 182 |
+
"recall_at_10": 0.416,
|
| 183 |
+
"recall_at_5": 0.32266666666666666,
|
| 184 |
+
"samples": 750
|
| 185 |
+
},
|
| 186 |
+
"yaml": {
|
| 187 |
+
"mean_rank": 5.846153846153846,
|
| 188 |
+
"mrr": 0.37979050863666247,
|
| 189 |
+
"ndcg_at_10": 0.4554739368028557,
|
| 190 |
+
"recall_at_1": 0.23076923076923078,
|
| 191 |
+
"recall_at_10": 0.7692307692307693,
|
| 192 |
+
"recall_at_5": 0.5384615384615384,
|
| 193 |
+
"samples": 13
|
| 194 |
+
}
|
| 195 |
+
}
|
| 196 |
+
}
|
benchmarks/lfm25-230m-gptq-mxfp8-vs-bf16-bootstrap.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bootstrap_samples": 10000,
|
| 3 |
+
"candidate_mrr": 0.39336530977743367,
|
| 4 |
+
"difference_ci_95_lower": -0.004237095202471089,
|
| 5 |
+
"difference_ci_95_upper": -0.0009771653320113183,
|
| 6 |
+
"mrr_difference": -0.0026152420061133245,
|
| 7 |
+
"pairs": 6995,
|
| 8 |
+
"probability_difference_le_zero": 0.9991,
|
| 9 |
+
"reference_mrr": 0.39598055178354696,
|
| 10 |
+
"seed": 17
|
| 11 |
+
}
|
benchmarks/lfm25-230m-rtn-mxfp4-4k.json
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_bytes": 225448308,
|
| 3 |
+
"corpus": "/Users/kearm/datasets/calibrated-code-embeddings/corpus-v2/test.jsonl",
|
| 4 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 5 |
+
"drift": {
|
| 6 |
+
"passage_mean_cosine_to_bf16": 0.7229037880897522,
|
| 7 |
+
"passage_minimum_cosine_to_bf16": 0.576098620891571,
|
| 8 |
+
"passage_mse_to_bf16": 0.0005412035388872027,
|
| 9 |
+
"query_mean_cosine_to_bf16": 0.7227055430412292,
|
| 10 |
+
"query_minimum_cosine_to_bf16": 0.5215013027191162,
|
| 11 |
+
"query_mse_to_bf16": 0.000541590852662921,
|
| 12 |
+
"retrieval_top_10_overlap_with_bf16": 0.11669764117226591
|
| 13 |
+
},
|
| 14 |
+
"input_limits": {
|
| 15 |
+
"max_passage_chars": 4000,
|
| 16 |
+
"max_query_chars": 1200,
|
| 17 |
+
"passage_tokens": 2048,
|
| 18 |
+
"query_tokens": 512
|
| 19 |
+
},
|
| 20 |
+
"language_counts": {
|
| 21 |
+
"c": 95,
|
| 22 |
+
"cpp": 750,
|
| 23 |
+
"cuda": 1,
|
| 24 |
+
"go": 750,
|
| 25 |
+
"java": 750,
|
| 26 |
+
"javascript": 750,
|
| 27 |
+
"php": 750,
|
| 28 |
+
"python": 750,
|
| 29 |
+
"ruby": 750,
|
| 30 |
+
"rust": 750,
|
| 31 |
+
"shell": 6,
|
| 32 |
+
"swift": 1,
|
| 33 |
+
"toml": 129,
|
| 34 |
+
"typescript": 750,
|
| 35 |
+
"yaml": 13
|
| 36 |
+
},
|
| 37 |
+
"mlx_peak_memory_bytes": 1270683880,
|
| 38 |
+
"model_path": "artifacts/LFM2.5-Encoder-230M-Code-MXFP4-RTN",
|
| 39 |
+
"passage_seconds": 160.38185300002806,
|
| 40 |
+
"passages_per_second": 43.61466007004406,
|
| 41 |
+
"quantization": {
|
| 42 |
+
"algorithm": "native_rtn",
|
| 43 |
+
"bits": 4,
|
| 44 |
+
"group_size": 32,
|
| 45 |
+
"mode": "mxfp4"
|
| 46 |
+
},
|
| 47 |
+
"queries_per_second": 355.0055292241587,
|
| 48 |
+
"query_seconds": 19.703918458078988,
|
| 49 |
+
"samples": 6995,
|
| 50 |
+
"schema_version": 1,
|
| 51 |
+
"slices": {
|
| 52 |
+
"all": {
|
| 53 |
+
"mean_rank": 1484.5802716225876,
|
| 54 |
+
"mrr": 0.08057347281227334,
|
| 55 |
+
"ndcg_at_10": 0.08438046005123606,
|
| 56 |
+
"recall_at_1": 0.060900643316654755,
|
| 57 |
+
"recall_at_10": 0.1139385275196569,
|
| 58 |
+
"recall_at_5": 0.09306647605432451
|
| 59 |
+
},
|
| 60 |
+
"c": {
|
| 61 |
+
"mean_rank": 32.2,
|
| 62 |
+
"mrr": 0.12861208351023115,
|
| 63 |
+
"ndcg_at_10": 0.1493083169414057,
|
| 64 |
+
"recall_at_1": 0.042105263157894736,
|
| 65 |
+
"recall_at_10": 0.29473684210526313,
|
| 66 |
+
"recall_at_5": 0.18947368421052632,
|
| 67 |
+
"samples": 95
|
| 68 |
+
},
|
| 69 |
+
"cpp": {
|
| 70 |
+
"mean_rank": 334.024,
|
| 71 |
+
"mrr": 0.019243198083195565,
|
| 72 |
+
"ndcg_at_10": 0.019281186793956538,
|
| 73 |
+
"recall_at_1": 0.005333333333333333,
|
| 74 |
+
"recall_at_10": 0.04,
|
| 75 |
+
"recall_at_5": 0.024,
|
| 76 |
+
"samples": 750
|
| 77 |
+
},
|
| 78 |
+
"cuda": {
|
| 79 |
+
"mean_rank": 1.0,
|
| 80 |
+
"mrr": 1.0,
|
| 81 |
+
"ndcg_at_10": 1.0,
|
| 82 |
+
"recall_at_1": 1.0,
|
| 83 |
+
"recall_at_10": 1.0,
|
| 84 |
+
"recall_at_5": 1.0,
|
| 85 |
+
"samples": 1
|
| 86 |
+
},
|
| 87 |
+
"go": {
|
| 88 |
+
"mean_rank": 74.19333333333333,
|
| 89 |
+
"mrr": 0.24489272908640003,
|
| 90 |
+
"ndcg_at_10": 0.2701325664495975,
|
| 91 |
+
"recall_at_1": 0.15866666666666668,
|
| 92 |
+
"recall_at_10": 0.39866666666666667,
|
| 93 |
+
"recall_at_5": 0.3293333333333333,
|
| 94 |
+
"samples": 750
|
| 95 |
+
},
|
| 96 |
+
"java": {
|
| 97 |
+
"mean_rank": 245.536,
|
| 98 |
+
"mrr": 0.043205286413557795,
|
| 99 |
+
"ndcg_at_10": 0.04335405457442146,
|
| 100 |
+
"recall_at_1": 0.021333333333333333,
|
| 101 |
+
"recall_at_10": 0.07466666666666667,
|
| 102 |
+
"recall_at_5": 0.050666666666666665,
|
| 103 |
+
"samples": 750
|
| 104 |
+
},
|
| 105 |
+
"javascript": {
|
| 106 |
+
"mean_rank": 218.704,
|
| 107 |
+
"mrr": 0.06906967842710764,
|
| 108 |
+
"ndcg_at_10": 0.07178401349101202,
|
| 109 |
+
"recall_at_1": 0.037333333333333336,
|
| 110 |
+
"recall_at_10": 0.11466666666666667,
|
| 111 |
+
"recall_at_5": 0.084,
|
| 112 |
+
"samples": 750
|
| 113 |
+
},
|
| 114 |
+
"php": {
|
| 115 |
+
"mean_rank": 117.06,
|
| 116 |
+
"mrr": 0.193071349082455,
|
| 117 |
+
"ndcg_at_10": 0.21051304828894893,
|
| 118 |
+
"recall_at_1": 0.128,
|
| 119 |
+
"recall_at_10": 0.31333333333333335,
|
| 120 |
+
"recall_at_5": 0.252,
|
| 121 |
+
"samples": 750
|
| 122 |
+
},
|
| 123 |
+
"python": {
|
| 124 |
+
"mean_rank": 62.678666666666665,
|
| 125 |
+
"mrr": 0.443524430314319,
|
| 126 |
+
"ndcg_at_10": 0.46238526415686776,
|
| 127 |
+
"recall_at_1": 0.37866666666666665,
|
| 128 |
+
"recall_at_10": 0.5533333333333333,
|
| 129 |
+
"recall_at_5": 0.5093333333333333,
|
| 130 |
+
"samples": 750
|
| 131 |
+
},
|
| 132 |
+
"ruby": {
|
| 133 |
+
"mean_rank": 114.46666666666667,
|
| 134 |
+
"mrr": 0.17296978653395437,
|
| 135 |
+
"ndcg_at_10": 0.19416739355039028,
|
| 136 |
+
"recall_at_1": 0.10533333333333333,
|
| 137 |
+
"recall_at_10": 0.31333333333333335,
|
| 138 |
+
"recall_at_5": 0.21866666666666668,
|
| 139 |
+
"samples": 750
|
| 140 |
+
},
|
| 141 |
+
"rust": {
|
| 142 |
+
"mean_rank": 267.5493333333333,
|
| 143 |
+
"mrr": 0.04059034826873198,
|
| 144 |
+
"ndcg_at_10": 0.04257322348679958,
|
| 145 |
+
"recall_at_1": 0.014666666666666666,
|
| 146 |
+
"recall_at_10": 0.084,
|
| 147 |
+
"recall_at_5": 0.04666666666666667,
|
| 148 |
+
"samples": 750
|
| 149 |
+
},
|
| 150 |
+
"shell": {
|
| 151 |
+
"mean_rank": 2.8333333333333335,
|
| 152 |
+
"mrr": 0.5416666666666666,
|
| 153 |
+
"ndcg_at_10": 0.652968916458812,
|
| 154 |
+
"recall_at_1": 0.3333333333333333,
|
| 155 |
+
"recall_at_10": 1.0,
|
| 156 |
+
"recall_at_5": 0.8333333333333334,
|
| 157 |
+
"samples": 6
|
| 158 |
+
},
|
| 159 |
+
"swift": {
|
| 160 |
+
"mean_rank": 1.0,
|
| 161 |
+
"mrr": 1.0,
|
| 162 |
+
"ndcg_at_10": 1.0,
|
| 163 |
+
"recall_at_1": 1.0,
|
| 164 |
+
"recall_at_10": 1.0,
|
| 165 |
+
"recall_at_5": 1.0,
|
| 166 |
+
"samples": 1
|
| 167 |
+
},
|
| 168 |
+
"toml": {
|
| 169 |
+
"mean_rank": 67.03100775193798,
|
| 170 |
+
"mrr": 0.04324591825376648,
|
| 171 |
+
"ndcg_at_10": 0.0368136314932184,
|
| 172 |
+
"recall_at_1": 0.007751937984496124,
|
| 173 |
+
"recall_at_10": 0.07751937984496124,
|
| 174 |
+
"recall_at_5": 0.046511627906976744,
|
| 175 |
+
"samples": 129
|
| 176 |
+
},
|
| 177 |
+
"typescript": {
|
| 178 |
+
"mean_rank": 299.96666666666664,
|
| 179 |
+
"mrr": 0.019131624458843182,
|
| 180 |
+
"ndcg_at_10": 0.01646895217901727,
|
| 181 |
+
"recall_at_1": 0.0026666666666666666,
|
| 182 |
+
"recall_at_10": 0.036,
|
| 183 |
+
"recall_at_5": 0.02,
|
| 184 |
+
"samples": 750
|
| 185 |
+
},
|
| 186 |
+
"yaml": {
|
| 187 |
+
"mean_rank": 6.846153846153846,
|
| 188 |
+
"mrr": 0.28949746834362217,
|
| 189 |
+
"ndcg_at_10": 0.38322715588026884,
|
| 190 |
+
"recall_at_1": 0.15384615384615385,
|
| 191 |
+
"recall_at_10": 0.7692307692307693,
|
| 192 |
+
"recall_at_5": 0.38461538461538464,
|
| 193 |
+
"samples": 13
|
| 194 |
+
}
|
| 195 |
+
}
|
| 196 |
+
}
|
benchmarks/lfm25-230m-rtn-mxfp8-4k.json
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_bytes": 306717818,
|
| 3 |
+
"corpus": "/Users/kearm/datasets/calibrated-code-embeddings/corpus-v2/test.jsonl",
|
| 4 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 5 |
+
"drift": {
|
| 6 |
+
"passage_mean_cosine_to_bf16": 0.9728230834007263,
|
| 7 |
+
"passage_minimum_cosine_to_bf16": 0.9302061796188354,
|
| 8 |
+
"passage_mse_to_bf16": 5.3079857025295496e-05,
|
| 9 |
+
"query_mean_cosine_to_bf16": 0.9674696922302246,
|
| 10 |
+
"query_minimum_cosine_to_bf16": 0.8711244463920593,
|
| 11 |
+
"query_mse_to_bf16": 6.353570643113926e-05,
|
| 12 |
+
"retrieval_top_10_overlap_with_bf16": 0.7924660471765549
|
| 13 |
+
},
|
| 14 |
+
"input_limits": {
|
| 15 |
+
"max_passage_chars": 4000,
|
| 16 |
+
"max_query_chars": 1200,
|
| 17 |
+
"passage_tokens": 2048,
|
| 18 |
+
"query_tokens": 512
|
| 19 |
+
},
|
| 20 |
+
"language_counts": {
|
| 21 |
+
"c": 95,
|
| 22 |
+
"cpp": 750,
|
| 23 |
+
"cuda": 1,
|
| 24 |
+
"go": 750,
|
| 25 |
+
"java": 750,
|
| 26 |
+
"javascript": 750,
|
| 27 |
+
"php": 750,
|
| 28 |
+
"python": 750,
|
| 29 |
+
"ruby": 750,
|
| 30 |
+
"rust": 750,
|
| 31 |
+
"shell": 6,
|
| 32 |
+
"swift": 1,
|
| 33 |
+
"toml": 129,
|
| 34 |
+
"typescript": 750,
|
| 35 |
+
"yaml": 13
|
| 36 |
+
},
|
| 37 |
+
"mlx_peak_memory_bytes": 1320441192,
|
| 38 |
+
"model_path": "artifacts/LFM2.5-Encoder-230M-Code-MXFP8-RTN",
|
| 39 |
+
"passage_seconds": 119.94889033399522,
|
| 40 |
+
"passages_per_second": 58.3165044755526,
|
| 41 |
+
"quantization": {
|
| 42 |
+
"algorithm": "native_rtn",
|
| 43 |
+
"bits": 8,
|
| 44 |
+
"group_size": 32,
|
| 45 |
+
"mode": "mxfp8"
|
| 46 |
+
},
|
| 47 |
+
"queries_per_second": 413.4218318652021,
|
| 48 |
+
"query_seconds": 16.9197644169908,
|
| 49 |
+
"samples": 6995,
|
| 50 |
+
"schema_version": 1,
|
| 51 |
+
"slices": {
|
| 52 |
+
"all": {
|
| 53 |
+
"mean_rank": 318.3835596854896,
|
| 54 |
+
"mrr": 0.38777249690740534,
|
| 55 |
+
"ndcg_at_10": 0.4138946491214988,
|
| 56 |
+
"recall_at_1": 0.31622587562544674,
|
| 57 |
+
"recall_at_10": 0.524517512508935,
|
| 58 |
+
"recall_at_5": 0.46218727662616155
|
| 59 |
+
},
|
| 60 |
+
"c": {
|
| 61 |
+
"mean_rank": 14.178947368421053,
|
| 62 |
+
"mrr": 0.2480698884076622,
|
| 63 |
+
"ndcg_at_10": 0.2903451775313697,
|
| 64 |
+
"recall_at_1": 0.09473684210526316,
|
| 65 |
+
"recall_at_10": 0.5052631578947369,
|
| 66 |
+
"recall_at_5": 0.3684210526315789,
|
| 67 |
+
"samples": 95
|
| 68 |
+
},
|
| 69 |
+
"cpp": {
|
| 70 |
+
"mean_rank": 227.28666666666666,
|
| 71 |
+
"mrr": 0.07960541958935241,
|
| 72 |
+
"ndcg_at_10": 0.0827365096024097,
|
| 73 |
+
"recall_at_1": 0.04533333333333334,
|
| 74 |
+
"recall_at_10": 0.128,
|
| 75 |
+
"recall_at_5": 0.10533333333333333,
|
| 76 |
+
"samples": 750
|
| 77 |
+
},
|
| 78 |
+
"cuda": {
|
| 79 |
+
"mean_rank": 1.0,
|
| 80 |
+
"mrr": 1.0,
|
| 81 |
+
"ndcg_at_10": 1.0,
|
| 82 |
+
"recall_at_1": 1.0,
|
| 83 |
+
"recall_at_10": 1.0,
|
| 84 |
+
"recall_at_5": 1.0,
|
| 85 |
+
"samples": 1
|
| 86 |
+
},
|
| 87 |
+
"go": {
|
| 88 |
+
"mean_rank": 13.714666666666666,
|
| 89 |
+
"mrr": 0.6451406130364074,
|
| 90 |
+
"ndcg_at_10": 0.6749326945802773,
|
| 91 |
+
"recall_at_1": 0.5613333333333334,
|
| 92 |
+
"recall_at_10": 0.788,
|
| 93 |
+
"recall_at_5": 0.7506666666666667,
|
| 94 |
+
"samples": 750
|
| 95 |
+
},
|
| 96 |
+
"java": {
|
| 97 |
+
"mean_rank": 34.62133333333333,
|
| 98 |
+
"mrr": 0.44964059537644935,
|
| 99 |
+
"ndcg_at_10": 0.4933172147389715,
|
| 100 |
+
"recall_at_1": 0.3413333333333333,
|
| 101 |
+
"recall_at_10": 0.6653333333333333,
|
| 102 |
+
"recall_at_5": 0.5746666666666667,
|
| 103 |
+
"samples": 750
|
| 104 |
+
},
|
| 105 |
+
"javascript": {
|
| 106 |
+
"mean_rank": 59.48,
|
| 107 |
+
"mrr": 0.4088492603300688,
|
| 108 |
+
"ndcg_at_10": 0.44388413728633486,
|
| 109 |
+
"recall_at_1": 0.316,
|
| 110 |
+
"recall_at_10": 0.588,
|
| 111 |
+
"recall_at_5": 0.5053333333333333,
|
| 112 |
+
"samples": 750
|
| 113 |
+
},
|
| 114 |
+
"php": {
|
| 115 |
+
"mean_rank": 15.325333333333333,
|
| 116 |
+
"mrr": 0.6807263126231564,
|
| 117 |
+
"ndcg_at_10": 0.7146804335855083,
|
| 118 |
+
"recall_at_1": 0.5946666666666667,
|
| 119 |
+
"recall_at_10": 0.84,
|
| 120 |
+
"recall_at_5": 0.7866666666666666,
|
| 121 |
+
"samples": 750
|
| 122 |
+
},
|
| 123 |
+
"python": {
|
| 124 |
+
"mean_rank": 10.936,
|
| 125 |
+
"mrr": 0.8322280649582166,
|
| 126 |
+
"ndcg_at_10": 0.8464951736368361,
|
| 127 |
+
"recall_at_1": 0.7906666666666666,
|
| 128 |
+
"recall_at_10": 0.9013333333333333,
|
| 129 |
+
"recall_at_5": 0.8773333333333333,
|
| 130 |
+
"samples": 750
|
| 131 |
+
},
|
| 132 |
+
"ruby": {
|
| 133 |
+
"mean_rank": 22.377333333333333,
|
| 134 |
+
"mrr": 0.6006517712327437,
|
| 135 |
+
"ndcg_at_10": 0.6391165334936353,
|
| 136 |
+
"recall_at_1": 0.5,
|
| 137 |
+
"recall_at_10": 0.784,
|
| 138 |
+
"recall_at_5": 0.7186666666666667,
|
| 139 |
+
"samples": 750
|
| 140 |
+
},
|
| 141 |
+
"rust": {
|
| 142 |
+
"mean_rank": 60.69466666666667,
|
| 143 |
+
"mrr": 0.33528446683412777,
|
| 144 |
+
"ndcg_at_10": 0.37268698776794584,
|
| 145 |
+
"recall_at_1": 0.23733333333333334,
|
| 146 |
+
"recall_at_10": 0.532,
|
| 147 |
+
"recall_at_5": 0.44133333333333336,
|
| 148 |
+
"samples": 750
|
| 149 |
+
},
|
| 150 |
+
"shell": {
|
| 151 |
+
"mean_rank": 1.5,
|
| 152 |
+
"mrr": 0.75,
|
| 153 |
+
"ndcg_at_10": 0.8154648767857289,
|
| 154 |
+
"recall_at_1": 0.5,
|
| 155 |
+
"recall_at_10": 1.0,
|
| 156 |
+
"recall_at_5": 1.0,
|
| 157 |
+
"samples": 6
|
| 158 |
+
},
|
| 159 |
+
"swift": {
|
| 160 |
+
"mean_rank": 1.0,
|
| 161 |
+
"mrr": 1.0,
|
| 162 |
+
"ndcg_at_10": 1.0,
|
| 163 |
+
"recall_at_1": 1.0,
|
| 164 |
+
"recall_at_10": 1.0,
|
| 165 |
+
"recall_at_5": 1.0,
|
| 166 |
+
"samples": 1
|
| 167 |
+
},
|
| 168 |
+
"toml": {
|
| 169 |
+
"mean_rank": 61.89147286821706,
|
| 170 |
+
"mrr": 0.0459972775685366,
|
| 171 |
+
"ndcg_at_10": 0.04114394751546567,
|
| 172 |
+
"recall_at_1": 0.007751937984496124,
|
| 173 |
+
"recall_at_10": 0.09302325581395349,
|
| 174 |
+
"recall_at_5": 0.046511627906976744,
|
| 175 |
+
"samples": 129
|
| 176 |
+
},
|
| 177 |
+
"typescript": {
|
| 178 |
+
"mean_rank": 112.56666666666666,
|
| 179 |
+
"mrr": 0.245858336730169,
|
| 180 |
+
"ndcg_at_10": 0.27290253549492455,
|
| 181 |
+
"recall_at_1": 0.17066666666666666,
|
| 182 |
+
"recall_at_10": 0.4026666666666667,
|
| 183 |
+
"recall_at_5": 0.316,
|
| 184 |
+
"samples": 750
|
| 185 |
+
},
|
| 186 |
+
"yaml": {
|
| 187 |
+
"mean_rank": 6.923076923076923,
|
| 188 |
+
"mrr": 0.33501028885644274,
|
| 189 |
+
"ndcg_at_10": 0.416197315076514,
|
| 190 |
+
"recall_at_1": 0.23076923076923078,
|
| 191 |
+
"recall_at_10": 0.7692307692307693,
|
| 192 |
+
"recall_at_5": 0.3076923076923077,
|
| 193 |
+
"samples": 13
|
| 194 |
+
}
|
| 195 |
+
}
|
| 196 |
+
}
|
benchmarks/nomic-v1.5-4k.json
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"corpus_sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315",
|
| 3 |
+
"dimensions": 768,
|
| 4 |
+
"endpoint": "http://127.0.0.1:1234/v1/embeddings",
|
| 5 |
+
"input_limits": {
|
| 6 |
+
"max_passage_chars": 4000,
|
| 7 |
+
"max_query_chars": 1200
|
| 8 |
+
},
|
| 9 |
+
"language_counts": {
|
| 10 |
+
"c": 95,
|
| 11 |
+
"cpp": 750,
|
| 12 |
+
"cuda": 1,
|
| 13 |
+
"go": 750,
|
| 14 |
+
"java": 750,
|
| 15 |
+
"javascript": 750,
|
| 16 |
+
"php": 750,
|
| 17 |
+
"python": 750,
|
| 18 |
+
"ruby": 750,
|
| 19 |
+
"rust": 750,
|
| 20 |
+
"shell": 6,
|
| 21 |
+
"swift": 1,
|
| 22 |
+
"toml": 129,
|
| 23 |
+
"typescript": 750,
|
| 24 |
+
"yaml": 13
|
| 25 |
+
},
|
| 26 |
+
"model": "text-embedding-nomic-embed-text-v1.5",
|
| 27 |
+
"passage_prefix": "search_document: ",
|
| 28 |
+
"passage_seconds": 132.80119991698302,
|
| 29 |
+
"passages_per_second": 52.67271684572677,
|
| 30 |
+
"queries_per_second": 224.34861416714068,
|
| 31 |
+
"query_prefix": "search_query: ",
|
| 32 |
+
"query_seconds": 31.179154040990397,
|
| 33 |
+
"samples": 6995,
|
| 34 |
+
"schema_version": 1,
|
| 35 |
+
"send_input_type": false,
|
| 36 |
+
"slices": {
|
| 37 |
+
"all": {
|
| 38 |
+
"mean_rank": 413.25461043602576,
|
| 39 |
+
"mrr": 0.5438699672924275,
|
| 40 |
+
"ndcg_at_10": 0.5594746856963334,
|
| 41 |
+
"recall_at_1": 0.496783416726233,
|
| 42 |
+
"recall_at_10": 0.6235882773409578,
|
| 43 |
+
"recall_at_5": 0.5954253037884203
|
| 44 |
+
},
|
| 45 |
+
"c": {
|
| 46 |
+
"mean_rank": 18.810526315789474,
|
| 47 |
+
"mrr": 0.3349304175997217,
|
| 48 |
+
"ndcg_at_10": 0.3758610556195194,
|
| 49 |
+
"recall_at_1": 0.24210526315789474,
|
| 50 |
+
"recall_at_10": 0.5684210526315789,
|
| 51 |
+
"recall_at_5": 0.4105263157894737,
|
| 52 |
+
"samples": 95
|
| 53 |
+
},
|
| 54 |
+
"cpp": {
|
| 55 |
+
"mean_rank": 225.484,
|
| 56 |
+
"mrr": 0.12252842251745079,
|
| 57 |
+
"ndcg_at_10": 0.12836393623470194,
|
| 58 |
+
"recall_at_1": 0.088,
|
| 59 |
+
"recall_at_10": 0.17333333333333334,
|
| 60 |
+
"recall_at_5": 0.14933333333333335,
|
| 61 |
+
"samples": 750
|
| 62 |
+
},
|
| 63 |
+
"cuda": {
|
| 64 |
+
"mean_rank": 1.0,
|
| 65 |
+
"mrr": 1.0,
|
| 66 |
+
"ndcg_at_10": 1.0,
|
| 67 |
+
"recall_at_1": 1.0,
|
| 68 |
+
"recall_at_10": 1.0,
|
| 69 |
+
"recall_at_5": 1.0,
|
| 70 |
+
"samples": 1
|
| 71 |
+
},
|
| 72 |
+
"go": {
|
| 73 |
+
"mean_rank": 6.317333333333333,
|
| 74 |
+
"mrr": 0.8176835590459496,
|
| 75 |
+
"ndcg_at_10": 0.8276220336511866,
|
| 76 |
+
"recall_at_1": 0.7826666666666666,
|
| 77 |
+
"recall_at_10": 0.8746666666666667,
|
| 78 |
+
"recall_at_5": 0.8506666666666667,
|
| 79 |
+
"samples": 750
|
| 80 |
+
},
|
| 81 |
+
"java": {
|
| 82 |
+
"mean_rank": 104.924,
|
| 83 |
+
"mrr": 0.42161124954745804,
|
| 84 |
+
"ndcg_at_10": 0.4292402209951097,
|
| 85 |
+
"recall_at_1": 0.38666666666666666,
|
| 86 |
+
"recall_at_10": 0.468,
|
| 87 |
+
"recall_at_5": 0.45866666666666667,
|
| 88 |
+
"samples": 750
|
| 89 |
+
},
|
| 90 |
+
"javascript": {
|
| 91 |
+
"mean_rank": 68.40133333333333,
|
| 92 |
+
"mrr": 0.5473207430288232,
|
| 93 |
+
"ndcg_at_10": 0.5634006679992984,
|
| 94 |
+
"recall_at_1": 0.49466666666666664,
|
| 95 |
+
"recall_at_10": 0.636,
|
| 96 |
+
"recall_at_5": 0.5986666666666667,
|
| 97 |
+
"samples": 750
|
| 98 |
+
},
|
| 99 |
+
"php": {
|
| 100 |
+
"mean_rank": 4.996,
|
| 101 |
+
"mrr": 0.9103270805518271,
|
| 102 |
+
"ndcg_at_10": 0.9227365731375411,
|
| 103 |
+
"recall_at_1": 0.8786666666666667,
|
| 104 |
+
"recall_at_10": 0.964,
|
| 105 |
+
"recall_at_5": 0.9466666666666667,
|
| 106 |
+
"samples": 750
|
| 107 |
+
},
|
| 108 |
+
"python": {
|
| 109 |
+
"mean_rank": 6.88,
|
| 110 |
+
"mrr": 0.9288619780756562,
|
| 111 |
+
"ndcg_at_10": 0.9362239763854979,
|
| 112 |
+
"recall_at_1": 0.9106666666666666,
|
| 113 |
+
"recall_at_10": 0.9626666666666667,
|
| 114 |
+
"recall_at_5": 0.9493333333333334,
|
| 115 |
+
"samples": 750
|
| 116 |
+
},
|
| 117 |
+
"ruby": {
|
| 118 |
+
"mean_rank": 16.56,
|
| 119 |
+
"mrr": 0.763520943146688,
|
| 120 |
+
"ndcg_at_10": 0.7915276677973523,
|
| 121 |
+
"recall_at_1": 0.6906666666666667,
|
| 122 |
+
"recall_at_10": 0.8893333333333333,
|
| 123 |
+
"recall_at_5": 0.8493333333333334,
|
| 124 |
+
"samples": 750
|
| 125 |
+
},
|
| 126 |
+
"rust": {
|
| 127 |
+
"mean_rank": 55.12266666666667,
|
| 128 |
+
"mrr": 0.5650338056304871,
|
| 129 |
+
"ndcg_at_10": 0.5979973067312523,
|
| 130 |
+
"recall_at_1": 0.476,
|
| 131 |
+
"recall_at_10": 0.7213333333333334,
|
| 132 |
+
"recall_at_5": 0.6653333333333333,
|
| 133 |
+
"samples": 750
|
| 134 |
+
},
|
| 135 |
+
"shell": {
|
| 136 |
+
"mean_rank": 1.6666666666666667,
|
| 137 |
+
"mrr": 0.7222222222222223,
|
| 138 |
+
"ndcg_at_10": 0.793643251190486,
|
| 139 |
+
"recall_at_1": 0.5,
|
| 140 |
+
"recall_at_10": 1.0,
|
| 141 |
+
"recall_at_5": 1.0,
|
| 142 |
+
"samples": 6
|
| 143 |
+
},
|
| 144 |
+
"swift": {
|
| 145 |
+
"mean_rank": 1.0,
|
| 146 |
+
"mrr": 1.0,
|
| 147 |
+
"ndcg_at_10": 1.0,
|
| 148 |
+
"recall_at_1": 1.0,
|
| 149 |
+
"recall_at_10": 1.0,
|
| 150 |
+
"recall_at_5": 1.0,
|
| 151 |
+
"samples": 1
|
| 152 |
+
},
|
| 153 |
+
"toml": {
|
| 154 |
+
"mean_rank": 55.5968992248062,
|
| 155 |
+
"mrr": 0.06632606113659928,
|
| 156 |
+
"ndcg_at_10": 0.06936890220881972,
|
| 157 |
+
"recall_at_1": 0.015503875968992248,
|
| 158 |
+
"recall_at_10": 0.14728682170542637,
|
| 159 |
+
"recall_at_5": 0.07751937984496124,
|
| 160 |
+
"samples": 129
|
| 161 |
+
},
|
| 162 |
+
"typescript": {
|
| 163 |
+
"mean_rank": 136.64533333333333,
|
| 164 |
+
"mrr": 0.3616946912432509,
|
| 165 |
+
"ndcg_at_10": 0.3814741977323122,
|
| 166 |
+
"recall_at_1": 0.3,
|
| 167 |
+
"recall_at_10": 0.4706666666666667,
|
| 168 |
+
"recall_at_5": 0.4226666666666667,
|
| 169 |
+
"samples": 750
|
| 170 |
+
},
|
| 171 |
+
"yaml": {
|
| 172 |
+
"mean_rank": 5.615384615384615,
|
| 173 |
+
"mrr": 0.38293181177796565,
|
| 174 |
+
"ndcg_at_10": 0.4801945648018741,
|
| 175 |
+
"recall_at_1": 0.23076923076923078,
|
| 176 |
+
"recall_at_10": 0.8461538461538461,
|
| 177 |
+
"recall_at_5": 0.5384615384615384,
|
| 178 |
+
"samples": 13
|
| 179 |
+
}
|
| 180 |
+
}
|
| 181 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{- bos_token -}}
|
| 2 |
+
{%- set keep_past_thinking = keep_past_thinking | default(false) -%}
|
| 3 |
+
{%- set ns = namespace(system_prompt="") -%}
|
| 4 |
+
{%- if messages[0]["role"] == "system" -%}
|
| 5 |
+
{%- set sys_content = messages[0]["content"] -%}
|
| 6 |
+
{%- if sys_content is not string -%}
|
| 7 |
+
{%- for item in sys_content -%}
|
| 8 |
+
{%- if item["type"] == "text" -%}
|
| 9 |
+
{%- set ns.system_prompt = ns.system_prompt + item["text"] -%}
|
| 10 |
+
{%- endif -%}
|
| 11 |
+
{%- endfor -%}
|
| 12 |
+
{%- else -%}
|
| 13 |
+
{%- set ns.system_prompt = sys_content -%}
|
| 14 |
+
{%- endif -%}
|
| 15 |
+
{%- set messages = messages[1:] -%}
|
| 16 |
+
{%- endif -%}
|
| 17 |
+
{%- if tools -%}
|
| 18 |
+
{%- set ns.system_prompt = ns.system_prompt + ("\n" if ns.system_prompt else "") + "List of tools: [" -%}
|
| 19 |
+
{%- for tool in tools -%}
|
| 20 |
+
{%- if tool is not string -%}
|
| 21 |
+
{%- set tool = tool | tojson -%}
|
| 22 |
+
{%- endif -%}
|
| 23 |
+
{%- set ns.system_prompt = ns.system_prompt + tool -%}
|
| 24 |
+
{%- if not loop.last -%}
|
| 25 |
+
{%- set ns.system_prompt = ns.system_prompt + ", " -%}
|
| 26 |
+
{%- endif -%}
|
| 27 |
+
{%- endfor -%}
|
| 28 |
+
{%- set ns.system_prompt = ns.system_prompt + "]" -%}
|
| 29 |
+
{%- endif -%}
|
| 30 |
+
{%- if ns.system_prompt -%}
|
| 31 |
+
{{- "<|im_start|>system\n" + ns.system_prompt + "<|im_end|>\n" -}}
|
| 32 |
+
{%- endif -%}
|
| 33 |
+
{%- set ns.last_assistant_index = -1 -%}
|
| 34 |
+
{%- for message in messages -%}
|
| 35 |
+
{%- if message["role"] == "assistant" -%}
|
| 36 |
+
{%- set ns.last_assistant_index = loop.index0 -%}
|
| 37 |
+
{%- endif -%}
|
| 38 |
+
{%- endfor -%}
|
| 39 |
+
{%- for message in messages -%}
|
| 40 |
+
{{- "<|im_start|>" + message["role"] + "\n" -}}
|
| 41 |
+
{%- set content = message["content"] -%}
|
| 42 |
+
{%- if content is not string -%}
|
| 43 |
+
{%- set ns.content = "" -%}
|
| 44 |
+
{%- for item in content -%}
|
| 45 |
+
{%- if item["type"] == "image" -%}
|
| 46 |
+
{%- set ns.content = ns.content + "<image>" -%}
|
| 47 |
+
{%- elif item["type"] == "text" -%}
|
| 48 |
+
{%- set ns.content = ns.content + item["text"] -%}
|
| 49 |
+
{%- else -%}
|
| 50 |
+
{%- set ns.content = ns.content + item | tojson -%}
|
| 51 |
+
{%- endif -%}
|
| 52 |
+
{%- endfor -%}
|
| 53 |
+
{%- set content = ns.content -%}
|
| 54 |
+
{%- endif -%}
|
| 55 |
+
{%- if message["role"] == "assistant" and not keep_past_thinking and loop.index0 != ns.last_assistant_index -%}
|
| 56 |
+
{%- if "</think>" in content -%}
|
| 57 |
+
{%- set content = content.split("</think>")[-1] | trim -%}
|
| 58 |
+
{%- endif -%}
|
| 59 |
+
{%- endif -%}
|
| 60 |
+
{{- content + "<|im_end|>\n" -}}
|
| 61 |
+
{%- endfor -%}
|
| 62 |
+
{%- if add_generation_prompt -%}
|
| 63 |
+
{{- "<|im_start|>assistant\n" -}}
|
| 64 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Lfm2BidirectionalModel"
|
| 4 |
+
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoModel": "modeling_lfm2_bidirectional.Lfm2BidirectionalModel",
|
| 7 |
+
"AutoModelForMaskedLM": "modeling_lfm2_bidirectional.Lfm2BidirectionalForMaskedLM"
|
| 8 |
+
},
|
| 9 |
+
"block_auto_adjust_ff_dim": false,
|
| 10 |
+
"block_dim": 1024,
|
| 11 |
+
"block_ffn_dim_multiplier": 1.0,
|
| 12 |
+
"block_mlp_init_scale": 1.0,
|
| 13 |
+
"block_multiple_of": 256,
|
| 14 |
+
"block_norm_eps": 1e-05,
|
| 15 |
+
"block_out_init_scale": 1.0,
|
| 16 |
+
"block_use_swiglu": true,
|
| 17 |
+
"block_use_xavier_init": true,
|
| 18 |
+
"bos_token_id": 1,
|
| 19 |
+
"conv_L_cache": 3,
|
| 20 |
+
"conv_bias": false,
|
| 21 |
+
"conv_dim": 1024,
|
| 22 |
+
"conv_use_xavier_init": true,
|
| 23 |
+
"dtype": "bfloat16",
|
| 24 |
+
"eos_token_id": 7,
|
| 25 |
+
"full_attn_idxs": null,
|
| 26 |
+
"hidden_size": 1024,
|
| 27 |
+
"initializer_range": 0.02,
|
| 28 |
+
"intermediate_size": 2560,
|
| 29 |
+
"layer_types": [
|
| 30 |
+
"conv",
|
| 31 |
+
"conv",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"conv",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"conv",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"conv",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"conv",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"conv",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"conv"
|
| 44 |
+
],
|
| 45 |
+
"max_position_embeddings": 128000,
|
| 46 |
+
"model_type": "lfm2",
|
| 47 |
+
"norm_eps": 1e-05,
|
| 48 |
+
"num_attention_heads": 16,
|
| 49 |
+
"num_heads": 16,
|
| 50 |
+
"num_hidden_layers": 14,
|
| 51 |
+
"num_key_value_heads": 8,
|
| 52 |
+
"pad_token_id": 0,
|
| 53 |
+
"rope_parameters": {
|
| 54 |
+
"rope_theta": 1000000.0,
|
| 55 |
+
"rope_type": "default"
|
| 56 |
+
},
|
| 57 |
+
"tie_word_embeddings": true,
|
| 58 |
+
"transformers_version": "5.14.1",
|
| 59 |
+
"use_cache": false,
|
| 60 |
+
"use_pos_enc": true,
|
| 61 |
+
"vocab_size": 65536,
|
| 62 |
+
"quantization": {
|
| 63 |
+
"group_size": 32,
|
| 64 |
+
"bits": 4,
|
| 65 |
+
"mode": "mxfp4",
|
| 66 |
+
"algorithm": "activation_calibrated_block_gptq"
|
| 67 |
+
}
|
| 68 |
+
}
|
corpus_receipt.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifacts": {
|
| 3 |
+
"calibration.jsonl": {
|
| 4 |
+
"rows": 4096,
|
| 5 |
+
"sha256": "ee9edaf80a6854c18053b96521090a51bdb76642abeb98618d7aed36e70b6de9"
|
| 6 |
+
},
|
| 7 |
+
"duplicates.jsonl": {
|
| 8 |
+
"rows": 1401,
|
| 9 |
+
"sha256": "2ddc5b1b0eaadffd9b9e7b7556f4a756c6d0b0857a509236ae3e090a9d17ad16"
|
| 10 |
+
},
|
| 11 |
+
"test.jsonl": {
|
| 12 |
+
"rows": 6995,
|
| 13 |
+
"sha256": "9ed10842a12132b6bfb5421df1e2f88dbcfbf6f6e960f36b22eb9ea6e3c72315"
|
| 14 |
+
},
|
| 15 |
+
"train.jsonl": {
|
| 16 |
+
"rows": 42626,
|
| 17 |
+
"sha256": "426ebfaad34b14d7627ba6e668ae36e08e548c9d057b0edc208bcfa6fe527629"
|
| 18 |
+
},
|
| 19 |
+
"validation.jsonl": {
|
| 20 |
+
"rows": 5319,
|
| 21 |
+
"sha256": "9ac88b3138de4ca94c2ef3a87ccf19381fc76265c2bc9d65b4791983d0315096"
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"codesearchnet": {
|
| 25 |
+
"languages": [
|
| 26 |
+
"go",
|
| 27 |
+
"java",
|
| 28 |
+
"javascript",
|
| 29 |
+
"php",
|
| 30 |
+
"python",
|
| 31 |
+
"ruby"
|
| 32 |
+
],
|
| 33 |
+
"local_root": "/Users/kearm/datasets/calibrated-code-embeddings/code-search-net",
|
| 34 |
+
"repository": "code-search-net/code_search_net",
|
| 35 |
+
"revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"
|
| 36 |
+
},
|
| 37 |
+
"configuration": {
|
| 38 |
+
"calibration_rows": 4096,
|
| 39 |
+
"calibration_sampling": "deterministic_language_round_robin_v2",
|
| 40 |
+
"evaluation_precedence_during_dedup": [
|
| 41 |
+
"test",
|
| 42 |
+
"validation",
|
| 43 |
+
"train"
|
| 44 |
+
],
|
| 45 |
+
"near_duplicate_threshold": 0.82,
|
| 46 |
+
"ngram_size": 8,
|
| 47 |
+
"per_repo_language": 3000,
|
| 48 |
+
"test": 750,
|
| 49 |
+
"train": 6000,
|
| 50 |
+
"validation": 750
|
| 51 |
+
},
|
| 52 |
+
"counts": {
|
| 53 |
+
"test/c/pinned_repository": 95,
|
| 54 |
+
"test/cpp/pinned_repository": 750,
|
| 55 |
+
"test/cuda/pinned_repository": 1,
|
| 56 |
+
"test/go/codesearchnet": 750,
|
| 57 |
+
"test/java/codesearchnet": 268,
|
| 58 |
+
"test/java/pinned_repository": 482,
|
| 59 |
+
"test/javascript/codesearchnet": 332,
|
| 60 |
+
"test/javascript/pinned_repository": 418,
|
| 61 |
+
"test/php/codesearchnet": 750,
|
| 62 |
+
"test/python/codesearchnet": 631,
|
| 63 |
+
"test/python/pinned_repository": 119,
|
| 64 |
+
"test/ruby/codesearchnet": 750,
|
| 65 |
+
"test/rust/pinned_repository": 750,
|
| 66 |
+
"test/shell/pinned_repository": 6,
|
| 67 |
+
"test/swift/pinned_repository": 1,
|
| 68 |
+
"test/toml/pinned_repository": 129,
|
| 69 |
+
"test/typescript/pinned_repository": 750,
|
| 70 |
+
"test/yaml/pinned_repository": 13,
|
| 71 |
+
"train/c/pinned_repository": 389,
|
| 72 |
+
"train/cpp/pinned_repository": 268,
|
| 73 |
+
"train/cuda/pinned_repository": 1,
|
| 74 |
+
"train/go/codesearchnet": 6000,
|
| 75 |
+
"train/java/codesearchnet": 6000,
|
| 76 |
+
"train/javascript/codesearchnet": 4939,
|
| 77 |
+
"train/javascript/pinned_repository": 1061,
|
| 78 |
+
"train/php/codesearchnet": 6000,
|
| 79 |
+
"train/python/codesearchnet": 5984,
|
| 80 |
+
"train/python/pinned_repository": 16,
|
| 81 |
+
"train/ruby/codesearchnet": 6000,
|
| 82 |
+
"train/rust/pinned_repository": 2980,
|
| 83 |
+
"train/shell/pinned_repository": 2,
|
| 84 |
+
"train/toml/pinned_repository": 21,
|
| 85 |
+
"train/typescript/pinned_repository": 2945,
|
| 86 |
+
"train/yaml/pinned_repository": 20,
|
| 87 |
+
"validation/go/codesearchnet": 561,
|
| 88 |
+
"validation/go/pinned_repository": 189,
|
| 89 |
+
"validation/java/codesearchnet": 750,
|
| 90 |
+
"validation/javascript/codesearchnet": 580,
|
| 91 |
+
"validation/javascript/pinned_repository": 170,
|
| 92 |
+
"validation/php/codesearchnet": 750,
|
| 93 |
+
"validation/python/codesearchnet": 590,
|
| 94 |
+
"validation/python/pinned_repository": 160,
|
| 95 |
+
"validation/ruby/codesearchnet": 750,
|
| 96 |
+
"validation/toml/pinned_repository": 8,
|
| 97 |
+
"validation/typescript/pinned_repository": 750,
|
| 98 |
+
"validation/yaml/pinned_repository": 61
|
| 99 |
+
},
|
| 100 |
+
"input_pairs": 118039,
|
| 101 |
+
"local_source": "/Users/kearm/datasets/calibrated-code-embeddings/source-repos",
|
| 102 |
+
"repo_manifest": "/Users/kearm/AlphaHENG/contrib/calibrated-code-embeddings/sources/repos.json",
|
| 103 |
+
"schema_version": 1,
|
| 104 |
+
"selected_pairs": 54940,
|
| 105 |
+
"unique_pairs": 116638
|
| 106 |
+
}
|
embedding_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pooling": "attention_mask_mean",
|
| 3 |
+
"normalize": true,
|
| 4 |
+
"dimensions": 1024,
|
| 5 |
+
"query_prefix": "query: ",
|
| 6 |
+
"passage_prefix": "passage: "
|
| 7 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3c6540a9580560630ec5a5179c71872c16eff32f633e234114df814cb3a3a94
|
| 3 |
+
size 220693600
|
modeling_lfm2_bidirectional.py
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""LFM2 backbone with bidirectional attention + non-causal short-conv.
|
| 2 |
+
|
| 3 |
+
Wired into the HF repo via `auto_map` in config.json so that
|
| 4 |
+
|
| 5 |
+
AutoModel.from_pretrained(repo, trust_remote_code=True)
|
| 6 |
+
AutoModelForMaskedLM.from_pretrained(repo, trust_remote_code=True)
|
| 7 |
+
|
| 8 |
+
both return a model with the encoder-style patches already applied.
|
| 9 |
+
|
| 10 |
+
Supports `attn_implementation` in {"eager", "sdpa", "flash_attention_2"}:
|
| 11 |
+
|
| 12 |
+
eager/sdpa consume a 4D additive pad-only mask and reproduce the exact
|
| 13 |
+
training-time behavior; flash_attention_2 receives the 2D padding mask (or
|
| 14 |
+
None) and runs the kernel non-causally via `Lfm2Attention.is_causal = False`,
|
| 15 |
+
yielding outputs equivalent to the unpadded forward.
|
| 16 |
+
"""
|
| 17 |
+
|
| 18 |
+
from typing import Optional
|
| 19 |
+
|
| 20 |
+
import torch
|
| 21 |
+
import torch.nn as nn
|
| 22 |
+
import torch.nn.functional as F
|
| 23 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 24 |
+
from transformers.modeling_outputs import BaseModelOutput, MaskedLMOutput
|
| 25 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 26 |
+
from transformers.models.lfm2 import modeling_lfm2 as _lfm2_mod
|
| 27 |
+
from transformers.models.lfm2.configuration_lfm2 import Lfm2Config
|
| 28 |
+
from transformers.models.lfm2.modeling_lfm2 import (
|
| 29 |
+
Lfm2Attention,
|
| 30 |
+
Lfm2Model,
|
| 31 |
+
Lfm2PreTrainedModel,
|
| 32 |
+
Lfm2ShortConv,
|
| 33 |
+
apply_mask_to_padding_states,
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _bidirectional_mask(
|
| 38 |
+
config,
|
| 39 |
+
input_embeds: torch.Tensor = None,
|
| 40 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 41 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 42 |
+
past_key_values=None,
|
| 43 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 44 |
+
**kwargs,
|
| 45 |
+
) -> Optional[torch.Tensor]:
|
| 46 |
+
# transformers has renamed the embeds kwarg across versions
|
| 47 |
+
# (input_embeds <-> inputs_embeds); accept either to stay forward-compatible.
|
| 48 |
+
if input_embeds is None:
|
| 49 |
+
input_embeds = kwargs.get("inputs_embeds")
|
| 50 |
+
|
| 51 |
+
if config._attn_implementation == "flash_attention_2":
|
| 52 |
+
# FA2 only uses the 2D padding mask to unpad sequences; causality is
|
| 53 |
+
# controlled by `Lfm2Attention.is_causal` (set to False below).
|
| 54 |
+
if attention_mask is not None and not attention_mask.all():
|
| 55 |
+
return attention_mask
|
| 56 |
+
return None
|
| 57 |
+
|
| 58 |
+
device = input_embeds.device
|
| 59 |
+
dtype = input_embeds.dtype
|
| 60 |
+
bsz, q_len = input_embeds.shape[:2]
|
| 61 |
+
past = past_key_values.get_seq_length() if past_key_values is not None else 0
|
| 62 |
+
kv_len = past + q_len
|
| 63 |
+
|
| 64 |
+
mask = torch.zeros((bsz, 1, q_len, kv_len), device=device, dtype=dtype)
|
| 65 |
+
if attention_mask is not None:
|
| 66 |
+
cur_len = attention_mask.size(-1)
|
| 67 |
+
key_pad_flags = (attention_mask == 0).to(device=device, dtype=torch.float32)
|
| 68 |
+
pad_vec = torch.zeros((bsz, kv_len), device=device, dtype=torch.float32)
|
| 69 |
+
if cur_len > 0:
|
| 70 |
+
pad_vec[:, past:past + cur_len] = key_pad_flags * -1e9
|
| 71 |
+
mask = mask + pad_vec.to(dtype)[:, None, None, :]
|
| 72 |
+
return mask
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def _noncausal_shortconv_forward(
|
| 76 |
+
self,
|
| 77 |
+
hidden_states: torch.Tensor,
|
| 78 |
+
past_key_values=None,
|
| 79 |
+
cache_position=None,
|
| 80 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 81 |
+
**kwargs,
|
| 82 |
+
) -> torch.Tensor:
|
| 83 |
+
x = apply_mask_to_padding_states(hidden_states, attention_mask)
|
| 84 |
+
|
| 85 |
+
BCx = self.in_proj(x).transpose(-1, -2)
|
| 86 |
+
B, C, x = BCx.chunk(3, dim=-2)
|
| 87 |
+
Bx = B * x
|
| 88 |
+
|
| 89 |
+
k = self.conv.weight.shape[-1]
|
| 90 |
+
pad = k // 2
|
| 91 |
+
conv_out = F.conv1d(
|
| 92 |
+
Bx, weight=self.conv.weight, bias=self.conv.bias,
|
| 93 |
+
stride=1, padding=pad, dilation=1, groups=Bx.shape[1],
|
| 94 |
+
)
|
| 95 |
+
if conv_out.shape[-1] > Bx.shape[-1]:
|
| 96 |
+
conv_out = conv_out[..., :Bx.shape[-1]]
|
| 97 |
+
elif conv_out.shape[-1] < Bx.shape[-1]:
|
| 98 |
+
conv_out = F.pad(conv_out, (0, Bx.shape[-1] - conv_out.shape[-1]))
|
| 99 |
+
|
| 100 |
+
y = C * conv_out
|
| 101 |
+
y = y.transpose(-1, -2).contiguous()
|
| 102 |
+
return self.out_proj(y)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def _shortconv_forward(self, *args, **kwargs):
|
| 106 |
+
return self.slow_forward(*args, **kwargs)
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
_PATCHED = False
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def _install_patches() -> None:
|
| 113 |
+
global _PATCHED
|
| 114 |
+
if _PATCHED:
|
| 115 |
+
return
|
| 116 |
+
_lfm2_mod.create_causal_mask = _bidirectional_mask
|
| 117 |
+
Lfm2ShortConv.slow_forward = _noncausal_shortconv_forward
|
| 118 |
+
Lfm2ShortConv.forward = _shortconv_forward
|
| 119 |
+
_PATCHED = True
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
_install_patches()
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def _set_attention_noncausal(model) -> None:
|
| 126 |
+
for module in model.modules():
|
| 127 |
+
if isinstance(module, Lfm2Attention):
|
| 128 |
+
module.is_causal = False
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
class Lfm2BidirectionalModel(Lfm2Model):
|
| 132 |
+
"""LFM2 patched for encoder-style use:
|
| 133 |
+
full bidirectional attention + non-causal short-conv."""
|
| 134 |
+
|
| 135 |
+
def __init__(self, config):
|
| 136 |
+
_install_patches()
|
| 137 |
+
super().__init__(config)
|
| 138 |
+
_set_attention_noncausal(self)
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
class Lfm2BidirectionalForMaskedLM(Lfm2PreTrainedModel):
|
| 142 |
+
"""LFM2 bidirectional encoder with a tied masked-LM head."""
|
| 143 |
+
|
| 144 |
+
config_class = Lfm2Config
|
| 145 |
+
base_model_prefix = "lfm2"
|
| 146 |
+
_tied_weights_keys = {"lm_head.weight": "lfm2.embed_tokens.weight"}
|
| 147 |
+
|
| 148 |
+
def __init__(self, config: Lfm2Config):
|
| 149 |
+
_install_patches()
|
| 150 |
+
config = type(config).from_dict({**config.to_dict(), "use_cache": False})
|
| 151 |
+
super().__init__(config)
|
| 152 |
+
self.lfm2 = Lfm2BidirectionalModel(config)
|
| 153 |
+
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
|
| 154 |
+
self.post_init()
|
| 155 |
+
self.lm_head.weight = self.lfm2.embed_tokens.weight
|
| 156 |
+
|
| 157 |
+
def get_input_embeddings(self):
|
| 158 |
+
return self.lfm2.embed_tokens
|
| 159 |
+
|
| 160 |
+
def set_input_embeddings(self, value):
|
| 161 |
+
self.lfm2.embed_tokens = value
|
| 162 |
+
|
| 163 |
+
def get_output_embeddings(self):
|
| 164 |
+
return self.lm_head
|
| 165 |
+
|
| 166 |
+
def set_output_embeddings(self, new_embeddings):
|
| 167 |
+
self.lm_head = new_embeddings
|
| 168 |
+
|
| 169 |
+
def forward(
|
| 170 |
+
self,
|
| 171 |
+
input_ids: Optional[torch.LongTensor] = None,
|
| 172 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 173 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 174 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 175 |
+
labels: Optional[torch.LongTensor] = None,
|
| 176 |
+
output_hidden_states: Optional[bool] = None,
|
| 177 |
+
output_attentions: Optional[bool] = None,
|
| 178 |
+
return_dict: Optional[bool] = None,
|
| 179 |
+
**kwargs,
|
| 180 |
+
) -> MaskedLMOutput:
|
| 181 |
+
return_dict = True if return_dict is None else return_dict
|
| 182 |
+
outputs = self.lfm2(
|
| 183 |
+
input_ids=input_ids,
|
| 184 |
+
attention_mask=attention_mask,
|
| 185 |
+
position_ids=position_ids,
|
| 186 |
+
inputs_embeds=inputs_embeds,
|
| 187 |
+
use_cache=False,
|
| 188 |
+
output_attentions=output_attentions,
|
| 189 |
+
output_hidden_states=output_hidden_states,
|
| 190 |
+
return_dict=True,
|
| 191 |
+
)
|
| 192 |
+
hidden = outputs.last_hidden_state
|
| 193 |
+
logits = self.lm_head(hidden)
|
| 194 |
+
|
| 195 |
+
loss = None
|
| 196 |
+
if labels is not None:
|
| 197 |
+
loss = F.cross_entropy(
|
| 198 |
+
logits.view(-1, self.config.vocab_size),
|
| 199 |
+
labels.view(-1),
|
| 200 |
+
ignore_index=-100,
|
| 201 |
+
)
|
| 202 |
+
|
| 203 |
+
if not return_dict:
|
| 204 |
+
out = (logits,) + outputs[1:]
|
| 205 |
+
return ((loss,) + out) if loss is not None else out
|
| 206 |
+
return MaskedLMOutput(
|
| 207 |
+
loss=loss,
|
| 208 |
+
logits=logits,
|
| 209 |
+
hidden_states=outputs.hidden_states,
|
| 210 |
+
attentions=outputs.attentions,
|
| 211 |
+
)
|
modules.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": "",
|
| 6 |
+
"type": "sentence_transformers.models.Transformer"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_Pooling",
|
| 12 |
+
"type": "sentence_transformers.models.Pooling"
|
| 13 |
+
}
|
| 14 |
+
]
|
quantization_report.json
ADDED
|
@@ -0,0 +1,1264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"algorithm": "activation_calibrated_block_gptq_mxfp4_cuda",
|
| 3 |
+
"scope": "exact 32x32 Hessian and GPTQ error propagation within each MXFP4 group",
|
| 4 |
+
"source_model": "/home/ubuntu/LFM2.5-Encoder-230M-Code-BF16",
|
| 5 |
+
"source_revision": null,
|
| 6 |
+
"corpus_sha256": "ee9edaf80a6854c18053b96521090a51bdb76642abeb98618d7aed36e70b6de9",
|
| 7 |
+
"calibration": {
|
| 8 |
+
"samples": 256,
|
| 9 |
+
"sequence_length": 512,
|
| 10 |
+
"tokens": 131072,
|
| 11 |
+
"tokens_sha256": "b70b7dbcca44bd4febb6db72971ad810eb47f3bf841e468dc22b38a6ba341526",
|
| 12 |
+
"damp": 0.01,
|
| 13 |
+
"scale_offsets": [
|
| 14 |
+
0,
|
| 15 |
+
-1,
|
| 16 |
+
-2,
|
| 17 |
+
-3,
|
| 18 |
+
-4,
|
| 19 |
+
1,
|
| 20 |
+
2
|
| 21 |
+
]
|
| 22 |
+
},
|
| 23 |
+
"weighted_error_rtn": 505317880.31762695,
|
| 24 |
+
"weighted_error_calibrated": 356940396.227417,
|
| 25 |
+
"elapsed_seconds": 23.01606387999982,
|
| 26 |
+
"cuda": {
|
| 27 |
+
"device": "NVIDIA RTX A6000",
|
| 28 |
+
"torch": "2.13.0+cu130",
|
| 29 |
+
"peak_memory_bytes": 562977792
|
| 30 |
+
},
|
| 31 |
+
"layers": [
|
| 32 |
+
{
|
| 33 |
+
"path": "layers.0.conv.in_proj",
|
| 34 |
+
"shape": [
|
| 35 |
+
3072,
|
| 36 |
+
1024
|
| 37 |
+
],
|
| 38 |
+
"calibration_tokens": 131072,
|
| 39 |
+
"layer_index": 1,
|
| 40 |
+
"layer_count": 82,
|
| 41 |
+
"elapsed_seconds": 0.7302635199998804,
|
| 42 |
+
"weighted_error_rtn": 465031.37890625,
|
| 43 |
+
"weighted_error_gptq_base_scale": 396509.3837890625,
|
| 44 |
+
"weighted_error_calibrated": 320652.3486328125,
|
| 45 |
+
"improvement_vs_rtn": 0.3104715871281972
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"path": "layers.0.conv.out_proj",
|
| 49 |
+
"shape": [
|
| 50 |
+
1024,
|
| 51 |
+
1024
|
| 52 |
+
],
|
| 53 |
+
"calibration_tokens": 131072,
|
| 54 |
+
"layer_index": 2,
|
| 55 |
+
"layer_count": 82,
|
| 56 |
+
"elapsed_seconds": 0.17090921299995898,
|
| 57 |
+
"weighted_error_rtn": 8615.781311035156,
|
| 58 |
+
"weighted_error_gptq_base_scale": 7878.937805175781,
|
| 59 |
+
"weighted_error_calibrated": 6415.811828613281,
|
| 60 |
+
"improvement_vs_rtn": 0.25534184341519184
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"path": "layers.0.feed_forward.w1",
|
| 64 |
+
"shape": [
|
| 65 |
+
2560,
|
| 66 |
+
1024
|
| 67 |
+
],
|
| 68 |
+
"calibration_tokens": 131072,
|
| 69 |
+
"layer_index": 3,
|
| 70 |
+
"layer_count": 82,
|
| 71 |
+
"elapsed_seconds": 0.4433930490001785,
|
| 72 |
+
"weighted_error_rtn": 107080.61669921875,
|
| 73 |
+
"weighted_error_gptq_base_scale": 90540.9814453125,
|
| 74 |
+
"weighted_error_calibrated": 71210.70288085938,
|
| 75 |
+
"improvement_vs_rtn": 0.3349804560718511
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"path": "layers.0.feed_forward.w3",
|
| 79 |
+
"shape": [
|
| 80 |
+
2560,
|
| 81 |
+
1024
|
| 82 |
+
],
|
| 83 |
+
"calibration_tokens": 131072,
|
| 84 |
+
"layer_index": 4,
|
| 85 |
+
"layer_count": 82,
|
| 86 |
+
"elapsed_seconds": 0.41240205400004015,
|
| 87 |
+
"weighted_error_rtn": 86398.70263671875,
|
| 88 |
+
"weighted_error_gptq_base_scale": 78179.681640625,
|
| 89 |
+
"weighted_error_calibrated": 64573.067138671875,
|
| 90 |
+
"improvement_vs_rtn": 0.25261531518380875
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"path": "layers.0.feed_forward.w2",
|
| 94 |
+
"shape": [
|
| 95 |
+
1024,
|
| 96 |
+
2560
|
| 97 |
+
],
|
| 98 |
+
"calibration_tokens": 131072,
|
| 99 |
+
"layer_index": 5,
|
| 100 |
+
"layer_count": 82,
|
| 101 |
+
"elapsed_seconds": 0.18076641900006507,
|
| 102 |
+
"weighted_error_rtn": 49386.3984375,
|
| 103 |
+
"weighted_error_gptq_base_scale": 47553.485107421875,
|
| 104 |
+
"weighted_error_calibrated": 32955.8974609375,
|
| 105 |
+
"improvement_vs_rtn": 0.33269283641640324
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"path": "layers.1.conv.in_proj",
|
| 109 |
+
"shape": [
|
| 110 |
+
3072,
|
| 111 |
+
1024
|
| 112 |
+
],
|
| 113 |
+
"calibration_tokens": 131072,
|
| 114 |
+
"layer_index": 6,
|
| 115 |
+
"layer_count": 82,
|
| 116 |
+
"elapsed_seconds": 0.5069028970001455,
|
| 117 |
+
"weighted_error_rtn": 449397.3828125,
|
| 118 |
+
"weighted_error_gptq_base_scale": 397630.1494140625,
|
| 119 |
+
"weighted_error_calibrated": 319702.015625,
|
| 120 |
+
"improvement_vs_rtn": 0.28859840343487764
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"path": "layers.1.conv.out_proj",
|
| 124 |
+
"shape": [
|
| 125 |
+
1024,
|
| 126 |
+
1024
|
| 127 |
+
],
|
| 128 |
+
"calibration_tokens": 131072,
|
| 129 |
+
"layer_index": 7,
|
| 130 |
+
"layer_count": 82,
|
| 131 |
+
"elapsed_seconds": 0.1715095030001521,
|
| 132 |
+
"weighted_error_rtn": 6299.07958984375,
|
| 133 |
+
"weighted_error_gptq_base_scale": 5973.392822265625,
|
| 134 |
+
"weighted_error_calibrated": 4954.2344970703125,
|
| 135 |
+
"improvement_vs_rtn": 0.21349866652610383
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"path": "layers.1.feed_forward.w1",
|
| 139 |
+
"shape": [
|
| 140 |
+
2560,
|
| 141 |
+
1024
|
| 142 |
+
],
|
| 143 |
+
"calibration_tokens": 131072,
|
| 144 |
+
"layer_index": 8,
|
| 145 |
+
"layer_count": 82,
|
| 146 |
+
"elapsed_seconds": 0.42858754300004875,
|
| 147 |
+
"weighted_error_rtn": 109829.685546875,
|
| 148 |
+
"weighted_error_gptq_base_scale": 97518.865234375,
|
| 149 |
+
"weighted_error_calibrated": 77416.8955078125,
|
| 150 |
+
"improvement_vs_rtn": 0.29511866375351514
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"path": "layers.1.feed_forward.w3",
|
| 154 |
+
"shape": [
|
| 155 |
+
2560,
|
| 156 |
+
1024
|
| 157 |
+
],
|
| 158 |
+
"calibration_tokens": 131072,
|
| 159 |
+
"layer_index": 9,
|
| 160 |
+
"layer_count": 82,
|
| 161 |
+
"elapsed_seconds": 0.42105133800009753,
|
| 162 |
+
"weighted_error_rtn": 95162.142578125,
|
| 163 |
+
"weighted_error_gptq_base_scale": 86884.654296875,
|
| 164 |
+
"weighted_error_calibrated": 70707.65209960938,
|
| 165 |
+
"improvement_vs_rtn": 0.2569770900065569
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"path": "layers.1.feed_forward.w2",
|
| 169 |
+
"shape": [
|
| 170 |
+
1024,
|
| 171 |
+
2560
|
| 172 |
+
],
|
| 173 |
+
"calibration_tokens": 131072,
|
| 174 |
+
"layer_index": 10,
|
| 175 |
+
"layer_count": 82,
|
| 176 |
+
"elapsed_seconds": 0.16727522799988037,
|
| 177 |
+
"weighted_error_rtn": 18988.9228515625,
|
| 178 |
+
"weighted_error_gptq_base_scale": 18330.048095703125,
|
| 179 |
+
"weighted_error_calibrated": 14767.345336914062,
|
| 180 |
+
"improvement_vs_rtn": 0.22231790331914825
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"path": "layers.2.self_attn.q_proj",
|
| 184 |
+
"shape": [
|
| 185 |
+
1024,
|
| 186 |
+
1024
|
| 187 |
+
],
|
| 188 |
+
"calibration_tokens": 131072,
|
| 189 |
+
"layer_index": 11,
|
| 190 |
+
"layer_count": 82,
|
| 191 |
+
"elapsed_seconds": 0.16629176800006462,
|
| 192 |
+
"weighted_error_rtn": 11229.296630859375,
|
| 193 |
+
"weighted_error_gptq_base_scale": 9254.633605957031,
|
| 194 |
+
"weighted_error_calibrated": 6704.5291748046875,
|
| 195 |
+
"improvement_vs_rtn": 0.40294308760355624
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"path": "layers.2.self_attn.k_proj",
|
| 199 |
+
"shape": [
|
| 200 |
+
512,
|
| 201 |
+
1024
|
| 202 |
+
],
|
| 203 |
+
"calibration_tokens": 131072,
|
| 204 |
+
"layer_index": 12,
|
| 205 |
+
"layer_count": 82,
|
| 206 |
+
"elapsed_seconds": 0.0825380399999176,
|
| 207 |
+
"weighted_error_rtn": 6588.86572265625,
|
| 208 |
+
"weighted_error_gptq_base_scale": 5450.871337890625,
|
| 209 |
+
"weighted_error_calibrated": 3765.4004516601562,
|
| 210 |
+
"improvement_vs_rtn": 0.4285206877547105
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"path": "layers.2.self_attn.v_proj",
|
| 214 |
+
"shape": [
|
| 215 |
+
512,
|
| 216 |
+
1024
|
| 217 |
+
],
|
| 218 |
+
"calibration_tokens": 131072,
|
| 219 |
+
"layer_index": 13,
|
| 220 |
+
"layer_count": 82,
|
| 221 |
+
"elapsed_seconds": 0.08265160400014793,
|
| 222 |
+
"weighted_error_rtn": 2754.3729858398438,
|
| 223 |
+
"weighted_error_gptq_base_scale": 2450.4794921875,
|
| 224 |
+
"weighted_error_calibrated": 2102.6175537109375,
|
| 225 |
+
"improvement_vs_rtn": 0.23662569865430827
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"path": "layers.2.self_attn.out_proj",
|
| 229 |
+
"shape": [
|
| 230 |
+
1024,
|
| 231 |
+
1024
|
| 232 |
+
],
|
| 233 |
+
"calibration_tokens": 131072,
|
| 234 |
+
"layer_index": 14,
|
| 235 |
+
"layer_count": 82,
|
| 236 |
+
"elapsed_seconds": 0.1716369890000351,
|
| 237 |
+
"weighted_error_rtn": 26921.020751953125,
|
| 238 |
+
"weighted_error_gptq_base_scale": 13473.633178710938,
|
| 239 |
+
"weighted_error_calibrated": 10304.5234375,
|
| 240 |
+
"improvement_vs_rtn": 0.617231325199569
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"path": "layers.2.feed_forward.w1",
|
| 244 |
+
"shape": [
|
| 245 |
+
2560,
|
| 246 |
+
1024
|
| 247 |
+
],
|
| 248 |
+
"calibration_tokens": 131072,
|
| 249 |
+
"layer_index": 15,
|
| 250 |
+
"layer_count": 82,
|
| 251 |
+
"elapsed_seconds": 0.42136869099999785,
|
| 252 |
+
"weighted_error_rtn": 191829.3017578125,
|
| 253 |
+
"weighted_error_gptq_base_scale": 137876.46435546875,
|
| 254 |
+
"weighted_error_calibrated": 110193.81982421875,
|
| 255 |
+
"improvement_vs_rtn": 0.4255631500794379
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"path": "layers.2.feed_forward.w3",
|
| 259 |
+
"shape": [
|
| 260 |
+
2560,
|
| 261 |
+
1024
|
| 262 |
+
],
|
| 263 |
+
"calibration_tokens": 131072,
|
| 264 |
+
"layer_index": 16,
|
| 265 |
+
"layer_count": 82,
|
| 266 |
+
"elapsed_seconds": 0.44447543499995845,
|
| 267 |
+
"weighted_error_rtn": 130002.37158203125,
|
| 268 |
+
"weighted_error_gptq_base_scale": 102183.3974609375,
|
| 269 |
+
"weighted_error_calibrated": 82190.40551757812,
|
| 270 |
+
"improvement_vs_rtn": 0.36777764499691346
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"path": "layers.2.feed_forward.w2",
|
| 274 |
+
"shape": [
|
| 275 |
+
1024,
|
| 276 |
+
2560
|
| 277 |
+
],
|
| 278 |
+
"calibration_tokens": 131072,
|
| 279 |
+
"layer_index": 17,
|
| 280 |
+
"layer_count": 82,
|
| 281 |
+
"elapsed_seconds": 0.1858994359999997,
|
| 282 |
+
"weighted_error_rtn": 31530.06298828125,
|
| 283 |
+
"weighted_error_gptq_base_scale": 28356.2080078125,
|
| 284 |
+
"weighted_error_calibrated": 22625.12646484375,
|
| 285 |
+
"improvement_vs_rtn": 0.28242685486379104
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"path": "layers.3.conv.in_proj",
|
| 289 |
+
"shape": [
|
| 290 |
+
3072,
|
| 291 |
+
1024
|
| 292 |
+
],
|
| 293 |
+
"calibration_tokens": 131072,
|
| 294 |
+
"layer_index": 18,
|
| 295 |
+
"layer_count": 82,
|
| 296 |
+
"elapsed_seconds": 0.5311009550000563,
|
| 297 |
+
"weighted_error_rtn": 742300.80078125,
|
| 298 |
+
"weighted_error_gptq_base_scale": 538245.9453125,
|
| 299 |
+
"weighted_error_calibrated": 432258.216796875,
|
| 300 |
+
"improvement_vs_rtn": 0.4176778250246588
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"path": "layers.3.conv.out_proj",
|
| 304 |
+
"shape": [
|
| 305 |
+
1024,
|
| 306 |
+
1024
|
| 307 |
+
],
|
| 308 |
+
"calibration_tokens": 131072,
|
| 309 |
+
"layer_index": 19,
|
| 310 |
+
"layer_count": 82,
|
| 311 |
+
"elapsed_seconds": 0.17450553300000138,
|
| 312 |
+
"weighted_error_rtn": 21390.689453125,
|
| 313 |
+
"weighted_error_gptq_base_scale": 19739.774658203125,
|
| 314 |
+
"weighted_error_calibrated": 16418.149658203125,
|
| 315 |
+
"improvement_vs_rtn": 0.23246281078590614
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"path": "layers.3.feed_forward.w1",
|
| 319 |
+
"shape": [
|
| 320 |
+
2560,
|
| 321 |
+
1024
|
| 322 |
+
],
|
| 323 |
+
"calibration_tokens": 131072,
|
| 324 |
+
"layer_index": 20,
|
| 325 |
+
"layer_count": 82,
|
| 326 |
+
"elapsed_seconds": 0.43988155600004575,
|
| 327 |
+
"weighted_error_rtn": 288072.388671875,
|
| 328 |
+
"weighted_error_gptq_base_scale": 213790.3212890625,
|
| 329 |
+
"weighted_error_calibrated": 167723.12060546875,
|
| 330 |
+
"improvement_vs_rtn": 0.41777439559987983
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"path": "layers.3.feed_forward.w3",
|
| 334 |
+
"shape": [
|
| 335 |
+
2560,
|
| 336 |
+
1024
|
| 337 |
+
],
|
| 338 |
+
"calibration_tokens": 131072,
|
| 339 |
+
"layer_index": 21,
|
| 340 |
+
"layer_count": 82,
|
| 341 |
+
"elapsed_seconds": 0.4361086910000722,
|
| 342 |
+
"weighted_error_rtn": 188004.287109375,
|
| 343 |
+
"weighted_error_gptq_base_scale": 152755.52978515625,
|
| 344 |
+
"weighted_error_calibrated": 125208.4326171875,
|
| 345 |
+
"improvement_vs_rtn": 0.33401288586389966
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"path": "layers.3.feed_forward.w2",
|
| 349 |
+
"shape": [
|
| 350 |
+
1024,
|
| 351 |
+
2560
|
| 352 |
+
],
|
| 353 |
+
"calibration_tokens": 131072,
|
| 354 |
+
"layer_index": 22,
|
| 355 |
+
"layer_count": 82,
|
| 356 |
+
"elapsed_seconds": 0.17914802500013138,
|
| 357 |
+
"weighted_error_rtn": 71126.7421875,
|
| 358 |
+
"weighted_error_gptq_base_scale": 65498.61669921875,
|
| 359 |
+
"weighted_error_calibrated": 52067.560546875,
|
| 360 |
+
"improvement_vs_rtn": 0.26796084080980886
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"path": "layers.4.self_attn.q_proj",
|
| 364 |
+
"shape": [
|
| 365 |
+
1024,
|
| 366 |
+
1024
|
| 367 |
+
],
|
| 368 |
+
"calibration_tokens": 131072,
|
| 369 |
+
"layer_index": 23,
|
| 370 |
+
"layer_count": 82,
|
| 371 |
+
"elapsed_seconds": 0.1727412310001455,
|
| 372 |
+
"weighted_error_rtn": 49715.89208984375,
|
| 373 |
+
"weighted_error_gptq_base_scale": 35361.09765625,
|
| 374 |
+
"weighted_error_calibrated": 26785.62744140625,
|
| 375 |
+
"improvement_vs_rtn": 0.4612260523656947
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"path": "layers.4.self_attn.k_proj",
|
| 379 |
+
"shape": [
|
| 380 |
+
512,
|
| 381 |
+
1024
|
| 382 |
+
],
|
| 383 |
+
"calibration_tokens": 131072,
|
| 384 |
+
"layer_index": 24,
|
| 385 |
+
"layer_count": 82,
|
| 386 |
+
"elapsed_seconds": 0.08696096100015893,
|
| 387 |
+
"weighted_error_rtn": 34640.94140625,
|
| 388 |
+
"weighted_error_gptq_base_scale": 24503.3984375,
|
| 389 |
+
"weighted_error_calibrated": 16819.186279296875,
|
| 390 |
+
"improvement_vs_rtn": 0.5144708660757609
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"path": "layers.4.self_attn.v_proj",
|
| 394 |
+
"shape": [
|
| 395 |
+
512,
|
| 396 |
+
1024
|
| 397 |
+
],
|
| 398 |
+
"calibration_tokens": 131072,
|
| 399 |
+
"layer_index": 25,
|
| 400 |
+
"layer_count": 82,
|
| 401 |
+
"elapsed_seconds": 0.08605326400015656,
|
| 402 |
+
"weighted_error_rtn": 13343.416259765625,
|
| 403 |
+
"weighted_error_gptq_base_scale": 10874.5419921875,
|
| 404 |
+
"weighted_error_calibrated": 9541.0283203125,
|
| 405 |
+
"improvement_vs_rtn": 0.2849636004325562
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"path": "layers.4.self_attn.out_proj",
|
| 409 |
+
"shape": [
|
| 410 |
+
1024,
|
| 411 |
+
1024
|
| 412 |
+
],
|
| 413 |
+
"calibration_tokens": 131072,
|
| 414 |
+
"layer_index": 26,
|
| 415 |
+
"layer_count": 82,
|
| 416 |
+
"elapsed_seconds": 0.1770204439999361,
|
| 417 |
+
"weighted_error_rtn": 162072.40625,
|
| 418 |
+
"weighted_error_gptq_base_scale": 83752.0771484375,
|
| 419 |
+
"weighted_error_calibrated": 67766.43017578125,
|
| 420 |
+
"improvement_vs_rtn": 0.581875584229618
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"path": "layers.4.feed_forward.w1",
|
| 424 |
+
"shape": [
|
| 425 |
+
2560,
|
| 426 |
+
1024
|
| 427 |
+
],
|
| 428 |
+
"calibration_tokens": 131072,
|
| 429 |
+
"layer_index": 27,
|
| 430 |
+
"layer_count": 82,
|
| 431 |
+
"elapsed_seconds": 0.43259810900008233,
|
| 432 |
+
"weighted_error_rtn": 334824.2978515625,
|
| 433 |
+
"weighted_error_gptq_base_scale": 242225.94921875,
|
| 434 |
+
"weighted_error_calibrated": 192642.8486328125,
|
| 435 |
+
"improvement_vs_rtn": 0.4246449559696628
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"path": "layers.4.feed_forward.w3",
|
| 439 |
+
"shape": [
|
| 440 |
+
2560,
|
| 441 |
+
1024
|
| 442 |
+
],
|
| 443 |
+
"calibration_tokens": 131072,
|
| 444 |
+
"layer_index": 28,
|
| 445 |
+
"layer_count": 82,
|
| 446 |
+
"elapsed_seconds": 0.41238641299992196,
|
| 447 |
+
"weighted_error_rtn": 225518.845703125,
|
| 448 |
+
"weighted_error_gptq_base_scale": 178818.8203125,
|
| 449 |
+
"weighted_error_calibrated": 145764.35205078125,
|
| 450 |
+
"improvement_vs_rtn": 0.35364890860311193
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"path": "layers.4.feed_forward.w2",
|
| 454 |
+
"shape": [
|
| 455 |
+
1024,
|
| 456 |
+
2560
|
| 457 |
+
],
|
| 458 |
+
"calibration_tokens": 131072,
|
| 459 |
+
"layer_index": 29,
|
| 460 |
+
"layer_count": 82,
|
| 461 |
+
"elapsed_seconds": 0.17000984700007393,
|
| 462 |
+
"weighted_error_rtn": 71212.271484375,
|
| 463 |
+
"weighted_error_gptq_base_scale": 64135.1494140625,
|
| 464 |
+
"weighted_error_calibrated": 51171.44921875,
|
| 465 |
+
"improvement_vs_rtn": 0.2814237188041705
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"path": "layers.5.conv.in_proj",
|
| 469 |
+
"shape": [
|
| 470 |
+
3072,
|
| 471 |
+
1024
|
| 472 |
+
],
|
| 473 |
+
"calibration_tokens": 131072,
|
| 474 |
+
"layer_index": 30,
|
| 475 |
+
"layer_count": 82,
|
| 476 |
+
"elapsed_seconds": 0.49888826100004735,
|
| 477 |
+
"weighted_error_rtn": 1138177.54296875,
|
| 478 |
+
"weighted_error_gptq_base_scale": 859525.275390625,
|
| 479 |
+
"weighted_error_calibrated": 638614.271484375,
|
| 480 |
+
"improvement_vs_rtn": 0.43891506608129505
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"path": "layers.5.conv.out_proj",
|
| 484 |
+
"shape": [
|
| 485 |
+
1024,
|
| 486 |
+
1024
|
| 487 |
+
],
|
| 488 |
+
"calibration_tokens": 131072,
|
| 489 |
+
"layer_index": 31,
|
| 490 |
+
"layer_count": 82,
|
| 491 |
+
"elapsed_seconds": 0.16741227900001832,
|
| 492 |
+
"weighted_error_rtn": 54199.8984375,
|
| 493 |
+
"weighted_error_gptq_base_scale": 49634.0361328125,
|
| 494 |
+
"weighted_error_calibrated": 40443.68701171875,
|
| 495 |
+
"improvement_vs_rtn": 0.25380511444397025
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"path": "layers.5.feed_forward.w1",
|
| 499 |
+
"shape": [
|
| 500 |
+
2560,
|
| 501 |
+
1024
|
| 502 |
+
],
|
| 503 |
+
"calibration_tokens": 131072,
|
| 504 |
+
"layer_index": 32,
|
| 505 |
+
"layer_count": 82,
|
| 506 |
+
"elapsed_seconds": 0.4207619569999679,
|
| 507 |
+
"weighted_error_rtn": 380068.439453125,
|
| 508 |
+
"weighted_error_gptq_base_scale": 283506.7412109375,
|
| 509 |
+
"weighted_error_calibrated": 224411.853515625,
|
| 510 |
+
"improvement_vs_rtn": 0.4095488332613779
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"path": "layers.5.feed_forward.w3",
|
| 514 |
+
"shape": [
|
| 515 |
+
2560,
|
| 516 |
+
1024
|
| 517 |
+
],
|
| 518 |
+
"calibration_tokens": 131072,
|
| 519 |
+
"layer_index": 33,
|
| 520 |
+
"layer_count": 82,
|
| 521 |
+
"elapsed_seconds": 0.4187044509999396,
|
| 522 |
+
"weighted_error_rtn": 277648.025390625,
|
| 523 |
+
"weighted_error_gptq_base_scale": 224589.611328125,
|
| 524 |
+
"weighted_error_calibrated": 185033.681640625,
|
| 525 |
+
"improvement_vs_rtn": 0.33356744972236063
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"path": "layers.5.feed_forward.w2",
|
| 529 |
+
"shape": [
|
| 530 |
+
1024,
|
| 531 |
+
2560
|
| 532 |
+
],
|
| 533 |
+
"calibration_tokens": 131072,
|
| 534 |
+
"layer_index": 34,
|
| 535 |
+
"layer_count": 82,
|
| 536 |
+
"elapsed_seconds": 0.1678185879998182,
|
| 537 |
+
"weighted_error_rtn": 128367.716796875,
|
| 538 |
+
"weighted_error_gptq_base_scale": 120620.8916015625,
|
| 539 |
+
"weighted_error_calibrated": 103304.9267578125,
|
| 540 |
+
"improvement_vs_rtn": 0.19524215795409883
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"path": "layers.6.self_attn.q_proj",
|
| 544 |
+
"shape": [
|
| 545 |
+
1024,
|
| 546 |
+
1024
|
| 547 |
+
],
|
| 548 |
+
"calibration_tokens": 131072,
|
| 549 |
+
"layer_index": 35,
|
| 550 |
+
"layer_count": 82,
|
| 551 |
+
"elapsed_seconds": 0.17360089599992534,
|
| 552 |
+
"weighted_error_rtn": 138398.7197265625,
|
| 553 |
+
"weighted_error_gptq_base_scale": 108337.783203125,
|
| 554 |
+
"weighted_error_calibrated": 74381.30029296875,
|
| 555 |
+
"improvement_vs_rtn": 0.4625578875301334
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"path": "layers.6.self_attn.k_proj",
|
| 559 |
+
"shape": [
|
| 560 |
+
512,
|
| 561 |
+
1024
|
| 562 |
+
],
|
| 563 |
+
"calibration_tokens": 131072,
|
| 564 |
+
"layer_index": 36,
|
| 565 |
+
"layer_count": 82,
|
| 566 |
+
"elapsed_seconds": 0.08278911200000039,
|
| 567 |
+
"weighted_error_rtn": 87177.08984375,
|
| 568 |
+
"weighted_error_gptq_base_scale": 68762.3310546875,
|
| 569 |
+
"weighted_error_calibrated": 43859.98046875,
|
| 570 |
+
"improvement_vs_rtn": 0.49688638898864945
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"path": "layers.6.self_attn.v_proj",
|
| 574 |
+
"shape": [
|
| 575 |
+
512,
|
| 576 |
+
1024
|
| 577 |
+
],
|
| 578 |
+
"calibration_tokens": 131072,
|
| 579 |
+
"layer_index": 37,
|
| 580 |
+
"layer_count": 82,
|
| 581 |
+
"elapsed_seconds": 0.08460616299998946,
|
| 582 |
+
"weighted_error_rtn": 33912.15869140625,
|
| 583 |
+
"weighted_error_gptq_base_scale": 28180.8291015625,
|
| 584 |
+
"weighted_error_calibrated": 24162.1708984375,
|
| 585 |
+
"improvement_vs_rtn": 0.2875071410726653
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"path": "layers.6.self_attn.out_proj",
|
| 589 |
+
"shape": [
|
| 590 |
+
1024,
|
| 591 |
+
1024
|
| 592 |
+
],
|
| 593 |
+
"calibration_tokens": 131072,
|
| 594 |
+
"layer_index": 38,
|
| 595 |
+
"layer_count": 82,
|
| 596 |
+
"elapsed_seconds": 0.1661898550000842,
|
| 597 |
+
"weighted_error_rtn": 360829.08984375,
|
| 598 |
+
"weighted_error_gptq_base_scale": 215199.017578125,
|
| 599 |
+
"weighted_error_calibrated": 177861.447265625,
|
| 600 |
+
"improvement_vs_rtn": 0.5070756425357932
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"path": "layers.6.feed_forward.w1",
|
| 604 |
+
"shape": [
|
| 605 |
+
2560,
|
| 606 |
+
1024
|
| 607 |
+
],
|
| 608 |
+
"calibration_tokens": 131072,
|
| 609 |
+
"layer_index": 39,
|
| 610 |
+
"layer_count": 82,
|
| 611 |
+
"elapsed_seconds": 0.4175391310000123,
|
| 612 |
+
"weighted_error_rtn": 434119.85546875,
|
| 613 |
+
"weighted_error_gptq_base_scale": 323453.921875,
|
| 614 |
+
"weighted_error_calibrated": 260818.3115234375,
|
| 615 |
+
"improvement_vs_rtn": 0.3992020677289375
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"path": "layers.6.feed_forward.w3",
|
| 619 |
+
"shape": [
|
| 620 |
+
2560,
|
| 621 |
+
1024
|
| 622 |
+
],
|
| 623 |
+
"calibration_tokens": 131072,
|
| 624 |
+
"layer_index": 40,
|
| 625 |
+
"layer_count": 82,
|
| 626 |
+
"elapsed_seconds": 0.4183857040000021,
|
| 627 |
+
"weighted_error_rtn": 348907.0107421875,
|
| 628 |
+
"weighted_error_gptq_base_scale": 275969.6494140625,
|
| 629 |
+
"weighted_error_calibrated": 224949.3720703125,
|
| 630 |
+
"improvement_vs_rtn": 0.355274141405743
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"path": "layers.6.feed_forward.w2",
|
| 634 |
+
"shape": [
|
| 635 |
+
1024,
|
| 636 |
+
2560
|
| 637 |
+
],
|
| 638 |
+
"calibration_tokens": 131072,
|
| 639 |
+
"layer_index": 41,
|
| 640 |
+
"layer_count": 82,
|
| 641 |
+
"elapsed_seconds": 0.16894781199994213,
|
| 642 |
+
"weighted_error_rtn": 151839.251953125,
|
| 643 |
+
"weighted_error_gptq_base_scale": 138906.6025390625,
|
| 644 |
+
"weighted_error_calibrated": 113729.474609375,
|
| 645 |
+
"improvement_vs_rtn": 0.25098765209614604
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"path": "layers.7.conv.in_proj",
|
| 649 |
+
"shape": [
|
| 650 |
+
3072,
|
| 651 |
+
1024
|
| 652 |
+
],
|
| 653 |
+
"calibration_tokens": 131072,
|
| 654 |
+
"layer_index": 42,
|
| 655 |
+
"layer_count": 82,
|
| 656 |
+
"elapsed_seconds": 0.5037893410001288,
|
| 657 |
+
"weighted_error_rtn": 1564548.90234375,
|
| 658 |
+
"weighted_error_gptq_base_scale": 1224747.30078125,
|
| 659 |
+
"weighted_error_calibrated": 939429.265625,
|
| 660 |
+
"improvement_vs_rtn": 0.39955263512843764
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"path": "layers.7.conv.out_proj",
|
| 664 |
+
"shape": [
|
| 665 |
+
1024,
|
| 666 |
+
1024
|
| 667 |
+
],
|
| 668 |
+
"calibration_tokens": 131072,
|
| 669 |
+
"layer_index": 43,
|
| 670 |
+
"layer_count": 82,
|
| 671 |
+
"elapsed_seconds": 0.1715019640000719,
|
| 672 |
+
"weighted_error_rtn": 104873.4365234375,
|
| 673 |
+
"weighted_error_gptq_base_scale": 98988.009765625,
|
| 674 |
+
"weighted_error_calibrated": 81585.3798828125,
|
| 675 |
+
"improvement_vs_rtn": 0.22205867770358134
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"path": "layers.7.feed_forward.w1",
|
| 679 |
+
"shape": [
|
| 680 |
+
2560,
|
| 681 |
+
1024
|
| 682 |
+
],
|
| 683 |
+
"calibration_tokens": 131072,
|
| 684 |
+
"layer_index": 44,
|
| 685 |
+
"layer_count": 82,
|
| 686 |
+
"elapsed_seconds": 0.4333098570000402,
|
| 687 |
+
"weighted_error_rtn": 726678.74609375,
|
| 688 |
+
"weighted_error_gptq_base_scale": 558001.390625,
|
| 689 |
+
"weighted_error_calibrated": 447504.25,
|
| 690 |
+
"improvement_vs_rtn": 0.3841787001401211
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"path": "layers.7.feed_forward.w3",
|
| 694 |
+
"shape": [
|
| 695 |
+
2560,
|
| 696 |
+
1024
|
| 697 |
+
],
|
| 698 |
+
"calibration_tokens": 131072,
|
| 699 |
+
"layer_index": 45,
|
| 700 |
+
"layer_count": 82,
|
| 701 |
+
"elapsed_seconds": 0.418721196999968,
|
| 702 |
+
"weighted_error_rtn": 591768.546875,
|
| 703 |
+
"weighted_error_gptq_base_scale": 493098.66796875,
|
| 704 |
+
"weighted_error_calibrated": 413180.33984375,
|
| 705 |
+
"improvement_vs_rtn": 0.30178725782966187
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"path": "layers.7.feed_forward.w2",
|
| 709 |
+
"shape": [
|
| 710 |
+
1024,
|
| 711 |
+
2560
|
| 712 |
+
],
|
| 713 |
+
"calibration_tokens": 131072,
|
| 714 |
+
"layer_index": 46,
|
| 715 |
+
"layer_count": 82,
|
| 716 |
+
"elapsed_seconds": 0.1684243099998639,
|
| 717 |
+
"weighted_error_rtn": 1273951.984375,
|
| 718 |
+
"weighted_error_gptq_base_scale": 1213297.1796875,
|
| 719 |
+
"weighted_error_calibrated": 837013.921875,
|
| 720 |
+
"improvement_vs_rtn": 0.3429784386374354
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"path": "layers.8.self_attn.q_proj",
|
| 724 |
+
"shape": [
|
| 725 |
+
1024,
|
| 726 |
+
1024
|
| 727 |
+
],
|
| 728 |
+
"calibration_tokens": 131072,
|
| 729 |
+
"layer_index": 47,
|
| 730 |
+
"layer_count": 82,
|
| 731 |
+
"elapsed_seconds": 0.16818583600002057,
|
| 732 |
+
"weighted_error_rtn": 509291.08984375,
|
| 733 |
+
"weighted_error_gptq_base_scale": 412705.7734375,
|
| 734 |
+
"weighted_error_calibrated": 296538.876953125,
|
| 735 |
+
"improvement_vs_rtn": 0.4177418712663855
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"path": "layers.8.self_attn.k_proj",
|
| 739 |
+
"shape": [
|
| 740 |
+
512,
|
| 741 |
+
1024
|
| 742 |
+
],
|
| 743 |
+
"calibration_tokens": 131072,
|
| 744 |
+
"layer_index": 48,
|
| 745 |
+
"layer_count": 82,
|
| 746 |
+
"elapsed_seconds": 0.08372227200015914,
|
| 747 |
+
"weighted_error_rtn": 372132.359375,
|
| 748 |
+
"weighted_error_gptq_base_scale": 294133.3359375,
|
| 749 |
+
"weighted_error_calibrated": 202156.23828125,
|
| 750 |
+
"improvement_vs_rtn": 0.4567625384130167
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"path": "layers.8.self_attn.v_proj",
|
| 754 |
+
"shape": [
|
| 755 |
+
512,
|
| 756 |
+
1024
|
| 757 |
+
],
|
| 758 |
+
"calibration_tokens": 131072,
|
| 759 |
+
"layer_index": 49,
|
| 760 |
+
"layer_count": 82,
|
| 761 |
+
"elapsed_seconds": 0.08594768299985844,
|
| 762 |
+
"weighted_error_rtn": 152534.44140625,
|
| 763 |
+
"weighted_error_gptq_base_scale": 131127.517578125,
|
| 764 |
+
"weighted_error_calibrated": 114357.01171875,
|
| 765 |
+
"improvement_vs_rtn": 0.2502872750280758
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"path": "layers.8.self_attn.out_proj",
|
| 769 |
+
"shape": [
|
| 770 |
+
1024,
|
| 771 |
+
1024
|
| 772 |
+
],
|
| 773 |
+
"calibration_tokens": 131072,
|
| 774 |
+
"layer_index": 50,
|
| 775 |
+
"layer_count": 82,
|
| 776 |
+
"elapsed_seconds": 0.16843110499985414,
|
| 777 |
+
"weighted_error_rtn": 1014598.375,
|
| 778 |
+
"weighted_error_gptq_base_scale": 685224.7578125,
|
| 779 |
+
"weighted_error_calibrated": 561213.328125,
|
| 780 |
+
"improvement_vs_rtn": 0.4468615937562487
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"path": "layers.8.feed_forward.w1",
|
| 784 |
+
"shape": [
|
| 785 |
+
2560,
|
| 786 |
+
1024
|
| 787 |
+
],
|
| 788 |
+
"calibration_tokens": 131072,
|
| 789 |
+
"layer_index": 51,
|
| 790 |
+
"layer_count": 82,
|
| 791 |
+
"elapsed_seconds": 0.4208819759999187,
|
| 792 |
+
"weighted_error_rtn": 829752.85546875,
|
| 793 |
+
"weighted_error_gptq_base_scale": 648427.072265625,
|
| 794 |
+
"weighted_error_calibrated": 504778.693359375,
|
| 795 |
+
"improvement_vs_rtn": 0.3916517550587858
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"path": "layers.8.feed_forward.w3",
|
| 799 |
+
"shape": [
|
| 800 |
+
2560,
|
| 801 |
+
1024
|
| 802 |
+
],
|
| 803 |
+
"calibration_tokens": 131072,
|
| 804 |
+
"layer_index": 52,
|
| 805 |
+
"layer_count": 82,
|
| 806 |
+
"elapsed_seconds": 0.4198457359998429,
|
| 807 |
+
"weighted_error_rtn": 740996.61328125,
|
| 808 |
+
"weighted_error_gptq_base_scale": 605160.865234375,
|
| 809 |
+
"weighted_error_calibrated": 493796.06640625,
|
| 810 |
+
"improvement_vs_rtn": 0.3336055016234918
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"path": "layers.8.feed_forward.w2",
|
| 814 |
+
"shape": [
|
| 815 |
+
1024,
|
| 816 |
+
2560
|
| 817 |
+
],
|
| 818 |
+
"calibration_tokens": 131072,
|
| 819 |
+
"layer_index": 53,
|
| 820 |
+
"layer_count": 82,
|
| 821 |
+
"elapsed_seconds": 0.1664327119999598,
|
| 822 |
+
"weighted_error_rtn": 650429.4296875,
|
| 823 |
+
"weighted_error_gptq_base_scale": 593176.078125,
|
| 824 |
+
"weighted_error_calibrated": 496289.15234375,
|
| 825 |
+
"improvement_vs_rtn": 0.23698232322883506
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"path": "layers.9.conv.in_proj",
|
| 829 |
+
"shape": [
|
| 830 |
+
3072,
|
| 831 |
+
1024
|
| 832 |
+
],
|
| 833 |
+
"calibration_tokens": 131072,
|
| 834 |
+
"layer_index": 54,
|
| 835 |
+
"layer_count": 82,
|
| 836 |
+
"elapsed_seconds": 0.4980189479999808,
|
| 837 |
+
"weighted_error_rtn": 2485179.53125,
|
| 838 |
+
"weighted_error_gptq_base_scale": 2034793.53125,
|
| 839 |
+
"weighted_error_calibrated": 1597000.53515625,
|
| 840 |
+
"improvement_vs_rtn": 0.35739027499836684
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"path": "layers.9.conv.out_proj",
|
| 844 |
+
"shape": [
|
| 845 |
+
1024,
|
| 846 |
+
1024
|
| 847 |
+
],
|
| 848 |
+
"calibration_tokens": 131072,
|
| 849 |
+
"layer_index": 55,
|
| 850 |
+
"layer_count": 82,
|
| 851 |
+
"elapsed_seconds": 0.16687597100008134,
|
| 852 |
+
"weighted_error_rtn": 551470.3125,
|
| 853 |
+
"weighted_error_gptq_base_scale": 522726.25,
|
| 854 |
+
"weighted_error_calibrated": 441137.91015625,
|
| 855 |
+
"improvement_vs_rtn": 0.2000695229514281
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"path": "layers.9.feed_forward.w1",
|
| 859 |
+
"shape": [
|
| 860 |
+
2560,
|
| 861 |
+
1024
|
| 862 |
+
],
|
| 863 |
+
"calibration_tokens": 131072,
|
| 864 |
+
"layer_index": 56,
|
| 865 |
+
"layer_count": 82,
|
| 866 |
+
"elapsed_seconds": 0.4160884969999188,
|
| 867 |
+
"weighted_error_rtn": 1131049.4609375,
|
| 868 |
+
"weighted_error_gptq_base_scale": 917714.8828125,
|
| 869 |
+
"weighted_error_calibrated": 742528.9140625,
|
| 870 |
+
"improvement_vs_rtn": 0.343504471106829
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"path": "layers.9.feed_forward.w3",
|
| 874 |
+
"shape": [
|
| 875 |
+
2560,
|
| 876 |
+
1024
|
| 877 |
+
],
|
| 878 |
+
"calibration_tokens": 131072,
|
| 879 |
+
"layer_index": 57,
|
| 880 |
+
"layer_count": 82,
|
| 881 |
+
"elapsed_seconds": 0.4228795290000562,
|
| 882 |
+
"weighted_error_rtn": 1068169.2421875,
|
| 883 |
+
"weighted_error_gptq_base_scale": 902733.51953125,
|
| 884 |
+
"weighted_error_calibrated": 751514.390625,
|
| 885 |
+
"improvement_vs_rtn": 0.29644632990369923
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"path": "layers.9.feed_forward.w2",
|
| 889 |
+
"shape": [
|
| 890 |
+
1024,
|
| 891 |
+
2560
|
| 892 |
+
],
|
| 893 |
+
"calibration_tokens": 131072,
|
| 894 |
+
"layer_index": 58,
|
| 895 |
+
"layer_count": 82,
|
| 896 |
+
"elapsed_seconds": 0.17248401999995622,
|
| 897 |
+
"weighted_error_rtn": 22406516.6875,
|
| 898 |
+
"weighted_error_gptq_base_scale": 22136062.875,
|
| 899 |
+
"weighted_error_calibrated": 19819490.84375,
|
| 900 |
+
"improvement_vs_rtn": 0.11545863553138691
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"path": "layers.10.self_attn.q_proj",
|
| 904 |
+
"shape": [
|
| 905 |
+
1024,
|
| 906 |
+
1024
|
| 907 |
+
],
|
| 908 |
+
"calibration_tokens": 131072,
|
| 909 |
+
"layer_index": 59,
|
| 910 |
+
"layer_count": 82,
|
| 911 |
+
"elapsed_seconds": 0.17198393100011344,
|
| 912 |
+
"weighted_error_rtn": 1546929.0625,
|
| 913 |
+
"weighted_error_gptq_base_scale": 1257565.796875,
|
| 914 |
+
"weighted_error_calibrated": 1002001.59375,
|
| 915 |
+
"improvement_vs_rtn": 0.35226403198433676
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"path": "layers.10.self_attn.k_proj",
|
| 919 |
+
"shape": [
|
| 920 |
+
512,
|
| 921 |
+
1024
|
| 922 |
+
],
|
| 923 |
+
"calibration_tokens": 131072,
|
| 924 |
+
"layer_index": 60,
|
| 925 |
+
"layer_count": 82,
|
| 926 |
+
"elapsed_seconds": 0.08514422700000068,
|
| 927 |
+
"weighted_error_rtn": 946011.46875,
|
| 928 |
+
"weighted_error_gptq_base_scale": 791985.359375,
|
| 929 |
+
"weighted_error_calibrated": 553075.1484375,
|
| 930 |
+
"improvement_vs_rtn": 0.41536105353109654
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"path": "layers.10.self_attn.v_proj",
|
| 934 |
+
"shape": [
|
| 935 |
+
512,
|
| 936 |
+
1024
|
| 937 |
+
],
|
| 938 |
+
"calibration_tokens": 131072,
|
| 939 |
+
"layer_index": 61,
|
| 940 |
+
"layer_count": 82,
|
| 941 |
+
"elapsed_seconds": 0.08364556599985917,
|
| 942 |
+
"weighted_error_rtn": 640643.390625,
|
| 943 |
+
"weighted_error_gptq_base_scale": 563110.609375,
|
| 944 |
+
"weighted_error_calibrated": 472959.8359375,
|
| 945 |
+
"improvement_vs_rtn": 0.2617424251016014
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"path": "layers.10.self_attn.out_proj",
|
| 949 |
+
"shape": [
|
| 950 |
+
1024,
|
| 951 |
+
1024
|
| 952 |
+
],
|
| 953 |
+
"calibration_tokens": 131072,
|
| 954 |
+
"layer_index": 62,
|
| 955 |
+
"layer_count": 82,
|
| 956 |
+
"elapsed_seconds": 0.16838807399994948,
|
| 957 |
+
"weighted_error_rtn": 4124213.125,
|
| 958 |
+
"weighted_error_gptq_base_scale": 2996626.0,
|
| 959 |
+
"weighted_error_calibrated": 2519235.3125,
|
| 960 |
+
"improvement_vs_rtn": 0.389159765476475
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"path": "layers.10.feed_forward.w1",
|
| 964 |
+
"shape": [
|
| 965 |
+
2560,
|
| 966 |
+
1024
|
| 967 |
+
],
|
| 968 |
+
"calibration_tokens": 131072,
|
| 969 |
+
"layer_index": 63,
|
| 970 |
+
"layer_count": 82,
|
| 971 |
+
"elapsed_seconds": 0.4150311139999303,
|
| 972 |
+
"weighted_error_rtn": 1712359.09375,
|
| 973 |
+
"weighted_error_gptq_base_scale": 1389362.703125,
|
| 974 |
+
"weighted_error_calibrated": 1112167.6015625,
|
| 975 |
+
"improvement_vs_rtn": 0.3505056237200247
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"path": "layers.10.feed_forward.w3",
|
| 979 |
+
"shape": [
|
| 980 |
+
2560,
|
| 981 |
+
1024
|
| 982 |
+
],
|
| 983 |
+
"calibration_tokens": 131072,
|
| 984 |
+
"layer_index": 64,
|
| 985 |
+
"layer_count": 82,
|
| 986 |
+
"elapsed_seconds": 0.41455949099986356,
|
| 987 |
+
"weighted_error_rtn": 1925721.625,
|
| 988 |
+
"weighted_error_gptq_base_scale": 1619223.734375,
|
| 989 |
+
"weighted_error_calibrated": 1348903.6796875,
|
| 990 |
+
"improvement_vs_rtn": 0.29953339975215787
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"path": "layers.10.feed_forward.w2",
|
| 994 |
+
"shape": [
|
| 995 |
+
1024,
|
| 996 |
+
2560
|
| 997 |
+
],
|
| 998 |
+
"calibration_tokens": 131072,
|
| 999 |
+
"layer_index": 65,
|
| 1000 |
+
"layer_count": 82,
|
| 1001 |
+
"elapsed_seconds": 0.16918727500001296,
|
| 1002 |
+
"weighted_error_rtn": 4822112.375,
|
| 1003 |
+
"weighted_error_gptq_base_scale": 4369333.21875,
|
| 1004 |
+
"weighted_error_calibrated": 3549162.28125,
|
| 1005 |
+
"improvement_vs_rtn": 0.2639818392349266
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"path": "layers.11.conv.in_proj",
|
| 1009 |
+
"shape": [
|
| 1010 |
+
3072,
|
| 1011 |
+
1024
|
| 1012 |
+
],
|
| 1013 |
+
"calibration_tokens": 131072,
|
| 1014 |
+
"layer_index": 66,
|
| 1015 |
+
"layer_count": 82,
|
| 1016 |
+
"elapsed_seconds": 0.512697659999958,
|
| 1017 |
+
"weighted_error_rtn": 3697561.546875,
|
| 1018 |
+
"weighted_error_gptq_base_scale": 3147096.84375,
|
| 1019 |
+
"weighted_error_calibrated": 2559433.2734375,
|
| 1020 |
+
"improvement_vs_rtn": 0.30780509235860887
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"path": "layers.11.conv.out_proj",
|
| 1024 |
+
"shape": [
|
| 1025 |
+
1024,
|
| 1026 |
+
1024
|
| 1027 |
+
],
|
| 1028 |
+
"calibration_tokens": 131072,
|
| 1029 |
+
"layer_index": 67,
|
| 1030 |
+
"layer_count": 82,
|
| 1031 |
+
"elapsed_seconds": 0.16963880200000858,
|
| 1032 |
+
"weighted_error_rtn": 2046642.359375,
|
| 1033 |
+
"weighted_error_gptq_base_scale": 1936287.953125,
|
| 1034 |
+
"weighted_error_calibrated": 1634551.953125,
|
| 1035 |
+
"improvement_vs_rtn": 0.20134949536363722
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"path": "layers.11.feed_forward.w1",
|
| 1039 |
+
"shape": [
|
| 1040 |
+
2560,
|
| 1041 |
+
1024
|
| 1042 |
+
],
|
| 1043 |
+
"calibration_tokens": 131072,
|
| 1044 |
+
"layer_index": 68,
|
| 1045 |
+
"layer_count": 82,
|
| 1046 |
+
"elapsed_seconds": 0.410559621999937,
|
| 1047 |
+
"weighted_error_rtn": 1697698.84375,
|
| 1048 |
+
"weighted_error_gptq_base_scale": 1443245.625,
|
| 1049 |
+
"weighted_error_calibrated": 1170054.9765625,
|
| 1050 |
+
"improvement_vs_rtn": 0.31079945016749966
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"path": "layers.11.feed_forward.w3",
|
| 1054 |
+
"shape": [
|
| 1055 |
+
2560,
|
| 1056 |
+
1024
|
| 1057 |
+
],
|
| 1058 |
+
"calibration_tokens": 131072,
|
| 1059 |
+
"layer_index": 69,
|
| 1060 |
+
"layer_count": 82,
|
| 1061 |
+
"elapsed_seconds": 0.41881008399991515,
|
| 1062 |
+
"weighted_error_rtn": 2163349.8984375,
|
| 1063 |
+
"weighted_error_gptq_base_scale": 1861634.8515625,
|
| 1064 |
+
"weighted_error_calibrated": 1586809.8359375,
|
| 1065 |
+
"improvement_vs_rtn": 0.2665033811296136
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"path": "layers.11.feed_forward.w2",
|
| 1069 |
+
"shape": [
|
| 1070 |
+
1024,
|
| 1071 |
+
2560
|
| 1072 |
+
],
|
| 1073 |
+
"calibration_tokens": 131072,
|
| 1074 |
+
"layer_index": 70,
|
| 1075 |
+
"layer_count": 82,
|
| 1076 |
+
"elapsed_seconds": 0.17132175199981248,
|
| 1077 |
+
"weighted_error_rtn": 6422880.5,
|
| 1078 |
+
"weighted_error_gptq_base_scale": 5986317.3125,
|
| 1079 |
+
"weighted_error_calibrated": 4628802.625,
|
| 1080 |
+
"improvement_vs_rtn": 0.2793260554979966
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"path": "layers.12.self_attn.q_proj",
|
| 1084 |
+
"shape": [
|
| 1085 |
+
1024,
|
| 1086 |
+
1024
|
| 1087 |
+
],
|
| 1088 |
+
"calibration_tokens": 131072,
|
| 1089 |
+
"layer_index": 71,
|
| 1090 |
+
"layer_count": 82,
|
| 1091 |
+
"elapsed_seconds": 0.16999844700012545,
|
| 1092 |
+
"weighted_error_rtn": 7008326.875,
|
| 1093 |
+
"weighted_error_gptq_base_scale": 5816315.5625,
|
| 1094 |
+
"weighted_error_calibrated": 4435551.5,
|
| 1095 |
+
"improvement_vs_rtn": 0.36710265101611717
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"path": "layers.12.self_attn.k_proj",
|
| 1099 |
+
"shape": [
|
| 1100 |
+
512,
|
| 1101 |
+
1024
|
| 1102 |
+
],
|
| 1103 |
+
"calibration_tokens": 131072,
|
| 1104 |
+
"layer_index": 72,
|
| 1105 |
+
"layer_count": 82,
|
| 1106 |
+
"elapsed_seconds": 0.0861282470000333,
|
| 1107 |
+
"weighted_error_rtn": 4275703.5625,
|
| 1108 |
+
"weighted_error_gptq_base_scale": 3486711.4375,
|
| 1109 |
+
"weighted_error_calibrated": 2498676.25,
|
| 1110 |
+
"improvement_vs_rtn": 0.4156105039847463
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"path": "layers.12.self_attn.v_proj",
|
| 1114 |
+
"shape": [
|
| 1115 |
+
512,
|
| 1116 |
+
1024
|
| 1117 |
+
],
|
| 1118 |
+
"calibration_tokens": 131072,
|
| 1119 |
+
"layer_index": 73,
|
| 1120 |
+
"layer_count": 82,
|
| 1121 |
+
"elapsed_seconds": 0.0851231030001145,
|
| 1122 |
+
"weighted_error_rtn": 4702787.625,
|
| 1123 |
+
"weighted_error_gptq_base_scale": 4288048.0,
|
| 1124 |
+
"weighted_error_calibrated": 3284459.75,
|
| 1125 |
+
"improvement_vs_rtn": 0.30159300995438854
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"path": "layers.12.self_attn.out_proj",
|
| 1129 |
+
"shape": [
|
| 1130 |
+
1024,
|
| 1131 |
+
1024
|
| 1132 |
+
],
|
| 1133 |
+
"calibration_tokens": 131072,
|
| 1134 |
+
"layer_index": 74,
|
| 1135 |
+
"layer_count": 82,
|
| 1136 |
+
"elapsed_seconds": 0.16879303800010348,
|
| 1137 |
+
"weighted_error_rtn": 30319800.5,
|
| 1138 |
+
"weighted_error_gptq_base_scale": 20240048.0,
|
| 1139 |
+
"weighted_error_calibrated": 16415591.25,
|
| 1140 |
+
"improvement_vs_rtn": 0.458585116679775
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"path": "layers.12.feed_forward.w1",
|
| 1144 |
+
"shape": [
|
| 1145 |
+
2560,
|
| 1146 |
+
1024
|
| 1147 |
+
],
|
| 1148 |
+
"calibration_tokens": 131072,
|
| 1149 |
+
"layer_index": 75,
|
| 1150 |
+
"layer_count": 82,
|
| 1151 |
+
"elapsed_seconds": 0.43459089999987555,
|
| 1152 |
+
"weighted_error_rtn": 2139852.4921875,
|
| 1153 |
+
"weighted_error_gptq_base_scale": 1759979.4765625,
|
| 1154 |
+
"weighted_error_calibrated": 1419907.6796875,
|
| 1155 |
+
"improvement_vs_rtn": 0.3364460004268913
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"path": "layers.12.feed_forward.w3",
|
| 1159 |
+
"shape": [
|
| 1160 |
+
2560,
|
| 1161 |
+
1024
|
| 1162 |
+
],
|
| 1163 |
+
"calibration_tokens": 131072,
|
| 1164 |
+
"layer_index": 76,
|
| 1165 |
+
"layer_count": 82,
|
| 1166 |
+
"elapsed_seconds": 0.4200112269998044,
|
| 1167 |
+
"weighted_error_rtn": 2906763.75,
|
| 1168 |
+
"weighted_error_gptq_base_scale": 2407409.453125,
|
| 1169 |
+
"weighted_error_calibrated": 2075201.3203125,
|
| 1170 |
+
"improvement_vs_rtn": 0.2860784367795628
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"path": "layers.12.feed_forward.w2",
|
| 1174 |
+
"shape": [
|
| 1175 |
+
1024,
|
| 1176 |
+
2560
|
| 1177 |
+
],
|
| 1178 |
+
"calibration_tokens": 131072,
|
| 1179 |
+
"layer_index": 77,
|
| 1180 |
+
"layer_count": 82,
|
| 1181 |
+
"elapsed_seconds": 0.16565411899978244,
|
| 1182 |
+
"weighted_error_rtn": 27945770.0,
|
| 1183 |
+
"weighted_error_gptq_base_scale": 23297999.5,
|
| 1184 |
+
"weighted_error_calibrated": 18765580.25,
|
| 1185 |
+
"improvement_vs_rtn": 0.32850015404835864
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"path": "layers.13.conv.in_proj",
|
| 1189 |
+
"shape": [
|
| 1190 |
+
3072,
|
| 1191 |
+
1024
|
| 1192 |
+
],
|
| 1193 |
+
"calibration_tokens": 131072,
|
| 1194 |
+
"layer_index": 78,
|
| 1195 |
+
"layer_count": 82,
|
| 1196 |
+
"elapsed_seconds": 0.49886530699996,
|
| 1197 |
+
"weighted_error_rtn": 3924115.78125,
|
| 1198 |
+
"weighted_error_gptq_base_scale": 3204793.734375,
|
| 1199 |
+
"weighted_error_calibrated": 2637089.5859375,
|
| 1200 |
+
"improvement_vs_rtn": 0.3279786497284559
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"path": "layers.13.conv.out_proj",
|
| 1204 |
+
"shape": [
|
| 1205 |
+
1024,
|
| 1206 |
+
1024
|
| 1207 |
+
],
|
| 1208 |
+
"calibration_tokens": 131072,
|
| 1209 |
+
"layer_index": 79,
|
| 1210 |
+
"layer_count": 82,
|
| 1211 |
+
"elapsed_seconds": 0.1670906310000646,
|
| 1212 |
+
"weighted_error_rtn": 67207295.75,
|
| 1213 |
+
"weighted_error_gptq_base_scale": 57003301.5,
|
| 1214 |
+
"weighted_error_calibrated": 43866349.375,
|
| 1215 |
+
"improvement_vs_rtn": 0.3472978062058092
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"path": "layers.13.feed_forward.w1",
|
| 1219 |
+
"shape": [
|
| 1220 |
+
2560,
|
| 1221 |
+
1024
|
| 1222 |
+
],
|
| 1223 |
+
"calibration_tokens": 131072,
|
| 1224 |
+
"layer_index": 80,
|
| 1225 |
+
"layer_count": 82,
|
| 1226 |
+
"elapsed_seconds": 0.4240155180000329,
|
| 1227 |
+
"weighted_error_rtn": 2120549.125,
|
| 1228 |
+
"weighted_error_gptq_base_scale": 1773979.9765625,
|
| 1229 |
+
"weighted_error_calibrated": 1441238.359375,
|
| 1230 |
+
"improvement_vs_rtn": 0.3203466298499451
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"path": "layers.13.feed_forward.w3",
|
| 1234 |
+
"shape": [
|
| 1235 |
+
2560,
|
| 1236 |
+
1024
|
| 1237 |
+
],
|
| 1238 |
+
"calibration_tokens": 131072,
|
| 1239 |
+
"layer_index": 81,
|
| 1240 |
+
"layer_count": 82,
|
| 1241 |
+
"elapsed_seconds": 0.4314563109999199,
|
| 1242 |
+
"weighted_error_rtn": 2848206.390625,
|
| 1243 |
+
"weighted_error_gptq_base_scale": 2378944.1640625,
|
| 1244 |
+
"weighted_error_calibrated": 2051027.8984375,
|
| 1245 |
+
"improvement_vs_rtn": 0.2798878953475594
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"path": "layers.13.feed_forward.w2",
|
| 1249 |
+
"shape": [
|
| 1250 |
+
1024,
|
| 1251 |
+
2560
|
| 1252 |
+
],
|
| 1253 |
+
"calibration_tokens": 131072,
|
| 1254 |
+
"layer_index": 82,
|
| 1255 |
+
"layer_count": 82,
|
| 1256 |
+
"elapsed_seconds": 0.17088190399999803,
|
| 1257 |
+
"weighted_error_rtn": 274465730.0,
|
| 1258 |
+
"weighted_error_gptq_base_scale": 255569441.0,
|
| 1259 |
+
"weighted_error_calibrated": 202536070.5,
|
| 1260 |
+
"improvement_vs_rtn": 0.26207155079069433
|
| 1261 |
+
}
|
| 1262 |
+
],
|
| 1263 |
+
"improvement_vs_rtn": 0.2936319688449269
|
| 1264 |
+
}
|
source_receipt.json
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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": [
|
| 5 |
+
{
|
| 6 |
+
"head": "b465fdbfe175304d9b977da137b2c178ae1091d3",
|
| 7 |
+
"license": "Apache-2.0",
|
| 8 |
+
"license_files": [
|
| 9 |
+
{
|
| 10 |
+
"path": "LICENSE.txt",
|
| 11 |
+
"sha256": "a7d00bfd54525bc694b6e32f64c7ebcf5e6b7ae3657be5cc12767bce74654a47"
|
| 12 |
+
}
|
| 13 |
+
],
|
| 14 |
+
"name": "typescript",
|
| 15 |
+
"revision": "b465fdbfe175304d9b977da137b2c178ae1091d3",
|
| 16 |
+
"split": "train",
|
| 17 |
+
"url": "https://github.com/microsoft/TypeScript.git"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"head": "dfbafa8ef178a5a3d23ef9461caa9494b3ef7f95",
|
| 21 |
+
"license": "MIT",
|
| 22 |
+
"license_files": [
|
| 23 |
+
{
|
| 24 |
+
"path": "LICENSE",
|
| 25 |
+
"sha256": "e714dd84c8fa242600844b05d317a31003423723178c1f1603dbfad1bc68d906"
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"name": "trpc",
|
| 29 |
+
"revision": "dfbafa8ef178a5a3d23ef9461caa9494b3ef7f95",
|
| 30 |
+
"split": "validation",
|
| 31 |
+
"url": "https://github.com/trpc/trpc.git"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"head": "fbe07f1a79d4bd8142ada44b562c8dd14e005149",
|
| 35 |
+
"license": "MIT",
|
| 36 |
+
"license_files": [
|
| 37 |
+
{
|
| 38 |
+
"path": "LICENSE.md",
|
| 39 |
+
"sha256": "f62497fffecc0852960c8d3e6934b9db86d16396e9b604072e923892cae3a588"
|
| 40 |
+
}
|
| 41 |
+
],
|
| 42 |
+
"name": "deno",
|
| 43 |
+
"revision": "fbe07f1a79d4bd8142ada44b562c8dd14e005149",
|
| 44 |
+
"split": "test",
|
| 45 |
+
"url": "https://github.com/denoland/deno.git"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"head": "108d6d3dc038332af2af83957748333091e35b3f",
|
| 49 |
+
"license": "MIT OR Apache-2.0",
|
| 50 |
+
"license_files": [
|
| 51 |
+
{
|
| 52 |
+
"path": "LICENSE",
|
| 53 |
+
"sha256": "253cd04c6714889df2d32f3f64d669179a1c95c76ac43c40882c52eb06bc3552"
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"name": "tokio",
|
| 57 |
+
"revision": "108d6d3dc038332af2af83957748333091e35b3f",
|
| 58 |
+
"split": "train",
|
| 59 |
+
"url": "https://github.com/tokio-rs/tokio.git"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"head": "747814f7d5fbab872df3b02f070c165b91bde062",
|
| 63 |
+
"license": "MIT OR Apache-2.0",
|
| 64 |
+
"license_files": [
|
| 65 |
+
{
|
| 66 |
+
"path": "LICENSE-APACHE",
|
| 67 |
+
"sha256": "62c7a1e35f56406896d7aa7ca52d0cc0d272ac022b5d2796e7d6905db8a3636a"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"path": "LICENSE-MIT",
|
| 71 |
+
"sha256": "23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3"
|
| 72 |
+
}
|
| 73 |
+
],
|
| 74 |
+
"name": "serde",
|
| 75 |
+
"revision": "747814f7d5fbab872df3b02f070c165b91bde062",
|
| 76 |
+
"split": "test",
|
| 77 |
+
"url": "https://github.com/serde-rs/serde.git"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"head": "e2243a6a7f4a8c09e9233a253f3d1f71e45d8cef",
|
| 81 |
+
"license": "MIT",
|
| 82 |
+
"license_files": [
|
| 83 |
+
{
|
| 84 |
+
"path": "LICENSE",
|
| 85 |
+
"sha256": "a65fcc5a1095fc33cc37e4fff69366e49d7e92f613558a2b95ed1b70e33758b4"
|
| 86 |
+
}
|
| 87 |
+
],
|
| 88 |
+
"name": "fmt",
|
| 89 |
+
"revision": "e2243a6a7f4a8c09e9233a253f3d1f71e45d8cef",
|
| 90 |
+
"split": "train",
|
| 91 |
+
"url": "https://github.com/fmtlib/fmt.git"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"head": "2222d386c905e6a6ebf73c61571a8a2cf196e843",
|
| 95 |
+
"license": "MIT",
|
| 96 |
+
"license_files": [
|
| 97 |
+
{
|
| 98 |
+
"path": "LICENSE.MIT",
|
| 99 |
+
"sha256": "d64d1b4d948aa7751cfb613c02dc246aab7b358d760053e6580f01affe946906"
|
| 100 |
+
}
|
| 101 |
+
],
|
| 102 |
+
"name": "nlohmann-json",
|
| 103 |
+
"revision": "2222d386c905e6a6ebf73c61571a8a2cf196e843",
|
| 104 |
+
"split": "test",
|
| 105 |
+
"url": "https://github.com/nlohmann/json.git"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"head": "a3714473feb3d2908add734d340e7755fd85e0a3",
|
| 109 |
+
"license": "MIT",
|
| 110 |
+
"license_files": [
|
| 111 |
+
{
|
| 112 |
+
"path": "LICENSE",
|
| 113 |
+
"sha256": "95a5762890e5c1c9808921cef095661fc482c5e1f0bba31446ac85595df6237c"
|
| 114 |
+
}
|
| 115 |
+
],
|
| 116 |
+
"name": "express",
|
| 117 |
+
"revision": "a3714473feb3d2908add734d340e7755fd85e0a3",
|
| 118 |
+
"split": "validation",
|
| 119 |
+
"url": "https://github.com/expressjs/express.git"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"head": "6a2f545bfd8ed31e19066a299296917e034aca58",
|
| 123 |
+
"license": "BSD-3-Clause",
|
| 124 |
+
"license_files": [
|
| 125 |
+
{
|
| 126 |
+
"path": "LICENSE.txt",
|
| 127 |
+
"sha256": "489a8e1108509ed98a37bb983e11e0f7e1d31f0bd8f99a79c8448e7ff37d07ea"
|
| 128 |
+
}
|
| 129 |
+
],
|
| 130 |
+
"name": "flask",
|
| 131 |
+
"revision": "6a2f545bfd8ed31e19066a299296917e034aca58",
|
| 132 |
+
"split": "validation",
|
| 133 |
+
"url": "https://github.com/pallets/flask.git"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"head": "414f0513c33883adf6f2b46901d4f0b38a455851",
|
| 137 |
+
"license": "Apache-2.0",
|
| 138 |
+
"license_files": [
|
| 139 |
+
{
|
| 140 |
+
"path": "LICENSE",
|
| 141 |
+
"sha256": "09e8a9bcec8067104652c168685ab0931e7868f9c8284b66f5ae6edae5f1130b"
|
| 142 |
+
}
|
| 143 |
+
],
|
| 144 |
+
"name": "requests",
|
| 145 |
+
"revision": "414f0513c33883adf6f2b46901d4f0b38a455851",
|
| 146 |
+
"split": "test",
|
| 147 |
+
"url": "https://github.com/psf/requests.git"
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"head": "34dac209ffb6ef85cc78c5d217bbb7ad001d68fd",
|
| 151 |
+
"license": "MIT",
|
| 152 |
+
"license_files": [
|
| 153 |
+
{
|
| 154 |
+
"path": "LICENSE",
|
| 155 |
+
"sha256": "b104efb2c7700691650f27034e8541c5ae0ed9af54d884287f19a7467ca2fe7f"
|
| 156 |
+
}
|
| 157 |
+
],
|
| 158 |
+
"name": "gin",
|
| 159 |
+
"revision": "34dac209ffb6ef85cc78c5d217bbb7ad001d68fd",
|
| 160 |
+
"split": "validation",
|
| 161 |
+
"url": "https://github.com/gin-gonic/gin.git"
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"head": "76ebb1577a472e722b455931973173e3f5471abb",
|
| 165 |
+
"license": "Apache-2.0",
|
| 166 |
+
"license_files": [
|
| 167 |
+
{
|
| 168 |
+
"path": "LICENSE",
|
| 169 |
+
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
|
| 170 |
+
}
|
| 171 |
+
],
|
| 172 |
+
"name": "guava",
|
| 173 |
+
"revision": "76ebb1577a472e722b455931973173e3f5471abb",
|
| 174 |
+
"split": "test",
|
| 175 |
+
"url": "https://github.com/google/guava.git"
|
| 176 |
+
}
|
| 177 |
+
],
|
| 178 |
+
"schema_version": 1
|
| 179 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|startoftext|>",
|
| 4 |
+
"clean_up_tokenization_spaces": false,
|
| 5 |
+
"eos_token": "<|im_end|>",
|
| 6 |
+
"is_local": true,
|
| 7 |
+
"local_files_only": false,
|
| 8 |
+
"mask_token": "<|mask|>",
|
| 9 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 10 |
+
"pad_token": "<|pad|>",
|
| 11 |
+
"tokenizer_class": "TokenizersBackend"
|
| 12 |
+
}
|
training_report.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"algorithm": "symmetric_in_batch_infonce",
|
| 4 |
+
"source_model": "LiquidAI/LFM2.5-Encoder-230M",
|
| 5 |
+
"source_revision": "0b649ad0c684378b03d4d8304f7577a662ab89bc",
|
| 6 |
+
"train_sha256": "426ebfaad34b14d7627ba6e668ae36e08e548c9d057b0edc208bcfa6fe527629",
|
| 7 |
+
"validation_sha256": "9ac88b3138de4ca94c2ef3a87ccf19381fc76265c2bc9d65b4791983d0315096",
|
| 8 |
+
"train_rows": 24626,
|
| 9 |
+
"source_train_rows": 42626,
|
| 10 |
+
"training_language_counts": {
|
| 11 |
+
"c": 389,
|
| 12 |
+
"cpp": 268,
|
| 13 |
+
"cuda": 1,
|
| 14 |
+
"go": 3000,
|
| 15 |
+
"java": 3000,
|
| 16 |
+
"javascript": 3000,
|
| 17 |
+
"php": 3000,
|
| 18 |
+
"python": 3000,
|
| 19 |
+
"ruby": 3000,
|
| 20 |
+
"rust": 2980,
|
| 21 |
+
"shell": 2,
|
| 22 |
+
"toml": 21,
|
| 23 |
+
"typescript": 2945,
|
| 24 |
+
"yaml": 20
|
| 25 |
+
},
|
| 26 |
+
"validation_rows": 5319,
|
| 27 |
+
"configuration": {
|
| 28 |
+
"model": "LiquidAI/LFM2.5-Encoder-230M",
|
| 29 |
+
"revision": "0b649ad0c684378b03d4d8304f7577a662ab89bc",
|
| 30 |
+
"train": "/home/ubuntu/corpus-v1/train.jsonl",
|
| 31 |
+
"validation": "/home/ubuntu/corpus-v1/validation.jsonl",
|
| 32 |
+
"output": "/home/ubuntu/LFM2.5-Encoder-230M-Code-BF16",
|
| 33 |
+
"epochs": 2,
|
| 34 |
+
"batch_size": 32,
|
| 35 |
+
"gradient_accumulation": 1,
|
| 36 |
+
"eval_batch_size": 64,
|
| 37 |
+
"query_length": 96,
|
| 38 |
+
"passage_length": 384,
|
| 39 |
+
"learning_rate": 2e-05,
|
| 40 |
+
"weight_decay": 0.1,
|
| 41 |
+
"warmup_ratio": 0.1,
|
| 42 |
+
"temperature": 0.05,
|
| 43 |
+
"validation_limit": 0,
|
| 44 |
+
"train_limit": 0,
|
| 45 |
+
"rows_per_language": 3000,
|
| 46 |
+
"seed": 17
|
| 47 |
+
},
|
| 48 |
+
"initial_validation": {
|
| 49 |
+
"pairs": 5319,
|
| 50 |
+
"mrr": 0.13434511350191802,
|
| 51 |
+
"recall_at_1": 0.10434292160180485,
|
| 52 |
+
"recall_at_5": 0.15811242714796014,
|
| 53 |
+
"recall_at_10": 0.18518518518518517
|
| 54 |
+
},
|
| 55 |
+
"history": [
|
| 56 |
+
{
|
| 57 |
+
"pairs": 5319,
|
| 58 |
+
"mrr": 0.5052553469703251,
|
| 59 |
+
"recall_at_1": 0.43090806542583193,
|
| 60 |
+
"recall_at_5": 0.5877044557247603,
|
| 61 |
+
"recall_at_10": 0.640721940214326,
|
| 62 |
+
"epoch": 1,
|
| 63 |
+
"train_loss": 1.1061554163965663
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"pairs": 5319,
|
| 67 |
+
"mrr": 0.5139807531816127,
|
| 68 |
+
"recall_at_1": 0.44030832863320174,
|
| 69 |
+
"recall_at_5": 0.5961646926113932,
|
| 70 |
+
"recall_at_10": 0.6480541455160744,
|
| 71 |
+
"epoch": 2,
|
| 72 |
+
"train_loss": 0.5155125687041735
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"best_validation_mrr": 0.5139807531816127,
|
| 76 |
+
"elapsed_seconds": 764.2277336,
|
| 77 |
+
"cuda": {
|
| 78 |
+
"device": "NVIDIA RTX A6000",
|
| 79 |
+
"torch": "2.13.0+cu130",
|
| 80 |
+
"peak_memory_bytes": 2742739456
|
| 81 |
+
}
|
| 82 |
+
}
|