🚀 JiRack Ternary 70B — Proprietary Ternary-Quantized Transformer
Under training yet: DEV and Alfa version is ready
Inventor: Konstantin Vladimirovich Grabko
Contact: grabko@cmsmanhattan.com
Phone: +1 (516) 777-0945
Status: [PATENT PENDING] — Claims Filed December 21, 2025
Needed: A sponsor for Llama 70b Distilation to high quality as original Llama 70b or Data Center with cooperation
NVIDIA Blackwell support added to work in Colab on G4 with Blackwell 96 Gb VARM with fp8
⚠️ IMPORTANT NOTICE — PROPRIETARY TECHNOLOGY
This model and all accompanying code, algorithms, and documentation are proprietary technology owned by Konstantin Vladimirovich Grabko .
© 2025 Konstantin Vladimirovich Grabko. All Rights Reserved. Patent Pending.
Allowed:
Personal and non-commercial research use only
Strictly Prohibited without a written commercial license:
Any commercial use (SaaS, mobile apps, edge devices, paid services, etc.)
Creating and distributing derivative models for profit
Removing or modifying any copyright or legal notices
Patenting any part of this technology
Commercial users must obtain a signed license and pay 5% royalty on net revenue.
Any unauthorized commercial use will be pursued legally under New York law.
Contact for commercial license:
grabko@cmsmanhattan.com
📋 Overview
JiRack Ternary 70B is a revolutionary ternary-quantized implementation of a 70-billion parameter Transformer model, achieving ~70% VRAM reduction while maintaining near-baseline perplexity. This model uses BitNet-style ternary quantization (${-1, 0, +1}$) with proprietary innovations including:
✅ Ternary-Quantized Optimization & Bitwise Unpacking
✅ Buffered Routing Embedding (BRE)
✅ SwiGLU-Attention (SWA) Fusion
✅ Hardware-Agnostic Layer-wise Offloading
This model is compatible with the meta-llama/Llama-3.2-70B tokenizer and supports the safetensors format for secure, efficient loading.
🎯 Key Features
🔬 Ternary Quantization (1.58-bit)
Weights are quantized to ternary values ${-1, 0, +1}$ using a proprietary bitwise unpacking kernel that extracts 4 parameters from a single byte:
Parameter Bitwise Operation Range Param 1 (p >> 6) & 0b110-3 Param 2 (p >> 4) & 0b110-3 Param 3 (p >> 2) & 0b110-3 Param 4 p & 0b110-3
Unpacking Equation:
$$w = (b - 1.0) \times \gamma$$
where $\gamma$ is a group-wise scaling factor computed per 128-parameter group.
💾 VRAM Efficiency
Metric Traditional FP16 JiRack Ternary 70B Memory Footprint ~140 GB ~42 GB Memory Reduction Baseline ~70% Perplexity Impact Baseline <1.5% degradation Thermal Profile 80-90°C <75°C
🔥 Thermal Optimization
The SwiGLU-Attention (SWA) Fusion kernel merges FFN and MHA operations, reducing activation memory and keeping GPU temperatures below 75°C during inference.
🖥️ Hardware Compatibility
Tested and validated on:
✅ NVIDIA RTX 4080 (16GB VRAM)
✅ AMD Radeon 7900 XT (20GB VRAM) with ROCm
✅ Multi-GPU setups (PCIe 4.0)
✅ Consumer-grade hardware configurations
🏗️ Architecture Specifications
Parameter Value Total Parameters 70 Billion Hidden Dimension 8,192 Intermediate Dimension 28,672 Number of Layers 80 Attention Heads 64 Group Size (N) 128 Quantization Ternary (1.58-bit) Weight Format safetensors Tokenizer meta-llama/Llama-3.2-70B compatible
🚀 Usage
Installation
pip install transformers torch safetensors accelerate
Loading the Model
1 from transformers import AutoTokenizer , AutoModelForCausalLM
2
3 # Load tokenizer (compatible with Llama 3.2 70B)
4 tokenizer = AutoTokenizer . from_pretrained ( "meta-llama/Llama-3.2-70B" )
5
6 # Load JiRack Ternary 70B model
7 model = AutoModelForCausalLM . from_pretrained (
8 "kgrabko2/jirack-ternary-70b" ,
9 trust_remote_code = True ,
10 device_map = "auto" , # Automatic layer-wise offloading
11 torch_dtype = "auto"
12 )
13
14 # Generate text
15 inputs = tokenizer ( "The future of AI is" , return_tensors = "pt" )
16 outputs = model . generate ( ** inputs , max_length = 100 )
17 print ( tokenizer . decode ( outputs [ 0 ] ) )
Advanced: Multi-GPU Inference
1 from accelerate import init_empty_weights , load_checkpoint_and_dispatch
2
3 with init_empty_weights ( ) :
4 model = AutoModelForCausalLM . from_pretrained (
5 "kgrabko2/jirack-ternary-70b" ,
6 trust_remote_code = True
7 )
8
9 model = load_checkpoint_and_dispatch (
10 model ,
11 "kgrabko2/jirack-ternary-70b" ,
12 device_map = "auto" ,
13 no_split_module_classes = [ "JiRackDecoderLayer" ]
14 )
📊 Performance Benchmarks
Memory Efficiency
FP16 Baseline: ~140 GB VRAM
JiRack Ternary: ~42 GB VRAM
Reduction: 70%
Inference Speed
Hardware Tokens/sec (FP16) Tokens/sec (JiRack) Speedup RTX 4080 (16GB) OOM ~12 tok/s ∞ 7900 XT (20GB) OOM ~15 tok/s ∞ 2x RTX 4090 (48GB) ~8 tok/s ~28 tok/s 3.5x
Perplexity (WikiText-2)
FP16 Baseline: 5.23
JiRack Ternary: 5.31
Degradation: <1.5%
🔬 Technical Deep Dive
Bitwise Unpacking Kernel
1 def unpack_weights ( self ) :
2 if self . packed_weights is None :
3 return self . weight
4
5 p = self . packed_weights
6
7 # Extract 4 params from 1 byte using bit shifts
8 b1 , b2 , b3 , b4 = ( p >> 6 ) & 0b11 , ( p >> 4 ) & 0b11 , ( p >> 2 ) & 0b11 , p & 0b11
9 unpacked = torch . stack ( [ b1 , b2 , b3 , b4 ] , dim = 1 ) . view ( - 1 )
10
11 # Apply offset and group-wise scaling
12 weights = ( unpacked [ : num_el ] . to ( torch . float16 ) - 1.0 ) . view ( - 1 , self . group_size )
13 weights = weights * self . weight_scale . view ( - 1 , 1 )
14
15 return weights . view ( tuple ( self . orig_shape . tolist ( ) ) )
Layer-wise Offloading
The model automatically distributes layers across available GPUs/NPUs, ensuring:
✅ Asynchronous memory pooling
✅ Dynamic device allocation per layer
✅ Prevention of OOM errors on consumer hardware
🎓 Scaling to 405B Parameters
JiRack 405B Roadmap
Current Need: Sponsor for Llama 405B distillation to match original quality or partnership with a data center.
Projected Specifications
Parameter 405B Configuration Memory Footprint ~243 GB (vs ~810 GB FP16) VRAM Reduction ~70% LoRA Fine-tuning ~245 GB (4x RTX 4090) Thermal Profile <80°C with SWA Fusion
Benefits of JiRack 405B
✅ Easy Fine-tuning: LoRA adapters (r=16) require only ~200 MB
✅ Consumer Hardware: Fits on 4x RTX 4090 with offloading
✅ Thermal Stability: SWA Fusion maintains <80°C during training
⚖️ Intellectual Property & Licensing
🔒 Patent Pending
Status: Formal claims filed December 21, 2025
Core IP Claims:
Ternary-Quantized Optimization & Bitwise Unpacking
Buffered Routing Embedding (BRE)
SwiGLU-Attention (SWA) Fusion
Hardware-Agnostic Layer-wise Offloading
📜 License Terms
Non-Commercial Use: Permitted for research and evaluation
Commercial Use: Requires CMS Manhattan JiRack License v1.2 execution
Anti-Patent Clause: Users cannot file patents based on disclosed methods
Non-Transferable: Access does not transfer IP ownership
📧
Licensing Inquiries: grabko@cmsmanhattan.com
📦 Model Files
This repository contains:
✅ Ternary-quantized weights (safetensors format)
✅ Custom modeling code (trust_remote_code required)
✅ Tokenizer configuration (Llama 3.2 compatible)
✅ LICENSE and NDA.md
🤝 Collaboration Opportunities
Looking For:
405B Distillation Sponsor — Partner to distill Llama 405B to JiRack ternary format
Data Center Partnership — Collaboration for large-scale training infrastructure
Commercial Licensees — SaaS, hardware integration, cloud deployment
Contact
Konstantin Vladimirovich Grabko
📧
grabko@cmsmanhattan.com
📞 +1 (516) 777-0945
📍 Plainview, New York, USA
📚 Citation
If you use this model in your research, please cite:
1 @software{grabko2025jirack,
2 author = {Grabko, Konstantin Vladimirovich},
3 title = {JiRack Ternary 70B: Proprietary Ternary-Quantized Transformer},
4 year = {2025},
5 publisher = {CMS Manhattan},
6 url = {https://huggingface.co/kgrabko2/jirack-ternary-70b},
7 note = {Patent Pending}
8 }
⚠️ Disclaimer
This model contains
proprietary technology protected by pending patents. All methods, architectures, and techniques disclosed are the intellectual property of Konstantin Vladimirovich Grabko. See
LICENSE for full terms.
🔗 Related Resources
Base Model: meta-llama/Meta-Llama-3.1-70B
Tokenizer: meta-llama/Llama-3.2-70B
License: LICENSE
Patent Documentation: See repository files
Made with 🔥 by CMS Manhattan — Pushing the boundaries of efficient LLM inference
JiRack 70B — chat_70b.py Run Log & Chat Transcript
Date: 2026-03-21
Script: python chat_70b.py
Mode: TERNARY CHAT MODE (A100 OPTIMIZED)
1) Startup / Model Load Log
1 --- 📚 Loading Tokenizer (Llama-3 style) ---
2 config.json: 100%|███████████████████████████████████████████████████████████████████████| 654/654 [00:00<00:00, 5.66MB/s]
3 tokenizer_config.json: 51.0kB [00:00, 18.8MB/s]
4 tokenizer.json: 9.09MB [00:00, 44.7MB/s]
5 special_tokens_map.json: 100%|█████████████████████████████████████████████████████████| 73.0/73.0 [00:00<00:00, 1.03MB/s]
6
7 --- 🚀 Initializing JiRack 70B Structure ---
8
9 --- 📥 Loading 30 shards from /content/JiRack_BitNet_70B_Packed/checkpoints/Analyst-1 ---
10 Loading shard: model-00001-of-00030.safetensors...
11 Loading shard: model-00002-of-00030.safetensors...
12 Loading shard: model-00003-of-00030.safetensors...
13 Loading shard: model-00004-of-00030.safetensors...
14 Loading shard: model-00005-of-00030.safetensors...
15 Loading shard: model-00006-of-00030.safetensors...
16 Loading shard: model-00007-of-00030.safetensors...
17 Loading shard: model-00008-of-00030.safetensors...
18 Loading shard: model-00009-of-00030.safetensors...
19 Loading shard: model-00010-of-00030.safetensors...
20 Loading shard: model-00011-of-00030.safetensors...
21 Loading shard: model-00012-of-00030.safetensors...
22 Loading shard: model-00013-of-00030.safetensors...
23 Loading shard: model-00014-of-00030.safetensors...
24 Loading shard: model-00015-of-00030.safetensors...
25 Loading shard: model-00016-of-00030.safetensors...
26 Loading shard: model-00017-of-00030.safetensors...
27 Loading shard: model-00018-of-00030.safetensors...
28 Loading shard: model-00019-of-00030.safetensors...
29 Loading shard: model-00020-of-00030.safetensors...
30 Loading shard: model-00021-of-00030.safetensors...
31 Loading shard: model-00022-of-00030.safetensors...
32 Loading shard: model-00023-of-00030.safetensors...
33 Loading shard: model-00024-of-00030.safetensors...
34 Loading shard: model-00025-of-00030.safetensors...
35 Loading shard: model-00026-of-00030.safetensors...
36 Loading shard: model-00027-of-00030.safetensors...
37 Loading shard: model-00028-of-00030.safetensors...
38 Loading shard: model-00029-of-00030.safetensors...
39 Loading shard: model-00030-of-00030.safetensors...
40
41 ✅ JiRack 70B successfully loaded and moved to GPU.
2) Interactive Session Banner
1 ==================================================
2 💬 JiRack 70B TERNARY CHAT MODE (A100 OPTIMIZED)
3 Type 'exit' to quit
4 ==================================================
3) Chat Transcript
Turn 1
User: Hello
JiRack 70B:
It sounds like thisH purposeo, thenw a You could maker ae lot of your home?
Gen Time: 4.49s
Turn 2
User: How are you doing ?
JiRack 70B:
I am trying to know if you might be a few ideas, and the most common, and I think you can also a clean.
Gen Time: 5.87s
Turn 3
User: (no input / empty)