Text Generation
GGUF
English
inkling2_loop
Mixture of Experts
pruned
dspark
speculative-decoding
phone-operator
linux
arch-arm
omarchy
hyprland
tool-calling
coding
edge
pixel-10
freetpu
apache-2.0
imatrix
conversational
Instructions to use freesilicon/PocketCoder-13B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use freesilicon/PocketCoder-13B-A3B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS # Run inference directly in the terminal: llama cli -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS # Run inference directly in the terminal: llama cli -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama cli -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS
Use Docker
docker model run hf.co/freesilicon/PocketCoder-13B-A3B:IQ4_XS
- Llama new
- LM Studio
- Jan
- vLLM
How to use freesilicon/PocketCoder-13B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "freesilicon/PocketCoder-13B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "freesilicon/PocketCoder-13B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/freesilicon/PocketCoder-13B-A3B:IQ4_XS
- Ollama
How to use freesilicon/PocketCoder-13B-A3B with Ollama:
ollama run hf.co/freesilicon/PocketCoder-13B-A3B:IQ4_XS
- Unsloth Desktop
- Pi
How to use freesilicon/PocketCoder-13B-A3B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "freesilicon/PocketCoder-13B-A3B:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use freesilicon/PocketCoder-13B-A3B with Docker Model Runner:
docker model run hf.co/freesilicon/PocketCoder-13B-A3B:IQ4_XS
- Lemonade
How to use freesilicon/PocketCoder-13B-A3B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull freesilicon/PocketCoder-13B-A3B:IQ4_XS
Run and chat with the model
lemonade run user.PocketCoder-13B-A3B-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use freesilicon/PocketCoder-13B-A3B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default freesilicon/PocketCoder-13B-A3B:IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use freesilicon/PocketCoder-13B-A3B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf freesilicon/PocketCoder-13B-A3B:IQ4_XS
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "freesilicon/PocketCoder-13B-A3B:IQ4_XS" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Release PocketCoder-13B-A3B v2 (POCKET_Q8LOOP_IQ4XS, Q4_0, IQ4_XS, DSpark Q8_0, imatrix)
Browse files- .gitattributes +5 -0
- LICENSE +202 -0
- NOTICE +30 -0
- PocketCoder-13B-A3B-IQ4_XS.gguf +3 -0
- PocketCoder-13B-A3B-POCKET_Q8LOOP_IQ4XS.gguf +3 -0
- PocketCoder-13B-A3B-Q4_0.gguf +3 -0
- PocketCoder-13B-A3B.imatrix +3 -0
- README.md +205 -0
- dspark-PocketCoder-13B-A3B-Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ 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 |
+
PocketCoder-13B-A3B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
PocketCoder-13B-A3B-POCKET_Q8LOOP_IQ4XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
PocketCoder-13B-A3B-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
PocketCoder-13B-A3B.imatrix filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
dspark-PocketCoder-13B-A3B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
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 [yyyy] [name of copyright owner]
|
| 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.
|
NOTICE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PocketCoder-13B-A3B
|
| 2 |
+
Copyright 2026 FreeSilicon Contributors
|
| 3 |
+
|
| 4 |
+
This model is a derivative work based on Inkling 2 Mini
|
| 5 |
+
(https://huggingface.co/thinkingmachines/Inkling-2-Mini,
|
| 6 |
+
commit c9d028302cd0f035fdf8e7e91f089a4ce94d2195),
|
| 7 |
+
developed by Thinking Machines Lab, Inc. and licensed under the
|
| 8 |
+
Apache License, Version 2.0.
|
| 9 |
+
|
| 10 |
+
Summary of modifications from thinkingmachines/Inkling-2-Mini:
|
| 11 |
+
1. Removed multimodal vision encoder weights (model.visual.*) and multi-token
|
| 12 |
+
prediction head (mtp.*) to produce a text-only causal language model.
|
| 13 |
+
2. Pruned routed MoE experts from 128 to 64 per physical layer (retaining
|
| 14 |
+
top-8 routing, 24 physical layers, and 3x middle-core looping across
|
| 15 |
+
layers 6..17 -> 48 logical layer visits).
|
| 16 |
+
3. Performed post-pruning healing/fine-tuning on strictly public coding,
|
| 17 |
+
shell, tool-calling, algorithmic reasoning, and deterministic silicon
|
| 18 |
+
verification tasks, followed by GGUF quantization for mobile deployment.
|
| 19 |
+
|
| 20 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 21 |
+
you may not use this model except in compliance with the License.
|
| 22 |
+
You may obtain a copy of the License at
|
| 23 |
+
|
| 24 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 25 |
+
|
| 26 |
+
Unless required by applicable law or agreed to in writing, software
|
| 27 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 28 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 29 |
+
See the License for the specific language governing permissions and
|
| 30 |
+
limitations under the License.
|
PocketCoder-13B-A3B-IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7652feacd31396e792fd5cde6cb4cf195c66336e33d91bc8300c22ae3b18fc82
|
| 3 |
+
size 7739421184
|
PocketCoder-13B-A3B-POCKET_Q8LOOP_IQ4XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7de131332b34115e5563320cc222e61687404441d422ae924bc4926b832b77d6
|
| 3 |
+
size 7948729216
|
PocketCoder-13B-A3B-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dacfe04b78ad48f03bfb56d1b64409ec6012e8acf64ed4da64f14d697bc33104
|
| 3 |
+
size 7909478272
|
PocketCoder-13B-A3B.imatrix
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92049a00e42e062f214502e7abde791edfb6700528f6b0e8f6735a1156547c94
|
| 3 |
+
size 48272416
|
README.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_link: LICENSE
|
| 4 |
+
base_model:
|
| 5 |
+
- thinkingmachines/Inkling-2-Mini
|
| 6 |
+
base_model_relation: quantized
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
+
library_name: gguf
|
| 11 |
+
tags:
|
| 12 |
+
- inkling2_loop
|
| 13 |
+
- moe
|
| 14 |
+
- pruned
|
| 15 |
+
- gguf
|
| 16 |
+
- dspark
|
| 17 |
+
- speculative-decoding
|
| 18 |
+
- phone-operator
|
| 19 |
+
- linux
|
| 20 |
+
- arch-arm
|
| 21 |
+
- omarchy
|
| 22 |
+
- hyprland
|
| 23 |
+
- tool-calling
|
| 24 |
+
- coding
|
| 25 |
+
- edge
|
| 26 |
+
- pixel-10
|
| 27 |
+
- freetpu
|
| 28 |
+
- apache-2.0
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
# PocketCoder-13B-A3B
|
| 32 |
+
|
| 33 |
+
**`PocketCoder-13B-A3B`** is a sharp, local-first **Linux / Arch ARM / Omarchy / Hyprland Phone Operator, Coding & Tool-Calling Model** engineered to run inside a **`<= 8.0 GB`** GGUF footprint on **16 GB smartphones** (such as a Google Pixel 10 running `FreeTPU` / `llama.cpp`), **Apple Silicon Macs**, and **NVIDIA DGX Spark / desktop GPUs** β paired with an optional **`385 MiB` DSpark speculative drafter**.
|
| 34 |
+
|
| 35 |
+
Derived under **Apache 2.0** from [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (commit `c9d028302cd0f035fdf8e7e91f089a4ce94d2195`), `PocketCoder-13B-A3B` removes the vision encoder and standalone MTP head, prunes routed MoE experts from `128 -> 64` per layer (`26.39B -> 13.84B` total parameters), heals via knowledge distillation + replay SFT + stratified verifiable GRPO on strictly public datasets, and quantizes into **4-bit experts + `Q8_0` attention + lossless `F32` recurrent loop gates (`7.95 GB`)** rather than crushing all 128 experts to 2-bit.
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## Same-Footprint (`~7.9 GB`) Live Shoot-Out vs. 2-Bit 128-Expert Baseline
|
| 40 |
+
|
| 41 |
+
At the exact **`~7.9 GB`** smartphone memory ceiling, pruning and healing `128 -> 64` experts lets `PocketCoder-13B-A3B` run at **4-bit MoE + `Q8_0` attention + `F32` loop precision** instead of 2-bit quantization across 128 unpruned experts.
|
| 42 |
+
|
| 43 |
+
Measured live on **Apple M5 Max (128 GiB, Metal `-ngl 99`, `c=4096`, greedy `temp=0`, `max_tokens=160`)** with mainline `llama.cpp` (`llama-server` & `llama-perplexity`, `0` errors across all `200` held-out prompts):
|
| 44 |
+
|
| 45 |
+
| Metric | `AtomicChat` `AD-IQ2_XXS-Q2` (`7.90 GB`, 128e 2-bit) | `PocketCoder-13B-A3B` v1 (`7.95 GB`, 64e 4-bit) | **`PocketCoder-13B-A3B` v2 (`7.95 GB`, Flagship)** | **`PocketCoder-13B-A3B` v2 + DSpark (`7.95 + 0.40 GB`, `n=3`)** |
|
| 46 |
+
|---|---:|---:|---:|---:|
|
| 47 |
+
| **GGUF Size** | `7.901 GB` | `7.949 GB` | **`7.949 GB`** | `7.949 GB` + `0.404 GB` drafter |
|
| 48 |
+
| **Overall Phone-Operator Pass (`200` prompts)** | `145/200 (72.5%)` | `146/200 (73.0%)` | **`178/200 (89.0%)` (`+16.5pp`)** | **`177/200 (88.5%)` (`+16.0pp`)** |
|
| 49 |
+
| **Mean Verifier Reward (`[-1, 1]`)** | `0.6002` | `0.6283` | **`0.8485` (`+0.2483`)** | **`0.8425` (`+0.2423`)** |
|
| 50 |
+
| **S1 Linux / Arch / Hyprland CLI (`80`)** | `48/80 (60.0%)` | `44/80 (55.0%)` | **`64/80 (80.0%)` (`+20.0pp`)** | **`64/80 (80.0%)` (`+20.0pp`)** |
|
| 51 |
+
| **S2 `pi` Tool Calling & Scripting (`70`)** | `61/70 (87.1%)` | `63/70 (90.0%)` | **`66/70 (94.3%)` (`+7.2pp`)** | **`66/70 (94.3%)` (`+7.2pp`)** |
|
| 52 |
+
| **S3 Safety Gates & Escalation (`40`)** | `36/40 (90.0%)` | `39/40 (97.5%)` | **`38/40 (95.0%)` (`+5.0pp`)** | `37/40 (92.5%)` |
|
| 53 |
+
| **S3 Unsafe Execution Rate (`16` gated)** | `0.0% (0)` | `0.0% (0)` | **`0.0% (0)`** | **`0.0% (0)`** |
|
| 54 |
+
| **S4 Edge-Silicon Kernel / Twin (`10`)** | `0/10 (0.0%)` | `0/10 (0.0%)` | **`10/10 (100.0%)` (`+100pp`)** | **`10/10 (100.0%)` (`+100pp`)** |
|
| 55 |
+
| **Coding & Tool PPL (`llama-perplexity`, `c=512`)** | `1.7825 Β± 0.0719` | `1.8020 Β± 0.0720` | **`1.7441 Β± 0.0718` (`-0.0384`)** | **`1.7441 Β± 0.0718`** |
|
| 56 |
+
| **Mean Decode Speed (`tok/s`)** | `28.7 tok/s` | `25.7 tok/s` | `21.9 tok/s` | **`27.5 tok/s` (`+25.6%` vs v2)** |
|
| 57 |
+
| **Mean Wall Latency / Prompt** | `2.78s` (`12,875` tok) | `2.49s` (`10,235` tok) | `2.90s` (`9,836` tok) | **`2.33s` (`-16.2%` vs 2-bit)** |
|
| 58 |
+
|
| 59 |
+
### Key Highlights
|
| 60 |
+
- **`+16.5pp` higher Phone-Operator pass rate (`89.0%` vs `72.5%`)** at the same `~7.9 GB` footprint, including **`+20.0pp`** on Arch/Hyprland CLI, **`+7.2pp`** on strict `pi` JSON tool calling, **`+5.0pp`** on safety-gate calibration with **`0.0%` unsafe executions**, and **`100%`** on edge-silicon kernel tasks.
|
| 61 |
+
- **Lower (better) coding/tool perplexity (`1.7441` vs `1.7825`)** than the unpruned 128-expert 2-bit quantization, despite using half as many routed experts.
|
| 62 |
+
- **`1.26Γ` speculative decode speedup (`21.9 -> 27.5 tok/s`, `2.33s` mean latency)** across all 200 prompts with the included `385 MiB` `dspark-PocketCoder-13B-A3B-Q8_0.gguf` drafter β **16.2% faster end-to-end wall latency** than the 2-bit baseline (`2.78s`).
|
| 63 |
+
- **`8/8 (100%)` interactive `llama-completion` usability spot-check PASS** (`8/8` zero-repetition clean) across Hyprland CLI, Arch ARM Bluetooth/PipeWire diagnostics, strict `pi` JSON tool calling, destructive/outbound human-gate refusal, Python & C bugfixes, mixed-precision architecture reasoning, and multi-turn debugging.
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
## Core Capabilities
|
| 68 |
+
|
| 69 |
+
1. **Linux / Arch ARM / Omarchy / Hyprland CLI & System Control**
|
| 70 |
+
- Composes exact, flag-accurate commands for `hyprctl`, `bash`, `systemd` (`systemctl`/`journalctl`), `nmcli`, `pactl`, `bluetoothctl`, `pacman`, `jq`, and `sqlite3` for Linux-native mobile and desktop workflows.
|
| 71 |
+
2. **Strict Tool Calling & Concise Local Coding**
|
| 72 |
+
- Emits schema-valid JSON tool calls for `pi`-style local harnesses (`read`, `edit`, `write`, `grep`, `bash`, `git`), writes tight Python/C/TypeScript/Bash fixes, and stays concise for mobile screens and low-power decode.
|
| 73 |
+
3. **Calibrated Safety Gates & Escalation**
|
| 74 |
+
- Executes safe read-only or reversible local operations directly; stops cleanly with `decision: "gate_human"` and `action: null` on outbound sends, destructive deletes, spend, or account/security changes; and escalates genuinely complex refactors cleanly.
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## Model Architecture Summary
|
| 79 |
+
|
| 80 |
+
| Property | Base (`Inkling-2-Mini`) | `PocketCoder-13B-A3B` |
|
| 81 |
+
|---|---|---|
|
| 82 |
+
| **License** | Apache 2.0 | Apache 2.0 (`LICENSE` + `NOTICE`) |
|
| 83 |
+
| **Architecture** | `Inkling2LoopForConditionalGeneration` (`inkling2_loop`) | `Inkling2LoopForCausalLM` (`inkling2_loop`, text-only) |
|
| 84 |
+
| **Total Parameters** | `26.39B` (`26.07B` text + `0.32B` vision) | **`13.84B`** (`13,836,254,208` raw / `13,834,028,544` unpadded) |
|
| 85 |
+
| **Active Parameters / Token** | `~3.4B` physical / `~4.87B` across 48 logical visits | **`~3.4B` physical / `~4.87B` across 48 logical visits** (unchanged) |
|
| 86 |
+
| **Physical / Logical Layers** | `24` physical (`core 6..17` looped `3Γ` -> `48` logical) | `24` physical (`core 6..17` looped `3Γ` -> `48` logical) |
|
| 87 |
+
| **MoE Experts** | `128` routed, `top-8`, `0` shared | **`64` routed, `top-8`, `0` shared** (`50%` expert pruning) |
|
| 88 |
+
| **Hidden / Expert Inter / Head Dim** | `2304` / `1152` / `128` (`128`-lane aligned) | `2304` / `1152` / `128` (`128`-lane aligned) |
|
| 89 |
+
| **Attention / KV Cache** | `24` Q heads, `8` KV heads; `40` SWA (`1024`) + `8` Global (`48` logical slots) | `24` Q heads, `8` KV heads; `40` SWA (`1024`) + `8` Global (`48` logical slots) |
|
| 90 |
+
| **Context Length** | `1,048,576` max | `4K / 16K / 64K` practical on 16 GB phones (`Q8_0` KV: `157 MiB` / `361 MiB` / `1.23 GB`) |
|
| 91 |
+
| **Vision / Speculative Drafter** | Vision tower + MTP weights | Vision removed; MTP exported separately as optional `385 MiB` `dspark-PocketCoder-13B-A3B-Q8_0.gguf` |
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
## Quantized Release Files (`llama.cpp >= b12611`)
|
| 96 |
+
|
| 97 |
+
Requires mainline [`ggml-org/llama.cpp`](https://github.com/ggml-org/llama.cpp) build **`>= b12611`** (PR `#32694` `inkling2_loop` + PR `#32704` looped scale fix; PR `#32218` for optional DSpark speculative drafter). All 3 target GGUFs are calibrated with `PocketCoder-13B-A3B.imatrix` (`1,568` tensors) and passed `6/6` CUDA + Metal smoke tests (`hyprctl dispatch movetoworkspacesilent 3` + C ring buffer).
|
| 98 |
+
|
| 99 |
+
> **Why not stock `Q4_K_M`?** Because `ffn_down_exps.weight` has `ne0 = 1152` (`1152 % 256 = 128 != 0`), stock `Q4_K_M` falls back to `Q5_0`/`Q8_0` on down-projections (`9.31 GB`). The pocket recipes below stay cleanly under `8.0 GB` while keeping attention and recurrent loop gates high-precision.
|
| 100 |
+
|
| 101 |
+
| File | Quant Recipe | Exact Size | Pixel 10 (`16 GB`) Fit | Recommended Use | SHA-256 |
|
| 102 |
+
|---|---|---:|:---:|---|---|
|
| 103 |
+
| `PocketCoder-13B-A3B-POCKET_Q8LOOP_IQ4XS.gguf` | **`Q8_0` attn + `F32` loop + `IQ4_XS`/`IQ4_NL` experts (imatrix)** | **`7.949 GB`** (`7,948,729,216 B`) | **YES** (`<= 8.0 GB`) | **Flagship Quality `<= 8.0 GB`** (lowest KL, zero 48-pass loop/attn drift) | `7de131332b34115e5563320cc222e61687404441d422ae924bc4926b832b77d6` |
|
| 104 |
+
| `PocketCoder-13B-A3B-Q4_0.gguf` | `Q4_0 --pure` (imatrix) | **`7.909 GB`** (`7,909,478,272 B`) | **YES** (`<= 8.0 GB`) | **Pixel 10 `FreeTPU` Day-Zero Native** (`ggml-edgetpu`) & fast ARM CPU | `dacfe04b78ad48f03bfb56d1b64409ec6012e8acf64ed4da64f14d697bc33104` |
|
| 105 |
+
| `PocketCoder-13B-A3B-IQ4_XS.gguf` | `IQ4_XS` (`ffn_down_exps -> IQ4_NL`, `Q6_K` output, imatrix) | **`7.739 GB`** (`7,739,421,184 B`) | **YES** (`<= 7.8 GB`) | **Smallest 4-Bit Build** (`llama.cpp` ARMv9 / Apple Silicon / tight RAM) | `7652feacd31396e792fd5cde6cb4cf195c66336e33d91bc8300c22ae3b18fc82` |
|
| 106 |
+
| `dspark-PocketCoder-13B-A3B-Q8_0.gguf` | 3-layer dense DSpark speculative drafter (`Q8_0`, 58 tensors) | **`0.404 GB`** (`404,128,352 B` / `385.4 MiB`) | Optional add-on | Speculative decode (`--spec-type draft-dspark --spec-draft-n-max 3`) | `926dddeeeeb8667d3b428eb71c2fa05eb6f71bda296a8f698a324b1bd0fc5349` |
|
| 107 |
+
| `PocketCoder-13B-A3B.imatrix` | Public calibration importance matrix (`1,568` tensors) | `48.27 MB` (`48,272,416 B`) | Calibration artifact | Re-quantizing custom pocket recipes | `92049a00e42e062f214502e7abde791edfb6700528f6b0e8f6735a1156547c94` |
|
| 108 |
+
|
| 109 |
+
---
|
| 110 |
+
|
| 111 |
+
## Pruning, Healing, GRPO & Parity Verification
|
| 112 |
+
|
| 113 |
+
All profiling, distillation, fine-tuning, and verification use **strictly public-only** datasets and deterministic verifiers (zero private user data):
|
| 114 |
+
|
| 115 |
+
### 1. Pruning & Post-Pruning Training Progression (BF16 Held-Out Eval)
|
| 116 |
+
|
| 117 |
+
- **Expert Profiling (`128 -> 64`)**: Retained **`84.50%` mean routing mass** across all 24 layers (**`86.56%`** across looped layers `6..17`, equal-weighted 3-pass union).
|
| 118 |
+
- **Healing & Stratified RL Pipeline**: `Stage 2A` teacher top-64 KL+SFT (`537,572` tokens) -> `Stage 2A-Prime` completion-masked SFT + general coding/reasoning replay (`kl_beta=0.04` anchor) -> `Stage 2B` stratified 4-slice GRPO polish (`50` steps, `G=6`, `lr=3e-5`, `kl_beta=0.06`, per-slice token caps, smooth S1 partial credit):
|
| 119 |
+
|
| 120 |
+
| Stage (BF16 Held-Out Eval) | Overall (`200`) | S1 CLI (`80`) | S2 `pi` Tool (`70`) | S3 Safety (`40`) | S3 Unsafe (`16`) | S4 Silicon (`10`) | `public_eval.jsonl` PPL (`3,136` tok) |
|
| 121 |
+
|---|---:|---:|---:|---:|---:|---:|---:|
|
| 122 |
+
| `26.4B` Base (`128` experts) | β | β | β | β | β | β | `1.8875` |
|
| 123 |
+
| Zero-Shot Pruned (`64` experts) | β | β | β | β | β | β | `2.2171` |
|
| 124 |
+
| Stage 2A KL+SFT (`v1` pre-GRPO) | `73.0% (146)` | `55.0% (44)` | `81.4% (57)` | `100.0% (40)` | `0.0% (0)` | `50.0% (5)` | `2.0230` |
|
| 125 |
+
| Stage 2B Unstratified GRPO (`v1`) | `74.0% (148)` | `58.8% (47)` | `88.6% (62)` | `97.5% (39)` | `0.0% (0)` | `0.0% (0)` | `2.0306` |
|
| 126 |
+
| Stage 2A-Prime Cold-Start SFT+Replay | `89.5% (179)` | `85.0% (68)` | `97.1% (68)` | `85.0% (34)` | `0.0% (0)` | `90.0% (9)` | `1.8914` |
|
| 127 |
+
| **Final `v2` (2A' + 50-Step Stratified GRPO)** | **`92.5% (185)`** | **`85.0% (68)`** | **`97.1% (68)`** | **`97.5% (39)`** | **`0.0% (0)`** | **`100.0% (10)`** | **`1.8856`** (`-0.0019` vs 26.4B base) |
|
| 128 |
+
|
| 129 |
+
### 2. Real 13.8B Few-Layer Activation Parity (`PyTorch BF16` vs. `llama.cpp`)
|
| 130 |
+
|
| 131 |
+
Verified directly on the real 13.8B model across `L0..L2`, `L6.p0`, and looped re-entry `L6.p1 (il=24)` (`sconv`, `SiTU`, `d_rel`, value norm, router top-8, and final logits):
|
| 132 |
+
|
| 133 |
+
| Quantized Build (vs. 13.8B PyTorch BF16) | `L0.p0` Top-8 | `L6.p1 (il=24)` Out Cos | `logits` Cos | `logits` Top-1 | `logits` KL |
|
| 134 |
+
|---|---:|---:|---:|---:|---:|
|
| 135 |
+
| `BF16` GGUF (Metal) | `100.0%` | `0.9997` | `0.9998` | `100.0%` | `0.00072` |
|
| 136 |
+
| **`POCKET_Q8LOOP_IQ4XS` (`7.95 GB`, Metal)** | **`99.43%`** | **`0.9979`** | **`0.9984`** | **`100.0%`** | **`0.01045`** (*15Γ lower than 2-bit `0.158`*) |
|
| 137 |
+
| `Q4_0` (`7.91 GB`, Metal) | `97.73%` | `0.9957` | `0.9967` | `95.45%` | `0.02007` |
|
| 138 |
+
|
| 139 |
+
### 3. DSpark Speculative Decoding (`dspark-PocketCoder-13B-A3B-Q8_0.gguf`)
|
| 140 |
+
|
| 141 |
+
Because DSpark (`385 MiB Q8_0`) is a dense 3-layer drafter that shares only hidden dimension (`2304`) and vocabulary β with zero dependency on `n_routed_experts` β it pairs directly with the pruned 64-expert model:
|
| 142 |
+
- **Coding / Tool Benchmark (`n_max=3`, Metal `llama-server --metrics`)**: `4/4 (100%)` token-ID exact greedy match on both `POCKET_Q8LOOP_IQ4XS` (`alpha = 0.559`, **`2.66 tok/step`**, up to **`1.41Γ` / `32.8 tok/s`** on C code) and `Q4_0` (`alpha = 0.529`, **`2.57 tok/step`**, up to **`37.3 tok/s`** on C code).
|
| 143 |
+
- **Full 200-Prompt Phone-Operator Shoot-Out (`v2 + DSpark`, `n_max=3`)**: **`+25.6%` decode speedup** (`21.9 -> 27.5 tok/s`) and **`-19.7%` lower mean latency** (`2.90s -> 2.33s`).
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
## Quick Start
|
| 148 |
+
|
| 149 |
+
### 1. Apple Silicon Mac / NVIDIA DGX Spark / Desktop GPU (Flagship + DSpark Speculative Server)
|
| 150 |
+
|
| 151 |
+
```bash
|
| 152 |
+
llama-server \
|
| 153 |
+
-m PocketCoder-13B-A3B-POCKET_Q8LOOP_IQ4XS.gguf \
|
| 154 |
+
-md dspark-PocketCoder-13B-A3B-Q8_0.gguf \
|
| 155 |
+
--spec-type draft-dspark --spec-draft-n-max 3 \
|
| 156 |
+
-ngl 99 -ngld 99 -c 16384 -ctk q8_0 -ctv q8_0 \
|
| 157 |
+
--jinja --host 127.0.0.1 --port 8080
|
| 158 |
+
```
|
| 159 |
+
|
| 160 |
+
*(Omit `-md ... --spec-type ... --spec-draft-n-max 3 -ngld 99` to run standalone in `7.95 GB`.)*
|
| 161 |
+
|
| 162 |
+
### 2. Lightweight Local `pi` Harness (CPU / ARMv9 / Smallest 4-Bit Build)
|
| 163 |
+
|
| 164 |
+
```bash
|
| 165 |
+
llama-server \
|
| 166 |
+
-m PocketCoder-13B-A3B-IQ4_XS.gguf \
|
| 167 |
+
--jinja -c 16384 -ctk q8_0 -ctv q8_0 --port 8080 \
|
| 168 |
+
--temp 0.0 --top-k 1
|
| 169 |
+
```
|
| 170 |
+
|
| 171 |
+
### 3. Google Pixel 10 `FreeTPU` (`llama-cpp-edgetpu` on Tensor G5 `buenos_a0`, `>= b12611`)
|
| 172 |
+
|
| 173 |
+
```bash
|
| 174 |
+
OPENBUENOS_PERF_MODE=5 \
|
| 175 |
+
OPENBUENOS_WEIGHT_CACHE_MB=1024 \
|
| 176 |
+
OPENBUENOS_MIN_ELEMENTS=262144 \
|
| 177 |
+
./llama-server \
|
| 178 |
+
-m PocketCoder-13B-A3B-Q4_0.gguf \
|
| 179 |
+
-md dspark-PocketCoder-13B-A3B-Q8_0.gguf \
|
| 180 |
+
--spec-type draft-dspark --spec-draft-n-max 3 \
|
| 181 |
+
--jinja -c 16384 -ctk q8_0 -ctv q8_0 -t 4 --port 8080
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
*(On `buenos_a0`, `Q4_0` maps natively to INT8/Q4_0 TPU weight lanes, and DSpark `M=4` verification amortizes DMA per token by `~2.0Γβ2.3Γ`.)*
|
| 185 |
+
|
| 186 |
+
### 4. Interactive CLI Spot-Check (`llama-completion`)
|
| 187 |
+
|
| 188 |
+
```bash
|
| 189 |
+
llama-completion \
|
| 190 |
+
-m PocketCoder-13B-A3B-POCKET_Q8LOOP_IQ4XS.gguf \
|
| 191 |
+
-ngl 99 -c 4096 -n 160 --temp 0 --top-k 1 -no-cnv \
|
| 192 |
+
-p 'You are PocketCoder, a concise Linux / Arch ARM / Hyprland phone operator. Respond ONLY with a single JSON object {"command": "<one-line bash command>"}.
|
| 193 |
+
|
| 194 |
+
User: Move the currently active Hyprland window silently to workspace 4 without switching focus.
|
| 195 |
+
Assistant:
|
| 196 |
+
'
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
---
|
| 200 |
+
|
| 201 |
+
## License & Attribution
|
| 202 |
+
|
| 203 |
+
- Licensed under the **Apache License, Version 2.0** (see [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE)).
|
| 204 |
+
- Derived from [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (commit `c9d028302cd0f035fdf8e7e91f089a4ce94d2195`), copyright Thinking Machines Lab, Inc., licensed under Apache 2.0.
|
| 205 |
+
- Users must also comply with the base model's [Acceptable Use Policy](https://thinkingmachines.ai/model-acceptable-use-policy/) where applicable.
|
dspark-PocketCoder-13B-A3B-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:926dddeeeeb8667d3b428eb71c2fa05eb6f71bda296a8f698a324b1bd0fc5349
|
| 3 |
+
size 404128352
|