Downloads · 30 days
0
arcstar-lab/ZK-DeepSeek
ZK-DeepSeek is a text generation model from arcstar-lab. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
A Verifiable Large Language Model with Zero-Knowledge Proofs
Downloads · 30 days
0
Access
Public
Updated Dec 2, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.ts235 KB · 53%
From the Hugging Face model README
A Verifiable Large Language Model with Zero-Knowledge Proofs
For more details, please refer to our paper:
📄 Zero-Knowledge Proof Based Verifiable Inference of Models
https://arxiv.org/pdf/2511.19902
ZK-DeepSeek is a verifiable large language model (Verifiable LLM) whose inference can be cryptographically proven using zero-knowledge proofs (zkSNARKs).
For every inference step, the model produces a succinct mathematical proof that verifies:
This enables trustless, provable, and privacy-preserving AI inference suitable for high-stakes environments such as blockchain, Web3, finance, governance, and distributed systems.
This repository provides:
Every model output is accompanied by a zkSNARK proof guaranteeing correctness.
The prover demonstrates correct computation without exposing any model parameters.
All DeepSeek-like Transformer operations are converted into constraint-friendly circuits:
Tens of thousands of component proofs are folded into a single constant-sized proof.
| Item | Description |
|---|---|
| Architecture | DeepSeek-V3 style Transformer with MoE + MLA |
| Parameters | ~671B (quantized) |
| Quantization | Int64 / Int32 — exact arithmetic for zk circuits |
| Disk Size | ~2.5 TB (expanded integer representation) |
| Intended Use | Research & verifiable inference |
Recommended:
Clone the repo:
git clone https://huggingface.co/arcstar-lab/ZK-DeepSeek
cd ZK-DeepSeek/inference
Install dependencies:
pip install -r requirements.txt
Compile CUDA kernels (-arch depends on your GPU):
nvcc -O3 -Xcompiler -fPIC -shared -o libint64gemm.so int64_gemm.cu -arch=sm_120
Download DeepSeek-V3 model weights and place them in:
/path/to/DeepSeek-V3
Convert weights to integer representation:
python3 ./convert2.py --hf-ckpt-path /path/to/DeepSeek-V3 --save-path /path/to/ZK-DeepSeek-Demo1 --n-experts 256 --model-parallel 1
This also stores embedding data in the zkdata folder.
Run chat interface:
./runLLM.sh
<Input your message>
The inference log will be available in the logs folder, and intermediate states in zkdata.

Move to zk folder and install ZK dependencies:
cd ../zk
npm install
npm run build
Start proof generation for vocabulary embeddings.
python3 runZK.py
To enable additional components, uncomment lines in runZK.py such as:
# await taskExpertSelector_gate(0, 4)
await taskEmbed()
# await taskAttnNorm('attn_norm', 0, 0)
# await taskAttnNorm('q_norm')
# await taskRope_pe()
# await taskSoftmax('scores')
# await taskSigmoid('gate')
# await taskExpertSelector('gate', 0, 3)
# await taskGemm('wkv_a1', 0, 0, 7168, 512, 112)
MIT
Author: Edward Wang Email: [email protected]
Our next priority is to develop a GPU-accelerated version of ZK-DeepSeek, which we anticipate will yield performance improvements by several orders of magnitude. We are actively seeking funding and collaborators to help advance this line of research. If you are interested in supporting or partnering with us, we warmly invite you to get in touch by email.