Instructions to use litert-community/CCORE-Web-Coder-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/CCORE-Web-Coder-4B with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=litert-community/CCORE-Web-Coder-4B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/CCORE-Web-Coder-4B with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Add CCORE-Web-Coder-4B as two int8 LiteRT-LM files
Browse filesThe desktop file (KV cache 32,768 tokens) ran on a Mac CPU and the phone file (KV cache 16,384 tokens) on the CPU and GPU of a Pixel 11 Pro and a Snapdragon Galaxy S26, all with LiteRT-LM 0.20.0.
- .gitattributes +2 -0
- CCORE-Web-Coder-4B_int8_kv16384.litertlm +3 -0
- CCORE-Web-Coder-4B_int8_kv32768.litertlm +3 -0
- LICENSE +202 -0
- README.md +155 -0
- litertlm_manifest.json +305 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* 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
|
|
|
|
|
|
|
|
|
| 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 |
+
CCORE-Web-Coder-4B_int8_kv16384.litertlm filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
CCORE-Web-Coder-4B_int8_kv32768.litertlm filter=lfs diff=lfs merge=lfs -text
|
CCORE-Web-Coder-4B_int8_kv16384.litertlm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cde7b95469f2e28127b2b7187714b049adbf41d507f6da1dadb6821f6e0cfba
|
| 3 |
+
size 4354719744
|
CCORE-Web-Coder-4B_int8_kv32768.litertlm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e5c85c2d04dadf32da921add5bfeea6a561e23187a01f6412d863d63d2c4be4
|
| 3 |
+
size 4354719744
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright 2026 Alibaba Cloud
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: ccore/CCORE-Web-Coder-4B
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
tags: [litert, litert-lm, litertlm, on-device, edge, android, code, html, web-development]
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
library_name: litert-lm
|
| 8 |
+
litert_lm:
|
| 9 |
+
manifest_schema: "0.1.5"
|
| 10 |
+
capabilities:
|
| 11 |
+
vision: false
|
| 12 |
+
audio: false
|
| 13 |
+
thinking:
|
| 14 |
+
declared: true
|
| 15 |
+
control: switch
|
| 16 |
+
variants:
|
| 17 |
+
- file: CCORE-Web-Coder-4B_int8_kv16384.litertlm
|
| 18 |
+
backends: [cpu, gpu]
|
| 19 |
+
default_backend: cpu
|
| 20 |
+
recommended:
|
| 21 |
+
- platform: android
|
| 22 |
+
device_class: "flagship (Galaxy S26, Snapdragon)"
|
| 23 |
+
soc: SM8850
|
| 24 |
+
backend: gpu
|
| 25 |
+
- platform: android
|
| 26 |
+
device_class: "flagship (Pixel 11 Pro, PowerVR GPU)"
|
| 27 |
+
soc: "Tensor G6"
|
| 28 |
+
backend: gpu
|
| 29 |
+
context_length: 16384
|
| 30 |
+
min_runtime_version: "0.20.0"
|
| 31 |
+
checked:
|
| 32 |
+
- device: "Pixel 11 Pro (PowerVR GPU)"
|
| 33 |
+
os: android
|
| 34 |
+
backend: cpu
|
| 35 |
+
runtime: "0.20.0"
|
| 36 |
+
top_k: 1
|
| 37 |
+
temperature: 0
|
| 38 |
+
runs: 1
|
| 39 |
+
date: "2026-11-30"
|
| 40 |
+
- device: "Pixel 11 Pro (PowerVR GPU)"
|
| 41 |
+
os: android
|
| 42 |
+
backend: gpu
|
| 43 |
+
runtime: "0.20.0"
|
| 44 |
+
top_k: 1
|
| 45 |
+
temperature: 0
|
| 46 |
+
runs: 1
|
| 47 |
+
date: "2026-11-30"
|
| 48 |
+
- device: "Galaxy S26 (Snapdragon, SM8850)"
|
| 49 |
+
os: android
|
| 50 |
+
backend: cpu
|
| 51 |
+
runtime: "0.20.0"
|
| 52 |
+
top_k: 1
|
| 53 |
+
temperature: 0
|
| 54 |
+
runs: 1
|
| 55 |
+
date: "2026-11-30"
|
| 56 |
+
- device: "Galaxy S26 (Snapdragon, SM8850)"
|
| 57 |
+
os: android
|
| 58 |
+
backend: gpu
|
| 59 |
+
runtime: "0.20.0"
|
| 60 |
+
top_k: 1
|
| 61 |
+
temperature: 0
|
| 62 |
+
runs: 1
|
| 63 |
+
date: "2026-11-30"
|
| 64 |
+
- device: "Mac (Apple silicon, macOS 27.0)"
|
| 65 |
+
os: macos
|
| 66 |
+
backend: cpu
|
| 67 |
+
runtime: "0.20.0"
|
| 68 |
+
top_k: 1
|
| 69 |
+
temperature: 0
|
| 70 |
+
runs: 1
|
| 71 |
+
date: "2026-11-30"
|
| 72 |
+
- file: CCORE-Web-Coder-4B_int8_kv32768.litertlm
|
| 73 |
+
backends: [cpu]
|
| 74 |
+
default_backend: cpu
|
| 75 |
+
recommended:
|
| 76 |
+
- platform: macos
|
| 77 |
+
backend: cpu
|
| 78 |
+
context_length: 32768
|
| 79 |
+
min_runtime_version: "0.20.0"
|
| 80 |
+
checked:
|
| 81 |
+
- device: "Mac (Apple silicon, macOS 27.0)"
|
| 82 |
+
os: macos
|
| 83 |
+
backend: cpu
|
| 84 |
+
runtime: "0.20.0"
|
| 85 |
+
top_k: 1
|
| 86 |
+
temperature: 0
|
| 87 |
+
runs: 1
|
| 88 |
+
date: "2026-11-30"
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
# CCORE-Web-Coder-4B — LiteRT-LM
|
| 92 |
+
|
| 93 |
+
This repository is a conversion of [ccore/CCORE-Web-Coder-4B](https://huggingface.co/ccore/CCORE-Web-Coder-4B) to [LiteRT-LM](https://github.com/google-ai-edge/LiteRT-LM) (`.litertlm`), made with [litert-torch](https://github.com/google-ai-edge/litert-torch) at commit 7b614004 for LiteRT-LM 0.20.0, in two files: the desktop file and the phone file. On the GPU of a Galaxy S26 (Snapdragon, SM8850), the phone file decoded 256 tokens at 12.734–12.861 tok/s after a 1,024-token prompt, on 2026-11-30. Speed still being tuned (updates follow).
|
| 94 |
+
|
| 95 |
+
CCORE-Web-Coder-4B is CCORE's fine-tune of Qwen/Qwen3.5-4B-Base that turns a brief into one HTML file with React: a website, a slide deck or a web infographic. These files contain its text decoder only: text in, text out. The decoder has 24 Gated DeltaNet layers and 8 full-attention layers. The desktop file ran on a Mac CPU, and the phone file on the CPU and the GPU of a Pixel 11 Pro and of the Galaxy S26, all with LiteRT-LM 0.20.0.
|
| 96 |
+
|
| 97 |
+
On that Mac, the desktop file ran with one `litert-lm run` command, shown in [Usage](#usage). Use LiteRT-LM 0.20.0: it is the first stable release with [LiteRT #11565](https://github.com/google-ai-edge/LiteRT/pull/11565), which the GPU needs for the channels-last layout of these files' convolution state. A prompt and its whole reply share the file's KV cache: 32,768 tokens in the desktop file, 16,384 in the phone file. The publisher's card says a full response, reasoning included, typically uses around 20,000 output tokens.
|
| 98 |
+
|
| 99 |
+
On the Mac CPU, each file answered eight short questions with greedy decoding, thinking off and no system prompt, and every reply ended by itself. In seven questions, the desktop file's reply was token for token that of the publisher's float32 model in Transformers, and in the eighth it shared the first 15 tokens. Against the desktop file, the phone file's replies were the same in seven and shared the first 15 tokens in the eighth. On both phones, CPU and GPU, the phone file's eight replies were token for token its replies on the Mac.
|
| 100 |
+
|
| 101 |
+
With `enable_thinking` left out or false, the files' template gave these questions the same prompt tokens as the publisher's template with thinking off. That prompt ends with an empty thought block, `<think>\n\n</think>\n\n`.
|
| 102 |
+
|
| 103 |
+
## Files
|
| 104 |
+
|
| 105 |
+
| File | Use | KV cache | Size (bytes) |
|
| 106 |
+
|---|---|---|---|
|
| 107 |
+
| `CCORE-Web-Coder-4B_int8_kv32768.litertlm` | desktop CPU | 32,768 tokens | 4,354,719,744 |
|
| 108 |
+
| `CCORE-Web-Coder-4B_int8_kv16384.litertlm` | Android phones, GPU or CPU | 16,384 tokens | 4,354,719,744 |
|
| 109 |
+
|
| 110 |
+
## Usage
|
| 111 |
+
|
| 112 |
+
Download the file for your device, here the desktop file:
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
hf download litert-community/CCORE-Web-Coder-4B CCORE-Web-Coder-4B_int8_kv32768.litertlm --local-dir .
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
Run it on the CPU with the `litert-lm` package from PyPI, which needs Python 3.10 or newer:
|
| 119 |
+
|
| 120 |
+
```bash
|
| 121 |
+
pip install litert-lm==0.20.0
|
| 122 |
+
litert-lm run ./CCORE-Web-Coder-4B_int8_kv32768.litertlm --backend cpu --prompt "Write a minimal HTML page with one red button."
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
With macOS's own `python3`, which is 3.9.6 on macOS 27.0, pip stops with `ERROR: Could not find a version that satisfies the requirement litert-lm==0.20.0`. On a Mac with Apple silicon and macOS 27.0, each of two runs of the command printed a full HTML page and ended by itself. The first wrote a weight cache of about 4.2 GB next to the model file and peaked at about 12.4 GB of resident memory. The second read that cache and peaked at about 7.5 GB.
|
| 126 |
+
|
| 127 |
+
On Android, use `CCORE-Web-Coder-4B_int8_kv16384.litertlm` with LiteRT-LM 0.20.0 on the GPU: on both phones its prefill was faster than the CPU's in every run, and on the Galaxy S26 its decode was too. With the default cache folder, the first engine writes caches next to the model file: about 4.2 GB for the CPU, and for the GPU about 4.2 GB on the Pixel 11 Pro and 31 MB on the Galaxy S26.
|
| 128 |
+
|
| 129 |
+
## Performance
|
| 130 |
+
|
| 131 |
+
The phone file ran with LiteRT-LM 0.20.0, the `litert-lm-api` Android wheel from PyPI, through its Python API on the phone: `Benchmark(model, backend, prefill_tokens=1024, decode_tokens=256, max_num_tokens=2048)`, three runs on one engine per row, with a 2,048-token KV cache instead of the file's 16,384. Each range spans the three runs. The phones lowered their CPU or GPU clock limits during all four rows.
|
| 132 |
+
|
| 133 |
+
| Phone | Backend | Prefill, tok/s | Decode, tok/s | Memory, about |
|
| 134 |
+
|---|---|---|---|---|
|
| 135 |
+
| Pixel 11 Pro, Android 17 | CPU, 4 threads | 31.41–48.08 | 5.889–8.163 | 5.54 GB peak resident |
|
| 136 |
+
| Pixel 11 Pro, Android 17 | GPU | 110.99–130.48 | 8.107–8.499 | 1.23 GB peak resident, available 9.60 → 4.10 GB |
|
| 137 |
+
| Galaxy S26 (Snapdragon, SM8850), Android 16 | CPU, 4 threads | 46.25–59.80 | 8.669–9.503 | 5.37 GB peak resident |
|
| 138 |
+
| Galaxy S26 (Snapdragon, SM8850), Android 16 | GPU | 82.01–95.95 | 12.734–12.861 | 1.68 GB peak resident, available 7.65 → 1.93 GB |
|
| 139 |
+
|
| 140 |
+
Peak resident is the process's VmHWM. The GPU engine's memory is not in it. It shows as the fall of the phone's MemAvailable, read right before the engine was created and at its lowest during the row. With the file's 16,384-token KV cache, in the eight-question runs, peak resident on the CPU was about 6.04–6.05 GB on the Pixel 11 Pro and 5.80–6.15 GB on the Galaxy S26. 1 GB = 10⁹ bytes.
|
| 141 |
+
|
| 142 |
+
## Notes
|
| 143 |
+
|
| 144 |
+
- **Message whitespace.** The files' chat template keeps the whitespace at the start and end of each message, and the publisher's template removes it. Strip each message to get the publisher's prompt.
|
| 145 |
+
- **`<|endoftext|>` in a prompt.** A `<|endoftext|>` token (id 248044) in a prompt is treated as padding: the Gated DeltaNet layers get a zero input at that position.
|
| 146 |
+
- **One engine per conversation.** Create a new engine for each conversation, as every reply on this card did. See [LiteRT-LM #3165](https://github.com/google-ai-edge/LiteRT-LM/issues/3165).
|
| 147 |
+
- **10-minute limit of a blocking send.** With LiteRT-LM 0.19.0 and 0.18.1, the blocking send (Python `send_message`, C `litert_lm_conversation_send_message`, C++ `Conversation::SendMessage`) fails a reply that is still generating after 10 minutes with `DEADLINE_EXCEEDED`, and streaming with `send_message_async` ran past 10 minutes without it. LiteRT-LM 0.20.0 was not checked. At the decode speeds in the table, 10 minutes of decoding is about 3,500 to 7,700 tokens (600 s × 5.889 to 12.861 tok/s).
|
| 148 |
+
- **A message that overflows the context.** With LiteRT-LM 0.19.1 and 0.19.2, once a message failed because it did not fit in the context window, every later message in that conversation failed too, with `Task failed with state: 7`; a new conversation answered. LiteRT-LM 0.20.0 was not checked.
|
| 149 |
+
- **GPU program cache on Android.** On the Pixel 11 Pro and the Galaxy S26, the second GPU engine loaded the program cache that the first one wrote, and the program cache did not grow. Creating the engine took 47.34 s, then 13.32 s on the Pixel 11 Pro, and 8.65 s, then 6.86 s on the Galaxy S26.
|
| 150 |
+
- **Phones with 8 GB of memory.** On a phone with 8 GB of memory, the GPU engine of the phone file is not expected to fit: with the file's 16,384-token KV cache, in the eight-question runs, the phone's available memory fell by about 5.65–5.84 GB on the Pixel 11 Pro and 6.06–6.42 GB on the Galaxy S26. The phone file was not run on an 8 GB phone.
|
| 151 |
+
- **Not checked.** On a Mac, the GPU was not checked with these files. These files were not run on a Linux or Windows desktop. No other phone was measured, and these files were not measured on iOS. Tool calls were not checked. The files' replies were checked with thinking off only, while the publisher's card recommends thinking on. With the system prompt from the publisher's card, only the first 256 tokens of one desktop-file reply were compared with the publisher's model, and the first 67 matched.
|
| 152 |
+
|
| 153 |
+
## License and changes
|
| 154 |
+
|
| 155 |
+
Distributed under **Apache-2.0**, the source model's license. Its [LICENSE](https://huggingface.co/litert-community/CCORE-Web-Coder-4B/blob/main/LICENSE) file is included, and the source repository has no NOTICE file. **Changes from the original work:** the text decoder, from the publisher's weights at commit 2a2d6220, converted to LiteRT-LM with int8 per-channel weights, except the `in_proj_a` and `in_proj_b` projections, which stay float32; the publisher's `tokenizer.json`, with the 11 added tokens of its `tokenizer_config.json` that it lacks, ids 248066–248076, appended; the chat template of LiteRT-LM v0.19.0's `models/qwen3_5` configuration. The vision weights are not converted. No training or fine-tuning.
|
litertlm_manifest.json
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"manifest_schema": "0.1.5",
|
| 3 |
+
"repo": "litert-community/CCORE-Web-Coder-4B",
|
| 4 |
+
"generated": "2026-11-30",
|
| 5 |
+
"generator": "make_manifest.py",
|
| 6 |
+
"model": {
|
| 7 |
+
"display_name": "CCORE-Web-Coder-4B",
|
| 8 |
+
"base_model": "ccore/CCORE-Web-Coder-4B",
|
| 9 |
+
"architecture": "Hybrid Gated DeltaNet (Qwen3.5-4B): 32 decoder layers, 24 linear-attention (Gated DeltaNet) and 8 full-attention (every fourth layer), hidden 2560, 16 query / 4 KV heads of 256 in the full-attention layers, 248,320-entry tied vocabulary; text decoder only (the vision weights are not converted); CCORE's fine-tune of Qwen/Qwen3.5-4B-Base that turns a brief into one HTML file with React: a website, a slide deck or a web infographic",
|
| 10 |
+
"parameters_b": 4,
|
| 11 |
+
"license": "apache-2.0",
|
| 12 |
+
"session_defaults": {
|
| 13 |
+
"notes": "Checked with thinking off only: with enable_thinking left out or false, the template gives the publisher's thinking-off prompt, which ends with an empty thought block (<think>\\n\\n</think>\\n\\n). A prompt and its whole reply share the KV cache; the publisher's card says a full response, reasoning included, typically uses around 20,000 output tokens. Strip each message: the template keeps the whitespace at the start and end of a message, and the publisher's template removes it. The eight-question replies were greedy (top_k 1)."
|
| 14 |
+
},
|
| 15 |
+
"context_length": 16384,
|
| 16 |
+
"capabilities": {
|
| 17 |
+
"vision": false,
|
| 18 |
+
"audio": false,
|
| 19 |
+
"thinking": {
|
| 20 |
+
"declared": true,
|
| 21 |
+
"channel": {
|
| 22 |
+
"start": "<think>\n",
|
| 23 |
+
"end": "\n</think>"
|
| 24 |
+
},
|
| 25 |
+
"control": "switch"
|
| 26 |
+
},
|
| 27 |
+
"channels": [
|
| 28 |
+
{
|
| 29 |
+
"name": "thought",
|
| 30 |
+
"start": "<think>\n",
|
| 31 |
+
"end": "\n</think>"
|
| 32 |
+
}
|
| 33 |
+
]
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"variants": [
|
| 37 |
+
{
|
| 38 |
+
"file": "CCORE-Web-Coder-4B_int8_kv16384.litertlm",
|
| 39 |
+
"size_bytes": 4354719744,
|
| 40 |
+
"sha256": "0cde7b95469f2e28127b2b7187714b049adbf41d507f6da1dadb6821f6e0cfba",
|
| 41 |
+
"sections": [
|
| 42 |
+
{
|
| 43 |
+
"type": "LlmMetadataProto",
|
| 44 |
+
"size_bytes": 4459
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"type": "ExecutorMetadataProto",
|
| 48 |
+
"size_bytes": 4117
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"type": "HF_Tokenizer_Zlib",
|
| 52 |
+
"size_bytes": 3614235
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"type": "TFLiteModel",
|
| 56 |
+
"size_bytes": 146244128,
|
| 57 |
+
"model_type": "tf_lite_prefill_decode"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "TFLiteWeights",
|
| 61 |
+
"size_bytes": 4204789760,
|
| 62 |
+
"model_type": "tf_lite_prefill_decode"
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"quantization": "int8 per-channel symmetric weights (min-max, integer compute), except the in_proj_a and in_proj_b projections, kept float32; fp32 activations declared in the file (prefer_activation_type fp32); channels-last convolution state; KV cache 16,384 tokens, prefill signatures 1024 / 256 / 64 / 16 / 4 / 1",
|
| 66 |
+
"backends": [
|
| 67 |
+
"cpu",
|
| 68 |
+
"gpu"
|
| 69 |
+
],
|
| 70 |
+
"default_backend": "cpu",
|
| 71 |
+
"recommended": [
|
| 72 |
+
{
|
| 73 |
+
"platform": "android",
|
| 74 |
+
"device_class": "flagship (Galaxy S26, Snapdragon)",
|
| 75 |
+
"soc": "SM8850",
|
| 76 |
+
"backend": "gpu",
|
| 77 |
+
"reason": "Galaxy S26 (Snapdragon, SM8850), litert-lm-api 0.20.0: on the GPU, prefill 82.01-95.95 tok/s and decode 12.734-12.861 tok/s, against 46.25-59.80 and 8.669-9.503 on the CPU (4 threads), three runs each with the phone's clock limits lowered; the GPU gave the file's Mac replies to eight short questions token for token"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"platform": "android",
|
| 81 |
+
"device_class": "flagship (Pixel 11 Pro, PowerVR GPU)",
|
| 82 |
+
"soc": "Tensor G6",
|
| 83 |
+
"backend": "gpu",
|
| 84 |
+
"reason": "Pixel 11 Pro, litert-lm-api 0.20.0: on the GPU, prefill 110.99-130.48 tok/s against 31.41-48.08 on the CPU (4 threads), decode 8.107-8.499 against 5.889-8.163, three runs each with the phone's clock limits lowered; the GPU gave the file's Mac replies to eight short questions token for token"
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"min_runtime_version": "0.20.0",
|
| 88 |
+
"requirements": {
|
| 89 |
+
"platform_notes": [
|
| 90 |
+
"Generation was run on LiteRT-LM 0.20.0 only: the PyPI litert-lm-api 0.20.0 Android wheel (its Python API) on a Pixel 11 Pro and a Galaxy S26 (Snapdragon, SM8850), and the PyPI litert-lm 0.20.0 package on a Mac CPU. LiteRT-LM 0.20.0 is the first stable release with LiteRT #11565 (https://github.com/google-ai-edge/LiteRT/pull/11565), which the GPU needs for the channels-last layout of this file's convolution state",
|
| 91 |
+
"KV cache 16,384 tokens for the prompt and the whole reply; the publisher's card says a full response, reasoning included, typically uses around 20,000 output tokens",
|
| 92 |
+
"Caches on Android: with the default cache folder the first engine writes its caches next to the model file: on the CPU a 4,221,362,168-byte XNNPACK weight cache (both phones); on the GPU a 33,092,760-byte program cache and a 4,215,881,432-byte weight cache on the Pixel 11 Pro, and a 30,572,072-byte program cache (and a 408-byte weight cache file) on the Galaxy S26. On both phones the second GPU engine loaded the program cache that the first one wrote, and the program cache did not grow; creating the GPU engine took 47.34 s, then 13.32 s on the Pixel 11 Pro, and 8.65 s, then 6.86 s on the Galaxy S26",
|
| 93 |
+
"Memory: the GPU engine's memory is outside the process's VmHWM; during the speed runs (max_num_tokens 2,048) the phone's MemAvailable fell from 9,377,696 kB right before the engine was created to 4,005,592 kB on the Pixel 11 Pro, and from 7,472,400 kB to 1,883,904 kB on the Galaxy S26. With the file's 16,384-token KV cache (the eight questions, one process each), the CPU process peaked at a VmHWM of 5,895,340-5,903,912 kB on the Pixel 11 Pro and 5,662,220-6,007,292 kB on the Galaxy S26 (kB = 1,024 bytes)",
|
| 94 |
+
"Phones with 8 GB of memory: the GPU engine of this file is not expected to fit: with the file's 16,384-token KV cache, in the eight-question runs (one process each), the phone's MemAvailable fell by 5,518,744-5,699,976 kB (about 5.65-5.84 GB) on the Pixel 11 Pro and by 5,915,668-6,268,364 kB (about 6.06-6.42 GB) on the Galaxy S26, from right before the engine was created to the lowest reading; this file was not run on an 8 GB phone",
|
| 95 |
+
"Thinking off only: with enable_thinking left out or false, the template gives the eight test questions the same prompt tokens as the publisher's template with thinking off, ending with an empty thought block (<think>\\n\\n</think>\\n\\n); every reply checked here ran with enable_thinking false",
|
| 96 |
+
"Tokenizer: the publisher's tokenizer.json with the 11 added tokens of its tokenizer_config.json that it lacks (ids 248066-248076) appended",
|
| 97 |
+
"Stop tokens <|endoftext|> (248044) and <|im_end|> (248046)",
|
| 98 |
+
"Not checked with this file: the Mac GPU, Linux and Windows desktops, iOS, tool calls, phones other than the Pixel 11 Pro and the Galaxy S26, and replies with thinking on (which the publisher's card recommends) or with the publisher's system prompt"
|
| 99 |
+
]
|
| 100 |
+
},
|
| 101 |
+
"measured": [
|
| 102 |
+
{
|
| 103 |
+
"device": "Pixel 11 Pro (PowerVR GPU)",
|
| 104 |
+
"os": "Android 17",
|
| 105 |
+
"backend": "cpu",
|
| 106 |
+
"runtime": "litert-lm-api 0.20.0 Android wheel (PyPI), XNNPACK",
|
| 107 |
+
"prompt_tokens": 1024,
|
| 108 |
+
"decode_tokens": 256,
|
| 109 |
+
"prefill_tps": "31.41-48.08",
|
| 110 |
+
"decode_tps": "5.889-8.163",
|
| 111 |
+
"ttft_s": "21.419-32.766",
|
| 112 |
+
"peak_memory_mb": 5285,
|
| 113 |
+
"max_num_tokens": 2048,
|
| 114 |
+
"cache": "cold",
|
| 115 |
+
"runs": 3,
|
| 116 |
+
"date": "2026-11-30",
|
| 117 |
+
"source": "Python Benchmark(model, CPU(thread_count=4), prefill_tokens=1024, decode_tokens=256, max_num_tokens=2048), 3 runs on one engine, each value the range of the 3; the engine wrote its own XNNPACK weight cache (cold); the phone lowered its CPU clock limit during the runs; peak_memory_mb = VmHWM (5,411,952 kB) / 1,024"
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"device": "Pixel 11 Pro (PowerVR GPU)",
|
| 121 |
+
"os": "Android 17",
|
| 122 |
+
"backend": "gpu",
|
| 123 |
+
"runtime": "litert-lm-api 0.20.0 Android wheel (PyPI), OpenCL",
|
| 124 |
+
"prompt_tokens": 1024,
|
| 125 |
+
"decode_tokens": 256,
|
| 126 |
+
"prefill_tps": "110.99-130.48",
|
| 127 |
+
"decode_tps": "8.107-8.499",
|
| 128 |
+
"ttft_s": "7.968-9.344",
|
| 129 |
+
"max_num_tokens": 2048,
|
| 130 |
+
"cache": "program and weight caches written by an earlier engine",
|
| 131 |
+
"runs": 3,
|
| 132 |
+
"date": "2026-11-30",
|
| 133 |
+
"source": "Python Benchmark(model, GPU(), prefill_tokens=1024, decode_tokens=256, max_num_tokens=2048), 3 runs on one engine, each value the range of the 3; fp32, every node of all seven signatures on the GPU (463 of 463 in prefill_1024, prefill_256, prefill_64, prefill_16 and prefill_4; 473 of 473 in prefill_1 and decode); the phone lowered its GPU and CPU clock limits during the runs; no peak_memory_mb: the GPU engine's memory is outside VmHWM (1,197,968 kB), and MemAvailable fell from 9,377,696 kB before the engine to 4,005,592 kB"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"device": "Galaxy S26 (Snapdragon, SM8850)",
|
| 137 |
+
"os": "Android 16",
|
| 138 |
+
"backend": "cpu",
|
| 139 |
+
"runtime": "litert-lm-api 0.20.0 Android wheel (PyPI), XNNPACK",
|
| 140 |
+
"prompt_tokens": 1024,
|
| 141 |
+
"decode_tokens": 256,
|
| 142 |
+
"prefill_tps": "46.25-59.80",
|
| 143 |
+
"decode_tps": "8.669-9.503",
|
| 144 |
+
"ttft_s": "17.228-22.251",
|
| 145 |
+
"peak_memory_mb": 5118,
|
| 146 |
+
"max_num_tokens": 2048,
|
| 147 |
+
"cache": "cold",
|
| 148 |
+
"runs": 3,
|
| 149 |
+
"date": "2026-11-30",
|
| 150 |
+
"source": "Python Benchmark(model, CPU(thread_count=4), prefill_tokens=1024, decode_tokens=256, max_num_tokens=2048), 3 runs on one engine, each value the range of the 3; the engine wrote its own XNNPACK weight cache (cold); the phone lowered its CPU clock limit during the runs; peak_memory_mb = VmHWM (5,240,988 kB) / 1,024"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"device": "Galaxy S26 (Snapdragon, SM8850)",
|
| 154 |
+
"os": "Android 16",
|
| 155 |
+
"backend": "gpu",
|
| 156 |
+
"runtime": "litert-lm-api 0.20.0 Android wheel (PyPI), OpenCL",
|
| 157 |
+
"prompt_tokens": 1024,
|
| 158 |
+
"decode_tokens": 256,
|
| 159 |
+
"prefill_tps": "82.01-95.95",
|
| 160 |
+
"decode_tps": "12.734-12.861",
|
| 161 |
+
"ttft_s": "10.75-12.565",
|
| 162 |
+
"max_num_tokens": 2048,
|
| 163 |
+
"cache": "program cache written by an earlier engine",
|
| 164 |
+
"runs": 3,
|
| 165 |
+
"date": "2026-11-30",
|
| 166 |
+
"source": "Python Benchmark(model, GPU(), prefill_tokens=1024, decode_tokens=256, max_num_tokens=2048), 3 runs on one engine, each value the range of the 3; fp32, every node of all seven signatures on the GPU (463 of 463 in prefill_1024, prefill_256, prefill_64, prefill_16 and prefill_4; 473 of 473 in prefill_1 and decode); the phone lowered its GPU and CPU clock limits during the runs; no peak_memory_mb: the GPU engine's memory is outside VmHWM (1,637,884 kB), and MemAvailable fell from 7,472,400 kB before the engine to 1,883,904 kB"
|
| 167 |
+
}
|
| 168 |
+
],
|
| 169 |
+
"checked": [
|
| 170 |
+
{
|
| 171 |
+
"device": "Pixel 11 Pro (PowerVR GPU)",
|
| 172 |
+
"os": "android",
|
| 173 |
+
"backend": "cpu",
|
| 174 |
+
"runtime": "0.20.0",
|
| 175 |
+
"top_k": 1,
|
| 176 |
+
"temperature": 0,
|
| 177 |
+
"runs": 1,
|
| 178 |
+
"date": "2026-11-30"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"device": "Pixel 11 Pro (PowerVR GPU)",
|
| 182 |
+
"os": "android",
|
| 183 |
+
"backend": "gpu",
|
| 184 |
+
"runtime": "0.20.0",
|
| 185 |
+
"top_k": 1,
|
| 186 |
+
"temperature": 0,
|
| 187 |
+
"runs": 1,
|
| 188 |
+
"date": "2026-11-30"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"device": "Galaxy S26 (Snapdragon, SM8850)",
|
| 192 |
+
"os": "android",
|
| 193 |
+
"backend": "cpu",
|
| 194 |
+
"runtime": "0.20.0",
|
| 195 |
+
"top_k": 1,
|
| 196 |
+
"temperature": 0,
|
| 197 |
+
"runs": 1,
|
| 198 |
+
"date": "2026-11-30"
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"device": "Galaxy S26 (Snapdragon, SM8850)",
|
| 202 |
+
"os": "android",
|
| 203 |
+
"backend": "gpu",
|
| 204 |
+
"runtime": "0.20.0",
|
| 205 |
+
"top_k": 1,
|
| 206 |
+
"temperature": 0,
|
| 207 |
+
"runs": 1,
|
| 208 |
+
"date": "2026-11-30"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"device": "Mac (Apple silicon, macOS 27.0)",
|
| 212 |
+
"os": "macos",
|
| 213 |
+
"backend": "cpu",
|
| 214 |
+
"runtime": "0.20.0",
|
| 215 |
+
"top_k": 1,
|
| 216 |
+
"temperature": 0,
|
| 217 |
+
"runs": 1,
|
| 218 |
+
"date": "2026-11-30"
|
| 219 |
+
}
|
| 220 |
+
],
|
| 221 |
+
"known_issues": [
|
| 222 |
+
"The file's chat template keeps the whitespace at the start and end of each message, and the publisher's template removes it; strip each message to get the publisher's prompt.",
|
| 223 |
+
"Create a new engine for each conversation, as every reply checked here did (LiteRT-LM #3165, https://github.com/google-ai-edge/LiteRT-LM/issues/3165).",
|
| 224 |
+
"A <|endoftext|> token (id 248044) in a prompt is treated as padding: the Gated DeltaNet layers get a zero input at that position (all seven signatures of the file compare the input tokens with 248044).",
|
| 225 |
+
"With LiteRT-LM 0.19.0 and 0.18.1, the blocking send (Python send_message, C litert_lm_conversation_send_message, C++ Conversation::SendMessage) fails a reply that is still generating after 10 minutes with DEADLINE_EXCEEDED, and streaming with send_message_async ran past 10 minutes without it; LiteRT-LM 0.20.0 was not checked.",
|
| 226 |
+
"With LiteRT-LM 0.19.1 and 0.19.2, once a message failed because it did not fit in the context window, every later message in that conversation failed too, with 'Task failed with state: 7'; a new conversation answered. LiteRT-LM 0.20.0 was not checked."
|
| 227 |
+
],
|
| 228 |
+
"context_length": 16384
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"file": "CCORE-Web-Coder-4B_int8_kv32768.litertlm",
|
| 232 |
+
"size_bytes": 4354719744,
|
| 233 |
+
"sha256": "7e5c85c2d04dadf32da921add5bfeea6a561e23187a01f6412d863d63d2c4be4",
|
| 234 |
+
"sections": [
|
| 235 |
+
{
|
| 236 |
+
"type": "LlmMetadataProto",
|
| 237 |
+
"size_bytes": 4459
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "ExecutorMetadataProto",
|
| 241 |
+
"size_bytes": 4117
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "HF_Tokenizer_Zlib",
|
| 245 |
+
"size_bytes": 3614235
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "TFLiteModel",
|
| 249 |
+
"size_bytes": 146245024,
|
| 250 |
+
"model_type": "tf_lite_prefill_decode"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "TFLiteWeights",
|
| 254 |
+
"size_bytes": 4204789760,
|
| 255 |
+
"model_type": "tf_lite_prefill_decode"
|
| 256 |
+
}
|
| 257 |
+
],
|
| 258 |
+
"quantization": "int8 per-channel symmetric weights (min-max, integer compute), except the in_proj_a and in_proj_b projections, kept float32; fp32 activations declared in the file (prefer_activation_type fp32); channels-last convolution state; KV cache 32,768 tokens, prefill signatures 1024 / 256 / 64 / 16 / 4 / 1",
|
| 259 |
+
"backends": [
|
| 260 |
+
"cpu"
|
| 261 |
+
],
|
| 262 |
+
"default_backend": "cpu",
|
| 263 |
+
"recommended": [
|
| 264 |
+
{
|
| 265 |
+
"platform": "macos",
|
| 266 |
+
"backend": "cpu",
|
| 267 |
+
"reason": "On a Mac (Apple silicon, macOS 27.0) with the litert-lm 0.20.0 package from PyPI, litert-lm run --backend cpu printed a full HTML page and ended by itself in each of two runs; with greedy decoding, thinking off and no system prompt, the file's replies to eight short questions matched the publisher's model (float32, Transformers) token for token in seven and in the first 15 tokens of the eighth"
|
| 268 |
+
}
|
| 269 |
+
],
|
| 270 |
+
"min_runtime_version": "0.20.0",
|
| 271 |
+
"requirements": {
|
| 272 |
+
"platform_notes": [
|
| 273 |
+
"Generation was run on LiteRT-LM 0.20.0 only: the PyPI litert-lm 0.20.0 package on a Mac (Apple silicon, macOS 27.0), CPU",
|
| 274 |
+
"The litert-lm 0.20.0 package needs Python 3.10 or newer; with macOS's own python3 (3.9.6 on macOS 27.0), pip stops with 'ERROR: Could not find a version that satisfies the requirement litert-lm==0.20.0'",
|
| 275 |
+
"KV cache 32,768 tokens for the prompt and the whole reply; the publisher's card says a full response, reasoning included, typically uses around 20,000 output tokens",
|
| 276 |
+
"Mac CPU and cache: with the runtime's default cache setting, the first litert-lm run --backend cpu wrote a 4,221,362,168-byte XNNPACK weight cache next to the file and peaked at 12,415,156,224 bytes resident; a second run read that cache and peaked at 7,536,066,560 bytes",
|
| 277 |
+
"Thinking off only: with enable_thinking left out or false, the template gives the eight test questions the same prompt tokens as the publisher's template with thinking off, ending with an empty thought block (<think>\\n\\n</think>\\n\\n); every reply checked here ran with enable_thinking false or left out",
|
| 278 |
+
"Tokenizer: the publisher's tokenizer.json with the 11 added tokens of its tokenizer_config.json that it lacks (ids 248066-248076) appended",
|
| 279 |
+
"Stop tokens <|endoftext|> (248044) and <|im_end|> (248046)",
|
| 280 |
+
"Not checked with this file: the GPU, phones, Linux and Windows desktops, iOS, tool calls, and replies with thinking on (which the publisher's card recommends); with the publisher's system prompt, only the first 256 tokens of one reply were compared with the publisher's model, and the first 67 matched"
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
"checked": [
|
| 284 |
+
{
|
| 285 |
+
"device": "Mac (Apple silicon, macOS 27.0)",
|
| 286 |
+
"os": "macos",
|
| 287 |
+
"backend": "cpu",
|
| 288 |
+
"runtime": "0.20.0",
|
| 289 |
+
"top_k": 1,
|
| 290 |
+
"temperature": 0,
|
| 291 |
+
"runs": 1,
|
| 292 |
+
"date": "2026-11-30"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"known_issues": [
|
| 296 |
+
"The file's chat template keeps the whitespace at the start and end of each message, and the publisher's template removes it; strip each message to get the publisher's prompt.",
|
| 297 |
+
"Create a new engine for each conversation, as every reply checked here did (LiteRT-LM #3165, https://github.com/google-ai-edge/LiteRT-LM/issues/3165).",
|
| 298 |
+
"A <|endoftext|> token (id 248044) in a prompt is treated as padding: the Gated DeltaNet layers get a zero input at that position (all seven signatures of the file compare the input tokens with 248044).",
|
| 299 |
+
"With LiteRT-LM 0.19.0 and 0.18.1, the blocking send (Python send_message, C litert_lm_conversation_send_message, C++ Conversation::SendMessage) fails a reply that is still generating after 10 minutes with DEADLINE_EXCEEDED, and streaming with send_message_async ran past 10 minutes without it; LiteRT-LM 0.20.0 was not checked.",
|
| 300 |
+
"With LiteRT-LM 0.19.1 and 0.19.2, once a message failed because it did not fit in the context window, every later message in that conversation failed too, with 'Task failed with state: 7'; a new conversation answered. LiteRT-LM 0.20.0 was not checked."
|
| 301 |
+
],
|
| 302 |
+
"context_length": 32768
|
| 303 |
+
}
|
| 304 |
+
]
|
| 305 |
+
}
|