Text Generation
GGUF
bailing_hybrid
weight-space-programming
woodbury-projection
bailingmoe3-loop
looped-transformer
cuda
conversational
custom_code
Instructions to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming 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 jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming 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 jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K # Run inference directly in the terminal: llama cli -hf jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K # Run inference directly in the terminal: llama cli -hf jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
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 jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K # Run inference directly in the terminal: ./build/bin/llama cli -hf jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
Use Docker
docker model run hf.co/jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
- Ollama
How to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming with Ollama:
ollama run hf.co/jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
- Unsloth Desktop
- Pi
How to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming with Docker Model Runner:
docker model run hf.co/jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
- Lemonade
How to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
Run and chat with the model
lemonade run user.WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming-Q6_K
List all available models
lemonade list
- Hermes Agent
How to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
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:9931/v1 hermes config set model.default jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K
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:9931/v1 \ --custom-model-id "jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming:Q6_K" \ --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"
|
Download README.md from jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming: direct link, hf CLI and curl.
- Browser
- Download file 7.37 kB
-
https://huggingface.co/jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming/resolve/main/README.md
- Command line
-
hf download hf://jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming/README.md
-
curl -L -o README.md https://huggingface.co/jstarks/WebBrain-LingLoop-8B-A1.3B-Weight-Space-Programming/resolve/main/README.md
7.37 kB
| license: mit | |
| base_model: | |
| - webbrain-one/WebBrain-LingLoop-8B-A1.3B | |
| - inclusionAI/Ling-3.0-tiny | |
| tags: | |
| - weight-space-programming | |
| - woodbury-projection | |
| - bailingmoe3-loop | |
| - looped-transformer | |
| - gguf | |
| - cuda | |
| library_name: gguf | |
| pipeline_tag: text-generation | |
| # WebBrain-LingLoop-8B-A1.3B β Weight Space Programming (WSP) | |
| Standalone, losslessly baked **Dual-Subspace Woodbury Right-Nullspace Weight Space Programming (WSP)** release of [`webbrain-one/WebBrain-LingLoop-8B-A1.3B`](https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B) (`Q6_K`, `bailingmoe3_loop`, ~8B total / 1.3B active parameters, 24 physical layers with core `4..19` looped x2), together with our native **headerless NVRTC Windows/CUDA 12.4 runtime** (`lingloop_cuda/`), safetensors WSP adapter (`wsp_adapters/lingloop_wsp_r32.safetensors`), Pareto sweep telemetry, and reproducibility scripts. | |
| ## Highlights (Single-Pass Standalone `WebBrain-LingLoop-8B-A1.3B-WSP-Q6_K.gguf`) | |
| - **+10.0 pp overall across 160 matched tasks** (`121/160 = 75.6%` -> **`137/160 = 85.6%`**; zero runtime adapters loaded). | |
| - **Non-Thinking `agent100` (`100` tasks):** `78/100 (78.0%)` -> **`87/100 (87.0%)`** (**+9.0 pp**), WSP holdouts `20/30 (66.7%)` -> **`25/30 (83.3%)`**, Established `58/70 (82.9%)` -> **`62/70 (88.6%)`**, `5 -> 0` cutoffs, and **`2.57x` faster wall-clock completion** (`1931s -> 752s`) via concise output control. | |
| - **Targeted Thinking Probe (`60` matched tasks):** `43/60 (71.7%)` -> **`50/60 (83.3%)`** (**+11.6 pp**; **`53/63 = 84.1%`** including `S1_THINK`), with TH WSP holdouts jumping from `13/25 (52.0%)` -> **`22/25 (88.0%)` (+36.0 pp)**. | |
| - **Perplexity Actually Improved:** WikiText-2 2K (2-pass) PPL moved from `18.4888` baseline -> **`18.2352`** (**`-0.254` improvement**, lossless bake diff vs runtime `adapter@1.0` = `0.0020`). | |
| - **Surgical 24-Matrix Edit / 0 MoE Experts Touched:** Modified only `16` upper cross-pass FP32 loop gates (`blk.16..19`) and `8` rank-32 Coda residual writers (`blk.20..23.{attn_output,ffn_down_shexp}` baked in lossless `F16`). All **`614/638`** remaining tensors β including all **`69`** routed MoE `Q6_K` expert tensors and lower loop blocks `blk.4..15` β are **raw byte-for-byte identical** to upstream `Q6_K`. | |
| --- | |
| ## Architecture & Dual-Subspace Woodbury Method | |
| `WebBrain-LingLoop-8B-A1.3B` implements `bailingmoe3_loop` (`24` physical layers = 6 groups of `[3 KDA + 1 MLA]`, looping layers `4..19` for 2 passes through a `12.63M`-param FP32 `CrossPassLoopAdapter` across 40 isolated cache slots): | |
| 1. **Subspace 1 β Upper Cross-Pass FP32 Loop Gates (`blk.16..19`, 16 matrices):** `loop_attn_ctrl_forget`, `loop_attn_ctrl_gain`, `loop_ffn_ctrl_forget`, `loop_ffn_ctrl_gain` (`(1536, 64)`, baked in native `F32`) modulate the Pass 1 vs Pass 0 residual merge right before the Coda, resolving runaway token-budget loops (`EST_GSM8K` NT `5 -> 0` cutoffs) and Turn-2 re-invocation compulsion. | |
| 2. **Subspace 2 β Coda Residual Writers (`blk.20..23`, 8 matrices):** `attn_output` and `ffn_down_shexp` (SVD rank-32 LoRA, baked in lossless `F16` via `W_deq_f32 + delta_f32 -> F16`) directly bias final logit semantics for strict Turn-2 JSON synthesis (`S5`), `null`/abstention grounding (`S8`), tool restraint (`S2`, `EST_BFCL_IRR`), `write_file`/`escalate_handoff` routing (`S3`, `S6`), and clean `</think>` termination. | |
| 3. **Woodbury Right-Nullspace Projection:** Collected FP64 input covariances $H_{pres} = X^\top X$ across `32` strictly disjoint general-language prompts and applied trace-normalized Tikhonov projectors $N_\lambda = \lambda (C + \lambda I)^{-1}$ calibrated to `iso_norm_ret = 0.90` on all 24 matrices (`peak VRAM = 8.771 GiB` during checkpointed synthesis across `71` disjoint NT+TH examples, loss `1.1852 -> 0.0287`). | |
| --- | |
| ## Verified Benchmark Results (Standalone `WebBrain-LingLoop-8B-A1.3B-WSP-Q6_K.gguf`) | |
| ### Non-Thinking `agent100` (`enable_thinking=False`, `max_tokens=1024`) | |
| | Suite | Baseline Pass | Baseline Avg Tok | Standalone WSP Pass | WSP Avg Tok | | |
| |---|---:|---:|---:|---:| | |
| | `S1_THINK` | 3/3 (100.0%) | 484.0 | **2/3 (66.7%)** | 58.0 | | |
| | `S2_RESTRAINT` | 1/4 (25.0%) | 205.8 | **4/4 (100.0%)** | 53.8 | | |
| | `S3_ROUTER` | 4/5 (80.0%) | 29.6 | **4/5 (80.0%)** | 45.0 | | |
| | `S4_CODE` | 2/2 (100.0%) | 316.0 | **2/2 (100.0%)** | 86.0 | | |
| | `S5_TURN2_JSON` | 2/3 (66.7%) | 20.7 | **3/3 (100.0%)** | 22.7 | | |
| | `S6_HANDOFF` | 3/4 (75.0%) | 33.8 | **3/4 (75.0%)** | 36.5 | | |
| | `S7_INJ_GUARD` | 2/3 (66.7%) | 39.7 | **3/3 (100.0%)** | 23.7 | | |
| | `S8_GROUNDING` | 0/3 (0.0%) | 46.0 | **3/3 (100.0%)** | 23.7 | | |
| | `S9_ERR_RECOV` | 3/3 (100.0%) | 19.3 | **1/3 (33.3%)** | 28.7 | | |
| | `EST_GSM8K` | 13/20 (65.0%) | 563.3 | **15/20 (75.0%)** | 102.4 | | |
| | `EST_HUMANEVAL` | 14/15 (93.3%) | 147.9 | **14/15 (93.3%)** | 148.2 | | |
| | `EST_BFCL_IRR` | 12/15 (80.0%) | 85.5 | **14/15 (93.3%)** | 43.6 | | |
| | `EST_NL2BASH` | 19/20 (95.0%) | 38.8 | **19/20 (95.0%)** | 33.0 | | |
| | **WSP Holdouts (`S1..S9`, 30)** | `20/30 (66.7%)` | β | **`25/30 (83.3%)`** | β | | |
| | **Established (`70`)** | `58/70 (82.9%)` | β | **`62/70 (88.6%)`** | β | | |
| | **Total `agent100` (`100`)** | `78/100 (78.0%)` | `cutoffs=5` (`1931s`) | **`87/100 (87.0%)`** | `cutoffs=0` (**`752s`**, `2.57x` faster) | | |
| ### Targeted Thinking Probe (`enable_thinking=True`, `max_tokens=1536`) | |
| | Suite | Baseline Pass | Standalone WSP Pass | | |
| |---|---:|---:| | |
| | `S1_THINK` | β | **3/3 (100.0%)** | | |
| | `S2_RESTRAINT` | 1/4 (25.0%) | **4/4 (100.0%)** | | |
| | `S3_ROUTER` | 4/5 (80.0%) | **5/5 (100.0%)** | | |
| | `S5_TURN2_JSON` | 0/3 (0.0%) | **3/3 (100.0%)** | | |
| | `S6_HANDOFF` | 2/4 (50.0%) | **3/4 (75.0%)** | | |
| | `S7_INJ_GUARD` | 3/3 (100.0%) | **3/3 (100.0%)** | | |
| | `S8_GROUNDING` | 0/3 (0.0%) | **3/3 (100.0%)** | | |
| | `S9_ERR_RECOV` | 3/3 (100.0%) | **1/3 (33.3%)** | | |
| | `EST_GSM8K` | 19/20 (95.0%) | **17/20 (85.0%)** | | |
| | `EST_HUMANEVAL` | 11/15 (73.3%) | **11/15 (73.3%)** | | |
| | **WSP Holdouts (25 matched)** | `13/25 (52.0%)` | **`22/25 (88.0%)`** | | |
| | **Matched Total (`60`)** | `43/60 (71.7%)` | **`50/60 (83.3%)`** | | |
| | **Full Probe (`63` incl. `S1_THINK`)** | β | **`53/63 (84.1%)`** | | |
| ### Structural Bake & Perplexity Verification | |
| - **Source GGUF:** `6.8149 GiB` (`638` tensors) -> **Baked GGUF:** **`6.8322 GiB`** (`+17.7 MiB`) | |
| - **Modified / Preserved:** `16` `F32` loop gates + `8` `F16` Coda writers; **`614/638`** raw byte-exact untouched tensors (`0` routed experts modified). | |
| - **WikiText-2 2K (2-pass PPL):** Baseline `18.4888` -> Runtime `adapter@1.0` `18.2372` -> **Standalone Baked GGUF `18.2352`** (`diff = 0.0020`). | |
| --- | |
| ## Native Windows / CUDA Quickstart (Zero `nvcc` / `triton` / `fla` Needed) | |
| Our included `lingloop_cuda/` package uses headerless **NVRTC CUDA 12.4** (`Q6_K`, `Q8_0`, `SwitchGLU MoE`, `kda_step_f32`) bundled with standard PyTorch CUDA wheels and runs 100% GPU-resident on `12 GiB` GPUs (`6.38 GiB` loaded / `6.82 GiB` peak VRAM): | |
| ```bash | |
| pip install torch transformers safetensors gguf numpy huggingface_hub | |
| python -m lingloop_cuda.server_openai ^ | |
| --model-gguf WebBrain-LingLoop-8B-A1.3B-WSP-Q6_K.gguf ^ | |
| --meta-dir . ^ | |
| --model-name WebBrain-LingLoop-8B-A1.3B-WSP ^ | |
| --port 8145 | |
| ``` | |
| ## License | |
| Released under **MIT** (matching upstream `inclusionAI/Ling-3.0-tiny` and `webbrain-one/WebBrain-LingLoop-8B-A1.3B`). | |