Downloads · 30 days
60
2% of all-time downloads
sombra-x/Kimi-K2.6-REAP-Solidity
Kimi-K2.6-REAP-Solidity is a text generation model from sombra-x. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as other.
This is a proof-of-concept Solidity-specialized Kimi-K2.6 checkpoint for local MLX inference on Apple Silicon. Kimi-K2.6 is released by Moonshot AI in a native INT4 / compressed-tensors format; this checkpoint preserv…
Downloads · 30 days
60
2% of all-time downloads
All-time downloads
2.8K
Public
Parameters
688B
430 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors430 GB · 100%
How the weights are stored.
U32688B · 100%
From the Hugging Face model README
This is a proof-of-concept Solidity-specialized Kimi-K2.6 checkpoint for local MLX inference on Apple Silicon. Kimi-K2.6 is released by Moonshot AI in a native INT4 / compressed-tensors format; this checkpoint preserves that Q4-class release format in MLX affine Q4 while applying REAP-style Mixture-of-Experts pruning. The pruning keeps the routed experts most active for the target workload, removes the least relevant routed experts, and preserves the rest of the model structure.
The goal is practical local use: retain useful smart-contract coding, investigation, and fork-test behavior while reducing the expert footprint enough to run on a single high-memory Mac Studio.
This release is intentionally framed against Moonshot AI hosted Kimi-K2.6 inference, not just against smaller local baselines. Kimi-K2.6 is a tier-1 open-weight MoE model, and its native INT4 format is part of Moonshot's post-training quantization-aware release process, not an aftermarket quality-reducing quantization. This checkpoint shows that a domain-specialized REAP variant can run locally on a Mac Studio M3 Ultra 512 GB and complete demanding Solidity-agent tasks in the same target domain.
Built with mlx_fun, an MLX-native
toolkit for MoE quantization, expert pruning, and expert-activation analysis.
Each row is one of the 60 MoE layers; each column is one of the 384 routed experts in the base model. Lower summed rank indicates higher observed importance for the calibration workload. The released checkpoint keeps 256 of 384 routed experts per MoE layer.
| Field | Value |
|---|---|
| Base model | moonshotai/Kimi-K2.6 |
| Format | MLX safetensors with custom Kimi K2.5/K2.6 code files |
| Quantization | MLX affine Q4, preserving the native INT4/Q4-class Kimi-K2.6 release format |
| Pruning method | REAP per-layer expert pruning by saliency |
| Source routed experts | 384 per MoE layer |
| Experts kept | 256 / 384 routed experts per MoE layer |
| Expert reduction | 128 experts removed per MoE layer, ~33% reduction |
| Layers | 61 total text layers, including 1 dense layer and 60 MoE layers |
| Selected experts per token | 8 |
| Context length | 262,144 tokens |
| Disk size | ~401 GB |
| Shards | 180 safetensors files |
| Build and evaluation machine | Mac Studio M3 Ultra, 512 GB unified memory |
| Recommended hardware | Apple Silicon with >= ~440 GB unified memory |
The number of experts kept is uniform across MoE layers, but the specific expert indices differ per layer. The router and related expert-indexed tensors are sliced to match the retained experts.
This checkpoint is intended for local, domain-focused Solidity work:
It is not intended to be a general-purpose replacement for the full Kimi-K2.6 model. Capability outside the Solidity and smart-contract engineering domain is expected to degrade more than with the unpruned base model.
The checkpoint was produced from Kimi-K2.6 by:
All conversion, saliency collection, pruning, and local evaluation work for this release was completed on a Mac Studio M3 Ultra with 512 GB unified memory. That hardware point matters: the result is a local, reproducible workstation workflow for a tier-1 open-weight MoE model, not a cloud-only experiment.
Private prompts, internal task traces, target contracts, and operational
pipeline details are intentionally omitted from this public model card. To apply
the same method to another workload, collect your own routed-expert activation
statistics with mlx_fun, then prune the target checkpoint using the resulting
per-layer saliency.
The following results are from a representative end-to-end smart-contract audit workload with multiple agent stages. They compare this pruned local Q4 checkpoint against a same-base local Q3 checkpoint and OpenRouter-routed Moonshot AI Kimi-K2.6 inference.
These are workload snapshots, not a formal benchmark suite, provider benchmark, or security certification. Hardware for the local runs was a Mac Studio M3 Ultra with 512 GB unified memory. The target details and internal pipeline names are intentionally abstracted in this public card.
This stage asks the agent to reason through the exploit path and emit the confirmed vulnerability finding. The fully cold REAP row has no external knowledge priming.
| Configuration | Outcome | Wall time | Input tokens | Output tokens | Total tokens | Tool calls |
|---|---|---|---|---|---|---|
| OpenRouter-routed Moonshot AI Kimi-K2.6 | Critical canonical | 293s | 293,191 | 7,799 | 300,990 | 19 |
| Local Q3 baseline | Critical canonical | 1,665s | 659,769 | 13,721 | 673,490 | 21 |
| This model, local Q4 REAP, fully cold | Confirmed critical | 1,498s | 267,829 | 9,613 | 277,442 | 17 |
On this exploit-investigation stage, REAP uses ~59% fewer total tokens and ~19% fewer tool calls than the local Q3 baseline while reaching the same canonical outcome. Compared with OpenRouter-routed Moonshot AI inference, REAP uses slightly fewer total tokens and fewer tool calls, but wall-clock is slower because local Apple Silicon prefill/generation throughput is lower.
| Configuration | Output throughput | Prefill throughput |
|---|---|---|
| This model, local Q4 REAP | ~10-13 tok/s | ~300 tok/s |
| Moonshot AI hosted Kimi-K2.6 inference | ~23-31 tok/s | ~2,000 tok/s |
Moonshot AI hosted inference is faster wall-clock. The point of REAP here is different: keep a tier-1 open-weight model useful for a high-value domain while running locally, privately, and repeatably on one Mac Studio.
Place the directory under:
~/.lmstudio/models/<owner>/Kimi-K2.6-REAP-Solidity
Enable Trust Remote Code in LM Studio. The checkpoint ships the required Moonshot Kimi custom modeling files.
mlx-fun servemlx-fun serve \
--model /path/to/Kimi-K2.6-REAP-Solidity \
--trust-remote-code \
--idle-timeout 7200 \
--default-top-k 100 \
--default-repetition-penalty 1.05 \
--prompt-cache-size 1
The included chat_template.jinja handles Kimi tool calls and reasoning blocks.
N has the same meaning across all layers
will not apply cleanly. Expert retention is layer-specific.This checkpoint inherits the base model's Modified MIT terms. See
moonshotai/Kimi-K2.6 and the
included LICENSE file for the original terms.
mlx_fun repoIf this model or workflow is useful, please star the
mlx_fun repo.