Text Generation
PyTorch
Safetensors
GGUF
qwen3_5_text
deltanet
qwen3.8
cpu
efficient
low-memory
ternary
bitnet
jirack
web-ui
routing
tool-call
robotics
ollama
ternary-weights
ternary-transformer
quantization
1.58-bit
conversational
Instructions to use CMSManhattan/JiRackDeltaNet_70b 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 CMSManhattan/JiRackDeltaNet_70b 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 CMSManhattan/JiRackDeltaNet_70b:Q4_K_M # Run inference directly in the terminal: llama cli -hf CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf CMSManhattan/JiRackDeltaNet_70b:Q4_K_M # Run inference directly in the terminal: llama cli -hf CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
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 CMSManhattan/JiRackDeltaNet_70b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
Use Docker
docker model run hf.co/CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use CMSManhattan/JiRackDeltaNet_70b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CMSManhattan/JiRackDeltaNet_70b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CMSManhattan/JiRackDeltaNet_70b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
- Ollama
How to use CMSManhattan/JiRackDeltaNet_70b with Ollama:
ollama run hf.co/CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
- Unsloth Desktop
- Pi
How to use CMSManhattan/JiRackDeltaNet_70b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "CMSManhattan/JiRackDeltaNet_70b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use CMSManhattan/JiRackDeltaNet_70b with Docker Model Runner:
docker model run hf.co/CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
- Lemonade
How to use CMSManhattan/JiRackDeltaNet_70b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
Run and chat with the model
lemonade run user.JiRackDeltaNet_70b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use CMSManhattan/JiRackDeltaNet_70b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
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:8080/v1 hermes config set model.default CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use CMSManhattan/JiRackDeltaNet_70b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CMSManhattan/JiRackDeltaNet_70b:Q4_K_M
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:8080/v1 \ --custom-model-id "CMSManhattan/JiRackDeltaNet_70b:Q4_K_M" \ --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"
Remove build artifacts and recipe details from comments and cards
Browse files- JiRackDeltaNet_70b.py +2 -3
- NOTICE.md +1 -1
- README.md +2 -3
- audit_depth.json +0 -14
- chat_jirack.py +1 -2
- expansion_depth.json +0 -0
- gate_full.json +0 -81
- gate_mini.json +0 -81
- gguf.txt +0 -35
- jirack_sft_state.json +0 -9
- sft_final_fp8/JiRackDeltaNet_70b.py +2 -3
- sft_final_fp8/audit_depth.json +0 -14
- sft_final_fp8/chat_jirack.py +1 -2
- sft_final_fp8/expansion_depth.json +0 -0
- sft_final_fp8/gate_full.json +0 -81
- sft_final_fp8/gate_mini.json +0 -81
- sft_final_fp8/gguf.txt +0 -35
- sft_final_fp8/jirack_sft_state.json +0 -9
JiRackDeltaNet_70b.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""
|
| 2 |
-
|
| 3 |
=============================
|
| 4 |
|
| 5 |
-
Собственная (hand-rolled) архитектура "JiRack
|
| 6 |
прежнего DS32B-проекта: один файл, свой TransformerBlock, никакого
|
| 7 |
AutoConfig/AutoModelForCausalLM внутри класса архитектуры, никакого
|
| 8 |
model_id в конструкторе. Все размерности зашиты константами ниже --
|
|
@@ -517,7 +517,6 @@ class TransformerBlock(nn.Module):
|
|
| 517 |
|
| 518 |
class MTPBlock(nn.Module):
|
| 519 |
"""Multi-Token Prediction голова -- ровно как в реальном чекпоинте
|
| 520 |
-
Qwen3.5/3.8 (mtp_num_hidden_layers=1, mtp_use_dedicated_embeddings=false).
|
| 521 |
|
| 522 |
Имена подмодулей СОВПАДАЮТ с ключами HF state_dict (top-level `mtp.`):
|
| 523 |
mtp.pre_fc_norm_embedding.weight
|
|
|
|
| 1 |
"""
|
| 2 |
+
JiRackDeltaNet_70b.py
|
| 3 |
=============================
|
| 4 |
|
| 5 |
+
Собственная (hand-rolled) архитектура "JiRack" -- в стиле
|
| 6 |
прежнего DS32B-проекта: один файл, свой TransformerBlock, никакого
|
| 7 |
AutoConfig/AutoModelForCausalLM внутри класса архитектуры, никакого
|
| 8 |
model_id в конструкторе. Все размерности зашиты константами ниже --
|
|
|
|
| 517 |
|
| 518 |
class MTPBlock(nn.Module):
|
| 519 |
"""Multi-Token Prediction голова -- ровно как в реальном чекпоинте
|
|
|
|
| 520 |
|
| 521 |
Имена подмодулей СОВПАДАЮТ с ключами HF state_dict (top-level `mtp.`):
|
| 522 |
mtp.pre_fc_norm_embedding.weight
|
NOTICE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
**JiRackDeltaNet 70B**
|
| 4 |
Copyright 2026 Konstantin Vladimirovich Grabko (CMSManhattan)
|
| 5 |
|
| 6 |
-
The model is distributed under the Business Source License 1.2
|
| 7 |
|
| 8 |
This model is a modified version of a Qwen model by the Qwen team, Alibaba Cloud, licensed under the Apache License,
|
| 9 |
Version 2.0 (a copy is in `LICENSE-APACHE`). CMSManhattan modified the architecture and the weights and fine-tuned the
|
|
|
|
| 3 |
**JiRackDeltaNet 70B**
|
| 4 |
Copyright 2026 Konstantin Vladimirovich Grabko (CMSManhattan)
|
| 5 |
|
| 6 |
+
The model is distributed under the Business Source License 1.2 (see `LICENSE`).
|
| 7 |
|
| 8 |
This model is a modified version of a Qwen model by the Qwen team, Alibaba Cloud, licensed under the Apache License,
|
| 9 |
Version 2.0 (a copy is in `LICENSE-APACHE`). CMSManhattan modified the architecture and the weights and fine-tuned the
|
README.md
CHANGED
|
@@ -6,7 +6,6 @@ tags:
|
|
| 6 |
- gated-deltanet
|
| 7 |
- linear-attention
|
| 8 |
- hybrid-attention
|
| 9 |
-
- depth-expansion
|
| 10 |
- function-calling
|
| 11 |
- reasoning
|
| 12 |
- fp8
|
|
@@ -129,7 +128,7 @@ This project is a derivative work based on a Qwen model originally released unde
|
|
| 129 |
### 1. Proprietary Terms for JiRack
|
| 130 |
All modifications, proprietary additions, architectural extensions, derived model weights, and scripts developed by **CMS Manhattan (Konstantin Grabko)** — including but not limited to:
|
| 131 |
* JiRack custom model code and architecture modifications,
|
| 132 |
-
*
|
| 133 |
* Supervised Fine-Tuning (SFT) on the JiRack dataset mix,
|
| 134 |
* Quantized weights and conversions (FP8, GGUF, BitNet/ternary formats),
|
| 135 |
|
|
@@ -140,7 +139,7 @@ are licensed under the **JiRack Proprietary Model License (BSL)** (see `LICENSE`
|
|
| 140 |
|
| 141 |
### 2. Third-Party Attribution & Compliance
|
| 142 |
In accordance with Section 4 of the Apache License 2.0, the original copyright, attribution, and license notices of the base model are preserved. When redistributing or using this repository, you must retain:
|
| 143 |
-
* The
|
| 144 |
* The `NOTICE.md` file accompanying this repository,
|
| 145 |
* All copyright and attribution notices attached to the original components.
|
| 146 |
|
|
|
|
| 6 |
- gated-deltanet
|
| 7 |
- linear-attention
|
| 8 |
- hybrid-attention
|
|
|
|
| 9 |
- function-calling
|
| 10 |
- reasoning
|
| 11 |
- fp8
|
|
|
|
| 128 |
### 1. Proprietary Terms for JiRack
|
| 129 |
All modifications, proprietary additions, architectural extensions, derived model weights, and scripts developed by **CMS Manhattan (Konstantin Grabko)** — including but not limited to:
|
| 130 |
* JiRack custom model code and architecture modifications,
|
| 131 |
+
* changes to the model architecture,
|
| 132 |
* Supervised Fine-Tuning (SFT) on the JiRack dataset mix,
|
| 133 |
* Quantized weights and conversions (FP8, GGUF, BitNet/ternary formats),
|
| 134 |
|
|
|
|
| 139 |
|
| 140 |
### 2. Third-Party Attribution & Compliance
|
| 141 |
In accordance with Section 4 of the Apache License 2.0, the original copyright, attribution, and license notices of the base model are preserved. When redistributing or using this repository, you must retain:
|
| 142 |
+
* The Apache 2.0 license text of the base model (`LICENSE-APACHE`),
|
| 143 |
* The `NOTICE.md` file accompanying this repository,
|
| 144 |
* All copyright and attribution notices attached to the original components.
|
| 145 |
|
audit_depth.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"kind": "depth",
|
| 3 |
-
"src": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded",
|
| 4 |
-
"out": "/mnt/nfs_share/JiRackDeltaNet_70b/expanded",
|
| 5 |
-
"tensors": 1714,
|
| 6 |
-
"ops": {
|
| 7 |
-
"copy": 1586,
|
| 8 |
-
"zero": 128
|
| 9 |
-
},
|
| 10 |
-
"errors": [],
|
| 11 |
-
"n_errors": 0,
|
| 12 |
-
"verdict": "PASS",
|
| 13 |
-
"minutes": 9.8
|
| 14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chat_jirack.py
CHANGED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
# =============================================================================
|
| 3 |
-
# chat_jirack.py - chat with JiRackDeltaNet
|
| 4 |
#
|
| 5 |
# python3 chat_jirack.py --model-dir /mnt/nfs_share/JiRackDeltaNet_70b/expanded
|
| 6 |
-
# python3 chat_jirack.py --model-dir /mnt/nfs_share/JiRackDeltaNet_27b_cp # 27B
|
| 7 |
#
|
| 8 |
# - model code: JiRackDeltaNet_*.py from the same folder (or --model-file)
|
| 9 |
# - several GPUs: the TransformerBlocks are split across them evenly (70B bf16 = 140 GB,
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
# =============================================================================
|
| 3 |
+
# chat_jirack.py - chat with JiRackDeltaNet 70B from a safetensors folder.
|
| 4 |
#
|
| 5 |
# python3 chat_jirack.py --model-dir /mnt/nfs_share/JiRackDeltaNet_70b/expanded
|
|
|
|
| 6 |
#
|
| 7 |
# - model code: JiRackDeltaNet_*.py from the same folder (or --model-file)
|
| 8 |
# - several GPUs: the TransformerBlocks are split across them evenly (70B bf16 = 140 GB,
|
expansion_depth.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gate_full.json
DELETED
|
@@ -1,81 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"verdict": "PASS",
|
| 3 |
-
"expected": "exact",
|
| 4 |
-
"mini": false,
|
| 5 |
-
"compute": "fp32blocks",
|
| 6 |
-
"a": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded",
|
| 7 |
-
"b": "/mnt/nfs_share/JiRackDeltaNet_70b/expanded",
|
| 8 |
-
"layers_run": [
|
| 9 |
-
64,
|
| 10 |
-
128
|
| 11 |
-
],
|
| 12 |
-
"intermediate": [
|
| 13 |
-
26624,
|
| 14 |
-
26624
|
| 15 |
-
],
|
| 16 |
-
"prompts": [
|
| 17 |
-
"The capital of France is",
|
| 18 |
-
"def fibonacci(n):\n ",
|
| 19 |
-
"Столица России —"
|
| 20 |
-
],
|
| 21 |
-
"ids": [
|
| 22 |
-
[
|
| 23 |
-
760,
|
| 24 |
-
6511,
|
| 25 |
-
314,
|
| 26 |
-
9338,
|
| 27 |
-
369
|
| 28 |
-
],
|
| 29 |
-
[
|
| 30 |
-
727,
|
| 31 |
-
73111,
|
| 32 |
-
1393,
|
| 33 |
-
1590,
|
| 34 |
-
198,
|
| 35 |
-
257
|
| 36 |
-
],
|
| 37 |
-
[
|
| 38 |
-
212396,
|
| 39 |
-
168314,
|
| 40 |
-
170312,
|
| 41 |
-
1892
|
| 42 |
-
]
|
| 43 |
-
],
|
| 44 |
-
"rows": [
|
| 45 |
-
{
|
| 46 |
-
"T": 5,
|
| 47 |
-
"identical": true,
|
| 48 |
-
"max_abs": 0.0,
|
| 49 |
-
"mean_abs": 0.0,
|
| 50 |
-
"max_kl": 0.0,
|
| 51 |
-
"top1_agree": 5
|
| 52 |
-
},
|
| 53 |
-
{
|
| 54 |
-
"T": 6,
|
| 55 |
-
"identical": true,
|
| 56 |
-
"max_abs": 0.0,
|
| 57 |
-
"mean_abs": 0.0,
|
| 58 |
-
"max_kl": 0.0,
|
| 59 |
-
"top1_agree": 6
|
| 60 |
-
},
|
| 61 |
-
{
|
| 62 |
-
"T": 4,
|
| 63 |
-
"identical": true,
|
| 64 |
-
"max_abs": 0.0,
|
| 65 |
-
"mean_abs": 0.0,
|
| 66 |
-
"max_kl": 0.0,
|
| 67 |
-
"top1_agree": 4
|
| 68 |
-
}
|
| 69 |
-
],
|
| 70 |
-
"a_info": {
|
| 71 |
-
"cached": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded/gate_logits_fp32blocks_L64.npz"
|
| 72 |
-
},
|
| 73 |
-
"b_info": {
|
| 74 |
-
"loaded": 1714,
|
| 75 |
-
"skipped": 0,
|
| 76 |
-
"unexpected": [],
|
| 77 |
-
"missing_buffers": [],
|
| 78 |
-
"seconds": 2016
|
| 79 |
-
},
|
| 80 |
-
"torch": "2.13.0+cu130"
|
| 81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gate_mini.json
DELETED
|
@@ -1,81 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"verdict": "PASS",
|
| 3 |
-
"expected": "exact",
|
| 4 |
-
"mini": true,
|
| 5 |
-
"compute": "fp32blocks",
|
| 6 |
-
"a": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded",
|
| 7 |
-
"b": "/mnt/nfs_share/JiRackDeltaNet_70b/expanded",
|
| 8 |
-
"layers_run": [
|
| 9 |
-
4,
|
| 10 |
-
8
|
| 11 |
-
],
|
| 12 |
-
"intermediate": [
|
| 13 |
-
26624,
|
| 14 |
-
26624
|
| 15 |
-
],
|
| 16 |
-
"prompts": [
|
| 17 |
-
"The capital of France is",
|
| 18 |
-
"def fibonacci(n):\n ",
|
| 19 |
-
"Столица России —"
|
| 20 |
-
],
|
| 21 |
-
"ids": [
|
| 22 |
-
[
|
| 23 |
-
760,
|
| 24 |
-
6511,
|
| 25 |
-
314,
|
| 26 |
-
9338,
|
| 27 |
-
369
|
| 28 |
-
],
|
| 29 |
-
[
|
| 30 |
-
727,
|
| 31 |
-
73111,
|
| 32 |
-
1393,
|
| 33 |
-
1590,
|
| 34 |
-
198,
|
| 35 |
-
257
|
| 36 |
-
],
|
| 37 |
-
[
|
| 38 |
-
212396,
|
| 39 |
-
168314,
|
| 40 |
-
170312,
|
| 41 |
-
1892
|
| 42 |
-
]
|
| 43 |
-
],
|
| 44 |
-
"rows": [
|
| 45 |
-
{
|
| 46 |
-
"T": 5,
|
| 47 |
-
"identical": true,
|
| 48 |
-
"max_abs": 0.0,
|
| 49 |
-
"mean_abs": 0.0,
|
| 50 |
-
"max_kl": 0.0,
|
| 51 |
-
"top1_agree": 5
|
| 52 |
-
},
|
| 53 |
-
{
|
| 54 |
-
"T": 6,
|
| 55 |
-
"identical": true,
|
| 56 |
-
"max_abs": 0.0,
|
| 57 |
-
"mean_abs": 0.0,
|
| 58 |
-
"max_kl": 0.0,
|
| 59 |
-
"top1_agree": 6
|
| 60 |
-
},
|
| 61 |
-
{
|
| 62 |
-
"T": 4,
|
| 63 |
-
"identical": true,
|
| 64 |
-
"max_abs": 0.0,
|
| 65 |
-
"mean_abs": 0.0,
|
| 66 |
-
"max_kl": 0.0,
|
| 67 |
-
"top1_agree": 4
|
| 68 |
-
}
|
| 69 |
-
],
|
| 70 |
-
"a_info": {
|
| 71 |
-
"cached": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded/gate_logits_fp32blocks_L4.npz"
|
| 72 |
-
},
|
| 73 |
-
"b_info": {
|
| 74 |
-
"loaded": 124,
|
| 75 |
-
"skipped": 1590,
|
| 76 |
-
"unexpected": [],
|
| 77 |
-
"missing_buffers": [],
|
| 78 |
-
"seconds": 138
|
| 79 |
-
},
|
| 80 |
-
"torch": "2.13.0+cu130"
|
| 81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gguf.txt
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
# 1. Конвертация в bf16 (как договорились)
|
| 2 |
-
python convert_hf_to_gguf.py /mnt/nfs_share/Qwen3_8 \
|
| 3 |
-
--outfile /mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.gguf --outtype bf16
|
| 4 |
-
|
| 5 |
-
# 2. Сборка llama-quantize (один раз)
|
| 6 |
-
cd /mnt/nfs_share/llama.cpp
|
| 7 |
-
cmake -B build
|
| 8 |
-
cmake --build build -j
|
| 9 |
-
|
| 10 |
-
# 3. Квантование в Q4_K_M
|
| 11 |
-
./build/bin/llama-quantize \
|
| 12 |
-
/mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.gguf \
|
| 13 |
-
/mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.Q4_K_M.gguf \
|
| 14 |
-
Q4_K_M
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
cd /mnt/nfs_share/llama.cpp
|
| 19 |
-
cmake -B build -DGGML_CUDA=ON # для NVIDIA
|
| 20 |
-
make -C build
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
/mnt/nfs_share/llama.cpp/build/bin/llama-cli \
|
| 24 |
-
-m /mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.Q4_K_M.gguf \
|
| 25 |
-
-n 512 \
|
| 26 |
-
-c 4096 \
|
| 27 |
-
-p "Explain quantum computing in simple terms:"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
/mnt/nfs_share/llama.cpp/build/bin/llama-server \
|
| 34 |
-
-m /mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.Q4_K_M.gguf \
|
| 35 |
-
--port 8000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jirack_sft_state.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"global_step": 374,
|
| 3 |
-
"lr": 1e-05,
|
| 4 |
-
"max_steps": 374,
|
| 5 |
-
"shards": "0",
|
| 6 |
-
"tok_micro": 8192,
|
| 7 |
-
"accum": 2,
|
| 8 |
-
"init_dir": "/home/ubuntu/deltanet70b"
|
| 9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sft_final_fp8/JiRackDeltaNet_70b.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""
|
| 2 |
-
|
| 3 |
=============================
|
| 4 |
|
| 5 |
-
Собственная (hand-rolled) архитектура "JiRack
|
| 6 |
прежнего DS32B-проекта: один файл, свой TransformerBlock, никакого
|
| 7 |
AutoConfig/AutoModelForCausalLM внутри класса архитектуры, никакого
|
| 8 |
model_id в конструкторе. Все размерности зашиты константами ниже --
|
|
@@ -517,7 +517,6 @@ class TransformerBlock(nn.Module):
|
|
| 517 |
|
| 518 |
class MTPBlock(nn.Module):
|
| 519 |
"""Multi-Token Prediction голова -- ровно как в реальном чекпоинте
|
| 520 |
-
Qwen3.5/3.8 (mtp_num_hidden_layers=1, mtp_use_dedicated_embeddings=false).
|
| 521 |
|
| 522 |
Имена подмодулей СОВПАДАЮТ с ключами HF state_dict (top-level `mtp.`):
|
| 523 |
mtp.pre_fc_norm_embedding.weight
|
|
|
|
| 1 |
"""
|
| 2 |
+
JiRackDeltaNet_70b.py
|
| 3 |
=============================
|
| 4 |
|
| 5 |
+
Собственная (hand-rolled) архитектура "JiRack" -- в стиле
|
| 6 |
прежнего DS32B-проекта: один файл, свой TransformerBlock, никакого
|
| 7 |
AutoConfig/AutoModelForCausalLM внутри класса архитектуры, никакого
|
| 8 |
model_id в конструкторе. Все размерности зашиты константами ниже --
|
|
|
|
| 517 |
|
| 518 |
class MTPBlock(nn.Module):
|
| 519 |
"""Multi-Token Prediction голова -- ровно как в реальном чекпоинте
|
|
|
|
| 520 |
|
| 521 |
Имена подмодулей СОВПАДАЮТ с ключами HF state_dict (top-level `mtp.`):
|
| 522 |
mtp.pre_fc_norm_embedding.weight
|
sft_final_fp8/audit_depth.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"kind": "depth",
|
| 3 |
-
"src": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded",
|
| 4 |
-
"out": "/mnt/nfs_share/JiRackDeltaNet_70b/expanded",
|
| 5 |
-
"tensors": 1714,
|
| 6 |
-
"ops": {
|
| 7 |
-
"copy": 1586,
|
| 8 |
-
"zero": 128
|
| 9 |
-
},
|
| 10 |
-
"errors": [],
|
| 11 |
-
"n_errors": 0,
|
| 12 |
-
"verdict": "PASS",
|
| 13 |
-
"minutes": 9.8
|
| 14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sft_final_fp8/chat_jirack.py
CHANGED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
# =============================================================================
|
| 3 |
-
# chat_jirack.py - chat with JiRackDeltaNet
|
| 4 |
#
|
| 5 |
# python3 chat_jirack.py --model-dir /mnt/nfs_share/JiRackDeltaNet_70b/expanded
|
| 6 |
-
# python3 chat_jirack.py --model-dir /mnt/nfs_share/JiRackDeltaNet_27b_cp # 27B
|
| 7 |
#
|
| 8 |
# - model code: JiRackDeltaNet_*.py from the same folder (or --model-file)
|
| 9 |
# - several GPUs: the TransformerBlocks are split across them evenly (70B bf16 = 140 GB,
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
# =============================================================================
|
| 3 |
+
# chat_jirack.py - chat with JiRackDeltaNet 70B from a safetensors folder.
|
| 4 |
#
|
| 5 |
# python3 chat_jirack.py --model-dir /mnt/nfs_share/JiRackDeltaNet_70b/expanded
|
|
|
|
| 6 |
#
|
| 7 |
# - model code: JiRackDeltaNet_*.py from the same folder (or --model-file)
|
| 8 |
# - several GPUs: the TransformerBlocks are split across them evenly (70B bf16 = 140 GB,
|
sft_final_fp8/expansion_depth.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sft_final_fp8/gate_full.json
DELETED
|
@@ -1,81 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"verdict": "PASS",
|
| 3 |
-
"expected": "exact",
|
| 4 |
-
"mini": false,
|
| 5 |
-
"compute": "fp32blocks",
|
| 6 |
-
"a": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded",
|
| 7 |
-
"b": "/mnt/nfs_share/JiRackDeltaNet_70b/expanded",
|
| 8 |
-
"layers_run": [
|
| 9 |
-
64,
|
| 10 |
-
128
|
| 11 |
-
],
|
| 12 |
-
"intermediate": [
|
| 13 |
-
26624,
|
| 14 |
-
26624
|
| 15 |
-
],
|
| 16 |
-
"prompts": [
|
| 17 |
-
"The capital of France is",
|
| 18 |
-
"def fibonacci(n):\n ",
|
| 19 |
-
"Столица России —"
|
| 20 |
-
],
|
| 21 |
-
"ids": [
|
| 22 |
-
[
|
| 23 |
-
760,
|
| 24 |
-
6511,
|
| 25 |
-
314,
|
| 26 |
-
9338,
|
| 27 |
-
369
|
| 28 |
-
],
|
| 29 |
-
[
|
| 30 |
-
727,
|
| 31 |
-
73111,
|
| 32 |
-
1393,
|
| 33 |
-
1590,
|
| 34 |
-
198,
|
| 35 |
-
257
|
| 36 |
-
],
|
| 37 |
-
[
|
| 38 |
-
212396,
|
| 39 |
-
168314,
|
| 40 |
-
170312,
|
| 41 |
-
1892
|
| 42 |
-
]
|
| 43 |
-
],
|
| 44 |
-
"rows": [
|
| 45 |
-
{
|
| 46 |
-
"T": 5,
|
| 47 |
-
"identical": true,
|
| 48 |
-
"max_abs": 0.0,
|
| 49 |
-
"mean_abs": 0.0,
|
| 50 |
-
"max_kl": 0.0,
|
| 51 |
-
"top1_agree": 5
|
| 52 |
-
},
|
| 53 |
-
{
|
| 54 |
-
"T": 6,
|
| 55 |
-
"identical": true,
|
| 56 |
-
"max_abs": 0.0,
|
| 57 |
-
"mean_abs": 0.0,
|
| 58 |
-
"max_kl": 0.0,
|
| 59 |
-
"top1_agree": 6
|
| 60 |
-
},
|
| 61 |
-
{
|
| 62 |
-
"T": 4,
|
| 63 |
-
"identical": true,
|
| 64 |
-
"max_abs": 0.0,
|
| 65 |
-
"mean_abs": 0.0,
|
| 66 |
-
"max_kl": 0.0,
|
| 67 |
-
"top1_agree": 4
|
| 68 |
-
}
|
| 69 |
-
],
|
| 70 |
-
"a_info": {
|
| 71 |
-
"cached": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded/gate_logits_fp32blocks_L64.npz"
|
| 72 |
-
},
|
| 73 |
-
"b_info": {
|
| 74 |
-
"loaded": 1714,
|
| 75 |
-
"skipped": 0,
|
| 76 |
-
"unexpected": [],
|
| 77 |
-
"missing_buffers": [],
|
| 78 |
-
"seconds": 2016
|
| 79 |
-
},
|
| 80 |
-
"torch": "2.13.0+cu130"
|
| 81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sft_final_fp8/gate_mini.json
DELETED
|
@@ -1,81 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"verdict": "PASS",
|
| 3 |
-
"expected": "exact",
|
| 4 |
-
"mini": true,
|
| 5 |
-
"compute": "fp32blocks",
|
| 6 |
-
"a": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded",
|
| 7 |
-
"b": "/mnt/nfs_share/JiRackDeltaNet_70b/expanded",
|
| 8 |
-
"layers_run": [
|
| 9 |
-
4,
|
| 10 |
-
8
|
| 11 |
-
],
|
| 12 |
-
"intermediate": [
|
| 13 |
-
26624,
|
| 14 |
-
26624
|
| 15 |
-
],
|
| 16 |
-
"prompts": [
|
| 17 |
-
"The capital of France is",
|
| 18 |
-
"def fibonacci(n):\n ",
|
| 19 |
-
"Столица России —"
|
| 20 |
-
],
|
| 21 |
-
"ids": [
|
| 22 |
-
[
|
| 23 |
-
760,
|
| 24 |
-
6511,
|
| 25 |
-
314,
|
| 26 |
-
9338,
|
| 27 |
-
369
|
| 28 |
-
],
|
| 29 |
-
[
|
| 30 |
-
727,
|
| 31 |
-
73111,
|
| 32 |
-
1393,
|
| 33 |
-
1590,
|
| 34 |
-
198,
|
| 35 |
-
257
|
| 36 |
-
],
|
| 37 |
-
[
|
| 38 |
-
212396,
|
| 39 |
-
168314,
|
| 40 |
-
170312,
|
| 41 |
-
1892
|
| 42 |
-
]
|
| 43 |
-
],
|
| 44 |
-
"rows": [
|
| 45 |
-
{
|
| 46 |
-
"T": 5,
|
| 47 |
-
"identical": true,
|
| 48 |
-
"max_abs": 0.0,
|
| 49 |
-
"mean_abs": 0.0,
|
| 50 |
-
"max_kl": 0.0,
|
| 51 |
-
"top1_agree": 5
|
| 52 |
-
},
|
| 53 |
-
{
|
| 54 |
-
"T": 6,
|
| 55 |
-
"identical": true,
|
| 56 |
-
"max_abs": 0.0,
|
| 57 |
-
"mean_abs": 0.0,
|
| 58 |
-
"max_kl": 0.0,
|
| 59 |
-
"top1_agree": 6
|
| 60 |
-
},
|
| 61 |
-
{
|
| 62 |
-
"T": 4,
|
| 63 |
-
"identical": true,
|
| 64 |
-
"max_abs": 0.0,
|
| 65 |
-
"mean_abs": 0.0,
|
| 66 |
-
"max_kl": 0.0,
|
| 67 |
-
"top1_agree": 4
|
| 68 |
-
}
|
| 69 |
-
],
|
| 70 |
-
"a_info": {
|
| 71 |
-
"cached": "/mnt/nfs_share/JiRackDeltaNet_36b/expanded/gate_logits_fp32blocks_L4.npz"
|
| 72 |
-
},
|
| 73 |
-
"b_info": {
|
| 74 |
-
"loaded": 124,
|
| 75 |
-
"skipped": 1590,
|
| 76 |
-
"unexpected": [],
|
| 77 |
-
"missing_buffers": [],
|
| 78 |
-
"seconds": 138
|
| 79 |
-
},
|
| 80 |
-
"torch": "2.13.0+cu130"
|
| 81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sft_final_fp8/gguf.txt
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
# 1. Конвертация в bf16 (как договорились)
|
| 2 |
-
python convert_hf_to_gguf.py /mnt/nfs_share/Qwen3_8 \
|
| 3 |
-
--outfile /mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.gguf --outtype bf16
|
| 4 |
-
|
| 5 |
-
# 2. Сборка llama-quantize (один раз)
|
| 6 |
-
cd /mnt/nfs_share/llama.cpp
|
| 7 |
-
cmake -B build
|
| 8 |
-
cmake --build build -j
|
| 9 |
-
|
| 10 |
-
# 3. Квантование в Q4_K_M
|
| 11 |
-
./build/bin/llama-quantize \
|
| 12 |
-
/mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.gguf \
|
| 13 |
-
/mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.Q4_K_M.gguf \
|
| 14 |
-
Q4_K_M
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
cd /mnt/nfs_share/llama.cpp
|
| 19 |
-
cmake -B build -DGGML_CUDA=ON # для NVIDIA
|
| 20 |
-
make -C build
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
/mnt/nfs_share/llama.cpp/build/bin/llama-cli \
|
| 24 |
-
-m /mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.Q4_K_M.gguf \
|
| 25 |
-
-n 512 \
|
| 26 |
-
-c 4096 \
|
| 27 |
-
-p "Explain quantum computing in simple terms:"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
/mnt/nfs_share/llama.cpp/build/bin/llama-server \
|
| 34 |
-
-m /mnt/nfs_share/Qwen3_8/JiRackDeltaNet_27b.Q4_K_M.gguf \
|
| 35 |
-
--port 8000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sft_final_fp8/jirack_sft_state.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"global_step": 374,
|
| 3 |
-
"lr": 1e-05,
|
| 4 |
-
"max_steps": 374,
|
| 5 |
-
"shards": "0",
|
| 6 |
-
"tok_micro": 8192,
|
| 7 |
-
"accum": 2,
|
| 8 |
-
"init_dir": "/home/ubuntu/deltanet70b"
|
| 9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|