iamleonie tugot17 commited on
Commit
7c9d211
Β·
0 Parent(s):

Initial commit

Browse files

Co-authored-by: tugot17 <tugot17@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ LFM2.5-1.2B-Instruct-DSpark-Draft-v1-F16.gguf filter=lfs diff=lfs merge=lfs -text
37
+ LFM2.5-1.2B-Instruct-DSpark-Draft-v1-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
38
+ LFM2.5-1.2B-Instruct-DSpark-Draft-v1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
LFM2.5-1.2B-Instruct-DSpark-Draft-v1-F16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f66aa6da22045981512feb25b8279467162929868bf21eff575a4a5000fe1c7e
3
+ size 593886752
LFM2.5-1.2B-Instruct-DSpark-Draft-v1-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cf9bb2947638dd74a47b486b817f407831c0da420aeebb6973fb66c25af51e4
3
+ size 175848992
LFM2.5-1.2B-Instruct-DSpark-Draft-v1-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f2fd36f4ea26e66b2732cefead2586d90220d829d70e63de8030e3878d49ef5
3
+ size 316669472
LICENSE ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LFM Open License v1.0
2
+
3
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
4
+ 1. Definitions.
5
+
6
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by this document.
7
+
8
+ "Licensor" shall mean Liquid AI, Inc.
9
+
10
+ "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.
11
+
12
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
13
+
14
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
15
+
16
+ "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.
17
+
18
+ "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.
19
+
20
+ "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.
21
+
22
+ "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."
23
+
24
+ "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.
25
+
26
+ "Commercial Use" shall mean any use of the Work for direct or indirect commercial advantage or monetary compensation.
27
+
28
+ "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.
29
+ "Non-Commercial or Research Purposes" shall mean purposes that do not involve any use of the Work or a Derivative Work for Commercial Use.
30
+
31
+ "Threshold" shall mean annual revenue of 10 million United States dollars ($10,000,000) or more.
32
+
33
+ 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.
34
+
35
+ 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.
36
+
37
+ 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:
38
+
39
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
40
+
41
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
42
+
43
+ (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
44
+
45
+ (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.
46
+
47
+ 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.
48
+
49
+ 5. Commercial Use Limitation.
50
+
51
+ (a) The rights granted under this License for Commercial Use are conditioned upon You or Your Legal Entity not exceeding the Threshold.
52
+
53
+ (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.
54
+
55
+ (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.
56
+
57
+ 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.
58
+
59
+ 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.
60
+
61
+ 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.
62
+
63
+ 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.
64
+
65
+ 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.
66
+
67
+ 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.
68
+
69
+ END OF TERMS AND CONDITIONS
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: llama.cpp
3
+ base_model: LiquidAI/LFM2.5-1.2B-Instruct-DSpark-Draft-v1
4
+ license: other
5
+ license_name: lfm1.0
6
+ license_link: LICENSE
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - speculative-decoding
10
+ - dspark
11
+ - lfm2
12
+ - draft-model
13
+ - gguf
14
+ ---
15
+
16
+ <div align="center">
17
+ <img
18
+ src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/2b08LKpev0DNEk6DlnWkY.png"
19
+ alt="Liquid AI"
20
+ style="width: 100%; max-width: 100%; height: auto; display: inline-block; margin-bottom: 0.5em; margin-top: 0.5em;"
21
+ />
22
+ <div style="display: flex; justify-content: center; gap: 0.5em; margin-bottom: 1em;">
23
+ <a href="https://playground.liquid.ai/"><strong>Try LFM</strong></a> β€’
24
+ <a href="https://docs.liquid.ai/lfm/getting-started/welcome"><strong>Docs</strong></a> β€’
25
+ <a href="https://leap.liquid.ai/"><strong>LEAP</strong></a> β€’
26
+ <a href="https://discord.com/invite/liquid-ai"><strong>Discord</strong></a>
27
+ </div>
28
+ </div>
29
+
30
+ # LFM2.5-1.2B-Instruct-DSpark-GGUF
31
+
32
+ GGUF build of [`LiquidAI/LFM2.5-1.2B-Instruct-DSpark`](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Instruct-DSpark) for **llama.cpp** (DSpark speculative decoding is in mainline, ggml-org/llama.cpp #25173).
33
+
34
+ This is a standalone **draft sidecar**: it carries only the drafter (5 attention layers, rank-256 Markov head, confidence head, block size 9). Token embeddings and the LM head are shared from the target model at load time, so it must be paired with a [LFM2.5-1.2B-Instruct-GGUF](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Instruct-GGUF) target file.
35
+
36
+ Find more information about LFM2.5-DSpark in our [blog post](https://www.liquid.ai/blog/lfm2-5-dspark).
37
+
38
+ ## πŸ“¦ Files
39
+
40
+ | file | quant | size | notes |
41
+ |---|---|---:|---|
42
+ | `LFM2.5-1.2B-Instruct-DSpark-Draft-v1-F16.gguf` | F16 | 594 MB | best accept length, recommended when memory allows |
43
+ | `LFM2.5-1.2B-Instruct-DSpark-Draft-v1-Q8_0.gguf` | Q8_0 | 315 MB | accept length βˆ’2% vs F16 |
44
+ | `LFM2.5-1.2B-Instruct-DSpark-Draft-v1-Q4_K_M.gguf` | Q4_K_M | 174 MB | accept length βˆ’3% vs F16, smallest recommended β€” sub-4-bit draft quants measurably hurt both accept length and throughput |
45
+
46
+ Draft quantization changes speed only marginally (the drafter is a small share of each cycle); choose by memory budget. The target model quant is the main speed/quality lever and is independent of this file.
47
+
48
+ ## πŸƒ How to run (llama.cpp)
49
+
50
+ ```bash
51
+ llama-server -m LFM2.5-1.2B-Instruct-F16.gguf \
52
+ -md LFM2.5-1.2B-Instruct-DSpark-F16.gguf \
53
+ --spec-type draft-dspark --spec-draft-n-max 10 --spec-draft-n-min 0 \
54
+ -fa on -ngl 99
55
+ ```
56
+
57
+ The block size is read from the sidecar metadata (n-max is clamped to it). Speculative decoding is **exact**: the target verifies every proposed token, so greedy output equals the target alone; per-response `timings` report `draft_n` / `draft_n_accepted`.
58
+
59
+ Other models in the LFM2.5-DSpark GGUF family:
60
+
61
+ | Draft (GGUF) | Target (GGUF) |
62
+ |---|---|
63
+ | [LFM2.5-1.2B-Instruct-DSpark-GGUF](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Instruct-DSpark-GGUF) | [LFM2.5-1.2B-Instruct-GGUF](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Instruct-GGUF) |
64
+ | [LFM2.5-2.6B-DSpark-GGUF](https://huggingface.co/LiquidAI/LFM2.5-2.6B-DSpark-GGUF) | [LFM2.5-2.6B-GGUF](https://huggingface.co/LiquidAI/LFM2.5-2.6B-GGUF) |
65
+ | [LFM2.5-8B-A1B-DSpark-GGUF](https://huggingface.co/LiquidAI/LFM2.5-8B-A1B-DSpark-GGUF) | [LFM2.5-8B-A1B-GGUF](https://huggingface.co/LiquidAI/LFM2.5-8B-A1B-GGUF) |
66
+
67
+ ## πŸ“Š Acceptance and benchmarks
68
+
69
+ See [`LiquidAI/LFM2.5-1.2B-Instruct-DSpark`](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Instruct-DSpark) for acceptance-length tables (H100 and Apple silicon) and target benchmarks.
70
+
71
+ ## πŸ“¬ Contact
72
+
73
+ - Got questions or want to connect? [Join our Discord community](https://discord.com/invite/liquid-ai)
74
+ - If you are interested in custom solutions with edge deployment, please contact [our sales team](https://www.liquid.ai/contact).
75
+
76
+ ## Citation
77
+
78
+ ```bibtex
79
+ @article{liquidAI202626B,
80
+ author = {Liquid AI},
81
+ title = {LFM2.5-2.6B: Agents Everywhere},
82
+ journal = {Liquid AI Blog},
83
+ year = {2026},
84
+ note = {www.liquid.ai/blog/lfm2-5-2-6b},
85
+ }
86
+ ```
87
+
88
+ ```bibtex
89
+ @article{liquidAI2026dspark,
90
+ author = {Liquid AI},
91
+ title = {LFM2.5-DSpark: Up to 3.2x Faster Inference from H100 to MacBook},
92
+ journal = {Liquid AI Blog},
93
+ year = {2026},
94
+ note = {www.liquid.ai/blog/lfm2.5-dspark},
95
+ }
96
+ ```