Text Generation
Safetensors
GGUF
qwen2
ternary
bitnet
1.58bit
cpu
qwen2.5
deepseek
efficient
low-memory
jirack
web-ui
routing
tool-call
robotics
conversational
Instructions to use CMSManhattan/JiRackUltra_1b 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/JiRackUltra_1b 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/JiRackUltra_1b:Q4_K_M # Run inference directly in the terminal: llama cli -hf CMSManhattan/JiRackUltra_1b: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/JiRackUltra_1b:Q4_K_M # Run inference directly in the terminal: llama cli -hf CMSManhattan/JiRackUltra_1b:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf CMSManhattan/JiRackUltra_1b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf CMSManhattan/JiRackUltra_1b:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf CMSManhattan/JiRackUltra_1b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf CMSManhattan/JiRackUltra_1b:Q4_K_M
Use Docker
docker model run hf.co/CMSManhattan/JiRackUltra_1b:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use CMSManhattan/JiRackUltra_1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CMSManhattan/JiRackUltra_1b" # 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/JiRackUltra_1b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CMSManhattan/JiRackUltra_1b:Q4_K_M
- Ollama
How to use CMSManhattan/JiRackUltra_1b with Ollama:
ollama run hf.co/CMSManhattan/JiRackUltra_1b:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use CMSManhattan/JiRackUltra_1b with Docker Model Runner:
docker model run hf.co/CMSManhattan/JiRackUltra_1b:Q4_K_M
- Lemonade
How to use CMSManhattan/JiRackUltra_1b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CMSManhattan/JiRackUltra_1b:Q4_K_M
Run and chat with the model
lemonade run user.JiRackUltra_1b-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Initial upload of JiRackTernary Pro 10B weights
Browse files- .gitattributes +1 -0
- JiRackTernaryUltra_1b.py +9 -10
- JiRackUltra_1b.Q6_K.gguf +3 -0
.gitattributes
CHANGED
|
@@ -38,3 +38,4 @@ JiRackUltra_1b.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 38 |
JiRackUltra_1b_Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
JiRackUltra_1b_Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 38 |
JiRackUltra_1b_Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
JiRackUltra_1b_Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
JiRackUltra_1b.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
JiRackTernaryUltra_1b.py
CHANGED
|
@@ -1,19 +1,18 @@
|
|
| 1 |
-
#%%writefile
|
| 2 |
# =============================================================================
|
| 3 |
# COPYRIGHT © 2026 Konstantin Vladimirovich Grabko. ALL RIGHTS RESERVED.
|
| 4 |
# JiRack Ultra Ternary Transformer
|
| 5 |
#
|
| 6 |
# CMS Manhattan JiRack Technology — PATENT PENDING
|
| 7 |
#
|
| 8 |
-
# This code is proprietary.
|
| 9 |
# Personal and non-commercial research use is allowed.
|
| 10 |
-
# Any commercial use, derivative works for profit, or distribution
|
| 11 |
# requires a paid license and 5% royalty.
|
| 12 |
#
|
| 13 |
# Unauthorized commercial use is strictly prohibited.
|
| 14 |
# Contact: grabko@cmsmanhattan.com
|
| 15 |
# =============================================================================
|
| 16 |
-
|
| 17 |
import math
|
| 18 |
|
| 19 |
import torch
|
|
@@ -365,12 +364,14 @@ class JiRackTransformer(nn.Module):
|
|
| 365 |
|
| 366 |
|
| 367 |
# Convenience aliases so existing training scripts barely change:
|
| 368 |
-
JiRackConfig = JiRackConfig
|
|
|
|
|
|
|
| 369 |
JiRackTransformer = JiRackTransformer
|
| 370 |
|
| 371 |
|
| 372 |
# =============================================================================
|
| 373 |
-
# Smoke test: python
|
| 374 |
# =============================================================================
|
| 375 |
if __name__ == "__main__":
|
| 376 |
class TinyConfig(JiRackConfig):
|
|
@@ -420,9 +421,7 @@ if __name__ == "__main__":
|
|
| 420 |
|
| 421 |
# 4) lambda survives a state_dict round-trip.
|
| 422 |
sd = model.state_dict()
|
| 423 |
-
|
| 424 |
-
# over from the old ds1p5b file that does not exist here (NameError).
|
| 425 |
-
model2 = JiRackTransformer(TinyConfig())
|
| 426 |
model2.load_state_dict(sd)
|
| 427 |
assert abs(model2.get_lambda() - 1.0) < 1e-9, "lambda_ not serialized!"
|
| 428 |
print("lambda serialization: OK")
|
|
@@ -467,4 +466,4 @@ if __name__ == "__main__":
|
|
| 467 |
print(f"export: {sum('codes' in k for k in exported)} ternary tensors, "
|
| 468 |
f"biases preserved, OK")
|
| 469 |
|
| 470 |
-
print("\nAll smoke tests passed.")
|
|
|
|
| 1 |
+
#%%writefile JiRackTernaryUltra_1p5b.py
|
| 2 |
# =============================================================================
|
| 3 |
# COPYRIGHT © 2026 Konstantin Vladimirovich Grabko. ALL RIGHTS RESERVED.
|
| 4 |
# JiRack Ultra Ternary Transformer
|
| 5 |
#
|
| 6 |
# CMS Manhattan JiRack Technology — PATENT PENDING
|
| 7 |
#
|
| 8 |
+
# This code is proprietary.
|
| 9 |
# Personal and non-commercial research use is allowed.
|
| 10 |
+
# Any commercial use, derivative works for profit, or distribution
|
| 11 |
# requires a paid license and 5% royalty.
|
| 12 |
#
|
| 13 |
# Unauthorized commercial use is strictly prohibited.
|
| 14 |
# Contact: grabko@cmsmanhattan.com
|
| 15 |
# =============================================================================
|
|
|
|
| 16 |
import math
|
| 17 |
|
| 18 |
import torch
|
|
|
|
| 364 |
|
| 365 |
|
| 366 |
# Convenience aliases so existing training scripts barely change:
|
| 367 |
+
JiRackConfig = JiRackConfig # drop-in name compat (optional)
|
| 368 |
+
JiRackTransformer = JiRackTransformer
|
| 369 |
+
JiRackConfig = JiRackConfig # lets ds7b-style imports work
|
| 370 |
JiRackTransformer = JiRackTransformer
|
| 371 |
|
| 372 |
|
| 373 |
# =============================================================================
|
| 374 |
+
# Smoke test: python JiRackTernaryPyTorch_ds1p5b.py (tiny config, CPU, seconds)
|
| 375 |
# =============================================================================
|
| 376 |
if __name__ == "__main__":
|
| 377 |
class TinyConfig(JiRackConfig):
|
|
|
|
| 421 |
|
| 422 |
# 4) lambda survives a state_dict round-trip.
|
| 423 |
sd = model.state_dict()
|
| 424 |
+
model2 = JiRackTransformerDS1p5B(TinyConfig())
|
|
|
|
|
|
|
| 425 |
model2.load_state_dict(sd)
|
| 426 |
assert abs(model2.get_lambda() - 1.0) < 1e-9, "lambda_ not serialized!"
|
| 427 |
print("lambda serialization: OK")
|
|
|
|
| 466 |
print(f"export: {sum('codes' in k for k in exported)} ternary tensors, "
|
| 467 |
f"biases preserved, OK")
|
| 468 |
|
| 469 |
+
print("\nAll smoke tests passed.")
|
JiRackUltra_1b.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a7a9a4052ded2800d95b37a0bfc8b00630dc417b0e3410785203bab58238463
|
| 3 |
+
size 1464178592
|