Feature Extraction
Transformers
Safetensors
English
lfm3
text-generation
scuttle
graph-search
information-retrieval
decision-model
swarm-search
mcp
custom_code
Instructions to use Multiqueue/scuttle-1.7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Multiqueue/scuttle-1.7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Multiqueue/scuttle-1.7b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Multiqueue/scuttle-1.7b", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Multiqueue/scuttle-1.7b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add 973 MB pre-packed 4-bit + 4-bit-embedding checkpoint (0.93 GiB static VRAM, ~100% BF16 accuracy, default mode)
Browse files- README.md +16 -8
- scuttle_int4.safetensors +3 -0
- scuttle_meta.json +7 -17
README.md
CHANGED
|
@@ -59,24 +59,32 @@ Trained across **4 distinct graph topologies** (255,575 documents, 543,516 edges
|
|
| 59 |
| **Wikispeedia** (Masked topics) | 448 | 37.5% → **61.2%** (+23.7, $p{<}10^{-20}$) | 24.6% → **52.2%** (+27.7) | **121 / 280 (43.2%)** |
|
| 60 |
| **Combined** | **1,049** | **48.5% → 62.6% (+14.1 pts)** | **31.1% → 47.3% (+16.2 pts)** | **210 / 540 (38.9%)** |
|
| 61 |
|
| 62 |
-
### Low-VRAM Quantization (BF16
|
|
|
|
|
|
|
| 63 |
|
| 64 |
| Precision | Static VRAM | Peak VRAM (100-link) | 60-Flag CTF | Retention | Latency / Run | Page AUC / F1 |
|
| 65 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 66 |
-
| **BF16** | 3.22 GiB | 3.99 GiB | 45 / 60 (75.0%) | 100.0% | 1,491 ms | 0.9546 / 0.7379 |
|
| 67 |
-
| **8-bit** (`LLM.int8
|
| 68 |
-
| **4-bit NF4**
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
## Quickstart
|
| 71 |
|
|
|
|
|
|
|
| 72 |
```bash
|
| 73 |
-
pip install "scuttle-search
|
| 74 |
|
| 75 |
# Index any folder of Markdown/HTML/text files into a graph:
|
| 76 |
scuttle index ./my-vault -o vault.json.gz
|
| 77 |
|
| 78 |
-
# Run a
|
| 79 |
-
scuttle search --graph vault.json.gz --query "your question here"
|
| 80 |
```
|
| 81 |
|
| 82 |
### MCP Server for AI Agents
|
|
@@ -86,7 +94,7 @@ scuttle search --graph vault.json.gz --query "your question here" --quant 4bit
|
|
| 86 |
"mcpServers": {
|
| 87 |
"scuttle": {
|
| 88 |
"command": "scuttle-mcp",
|
| 89 |
-
"args": ["--
|
| 90 |
}
|
| 91 |
}
|
| 92 |
}
|
|
|
|
| 59 |
| **Wikispeedia** (Masked topics) | 448 | 37.5% → **61.2%** (+23.7, $p{<}10^{-20}$) | 24.6% → **52.2%** (+27.7) | **121 / 280 (43.2%)** |
|
| 60 |
| **Combined** | **1,049** | **48.5% → 62.6% (+14.1 pts)** | **31.1% → 47.3% (+16.2 pts)** | **210 / 540 (38.9%)** |
|
| 61 |
|
| 62 |
+
### Low-VRAM Quantization (BF16 Down to 2-Bit PTQ)
|
| 63 |
+
|
| 64 |
+
Because Scuttle performs zero autoregressive decoding (pure single-pass prefill), packing both all Linear weights **and** the 128k-vocab embedding table into pure-PyTorch group-64 4-bit tensors (`scuttle_int4.safetensors`, **973 MB**) cuts static VRAM by **3.5×** (**3.22 → 0.93 GiB**), loads directly in **1.66 s** with **zero `bitsandbytes` dependency**, and retains **~100% of BF16 accuracy** while running slightly faster than BF16:
|
| 65 |
|
| 66 |
| Precision | Static VRAM | Peak VRAM (100-link) | 60-Flag CTF | Retention | Latency / Run | Page AUC / F1 |
|
| 67 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 68 |
+
| **BF16** (`model.safetensors`, 3.46 GB) | 3.22 GiB | 3.99 GiB | 45 / 60 (75.0%) | 100.0% | 1,491 ms | 0.9546 / 0.7379 |
|
| 69 |
+
| **8-bit** (`bitsandbytes` LLM.int8) | 2.40 GiB | 3.89 GiB | 44 / 60 (73.3%) | 97.8% | 1,905 ms | 0.9565 / 0.7475 |
|
| 70 |
+
| **4-bit NF4** (`bitsandbytes`, BF16 emb) | 1.70 GiB | 3.02 GiB | 45 / 60 (75.0%) | 100.0% | 1,564 ms | 0.9534 / 0.7523 |
|
| 71 |
+
| **4-bit Packed + 4-bit Emb (`default`, 973 MB)** | **0.93 GiB** | **1.70 GiB** | **46 / 60 (76.7%)** | **~100%** *(102.2%)* | **1,423 ms** | **0.9545 / 0.7475** |
|
| 72 |
+
| **3-bit HQQ (g64) + 4-bit Emb** *(PTQ cliff)* | 0.76 GiB | 1.53 GiB | 36 / 60 (60.0%) | 80.0% | 2,508 ms | 0.9439 / 0.7071 |
|
| 73 |
+
| **Mixed 2-bit MLP + 4-bit Attn/Conv + 4-bit Emb** | 0.67 GiB | 1.48 GiB | 17 / 60 (28.3%) | 37.8% | 2,684 ms | 0.8421 / 0.0000 |
|
| 74 |
+
| **2-bit HQQ (g32 / g64) + 4-bit Emb** | 0.68 / 0.60 GiB | 1.43 / 1.34 GiB | 7 / 6 of 60 | 15.6 / 13.3% | 2,866 / 2,225 ms | 0.59 / 0.31 / 0.00 |
|
| 75 |
|
| 76 |
## Quickstart
|
| 77 |
|
| 78 |
+
No `bitsandbytes` or custom CUDA kernels needed — `4bit` (**0.93 GiB static VRAM, 973 MB download**) is the built-in default:
|
| 79 |
+
|
| 80 |
```bash
|
| 81 |
+
pip install "scuttle-search @ git+https://github.com/MLTQ/scuttle.git"
|
| 82 |
|
| 83 |
# Index any folder of Markdown/HTML/text files into a graph:
|
| 84 |
scuttle index ./my-vault -o vault.json.gz
|
| 85 |
|
| 86 |
+
# Run a swarm search (defaults to 0.93 GiB packed 4-bit; pass --quant bf16 for full BF16):
|
| 87 |
+
scuttle search --graph vault.json.gz --query "your question here"
|
| 88 |
```
|
| 89 |
|
| 90 |
### MCP Server for AI Agents
|
|
|
|
| 94 |
"mcpServers": {
|
| 95 |
"scuttle": {
|
| 96 |
"command": "scuttle-mcp",
|
| 97 |
+
"args": ["--idle-offload", "120", "--graphs", "/path/to/graphs"]
|
| 98 |
}
|
| 99 |
}
|
| 100 |
}
|
scuttle_int4.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:406fc61c6f1e2447aa60e172d988bdda496e9932df96c5fe9fc167ed95aaf81f
|
| 3 |
+
size 973068048
|
scuttle_meta.json
CHANGED
|
@@ -1,25 +1,15 @@
|
|
| 1 |
{
|
| 2 |
"model": "Scuttle-1.7B",
|
| 3 |
-
"version": "1.
|
| 4 |
"base_backbone": "LFM3-1.7B",
|
| 5 |
"max_links": 100,
|
| 6 |
-
"thresholds": [
|
| 7 |
-
|
| 8 |
-
1,
|
| 9 |
-
2,
|
| 10 |
-
3,
|
| 11 |
-
4,
|
| 12 |
-
6
|
| 13 |
-
],
|
| 14 |
-
"abel_weights": [
|
| 15 |
-
0.5,
|
| 16 |
-
0.22,
|
| 17 |
-
0.12,
|
| 18 |
-
0.07,
|
| 19 |
-
0.05,
|
| 20 |
-
0.04
|
| 21 |
-
],
|
| 22 |
"heads_file": "scuttle_heads.pt",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"code_repo": "https://github.com/MLTQ/scuttle",
|
| 24 |
"demo_repo": "https://github.com/MLTQ/scuttle-demos"
|
| 25 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"model": "Scuttle-1.7B",
|
| 3 |
+
"version": "1.1",
|
| 4 |
"base_backbone": "LFM3-1.7B",
|
| 5 |
"max_links": 100,
|
| 6 |
+
"thresholds": [0, 1, 2, 3, 4, 6],
|
| 7 |
+
"abel_weights": [0.50, 0.22, 0.12, 0.07, 0.05, 0.04],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"heads_file": "scuttle_heads.pt",
|
| 9 |
+
"default_quant": "4bit",
|
| 10 |
+
"int4_file": "scuttle_int4.safetensors",
|
| 11 |
+
"int4_group_size": 64,
|
| 12 |
+
"int4_static_vram_gib": 0.926,
|
| 13 |
"code_repo": "https://github.com/MLTQ/scuttle",
|
| 14 |
"demo_repo": "https://github.com/MLTQ/scuttle-demos"
|
| 15 |
}
|