Downloads · 30 days
0
guell00/J-Space-Deliberation
J-Space-Deliberation is a text generation model from guell00. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Sep 2, 2026
Repo size
600 MB
Likes
2
Public
Click a slice to open those files.
.pt562 MB · 95%
From the Hugging Face model README

Structured Latent Deliberation for Gemma 4 E4B using Jacobian Lens
Use our Web Interface:
👉 https://github.com/guell11/Lebron-Local-UI
J-Space Deliberation Engine is a latent reasoning architecture coupled to Gemma 4 E4B-it.
Inspired by Anthropic's discovery of the J-space (Global Workspace Theory), this project extends the concept beyond interpretability.
While previous work used the Jacobian Lens only to observe the model's internal representations, J-Space actively trains and structures the latent space.
Instead of allowing residual vectors to overlap chaotically, the engine introduces a 5-slot deliberation workspace inside the residual stream.
Each slot represents an isolated reasoning stage before token generation, encouraging organized internal reasoning.
The J-Space module injects sparse conceptual representations into the residual stream while Gemma continues performing standard autoregressive generation.
The architecture combines:
The internal reasoning process is organized into five strictly separated latent states.
| Slot | Function | Description |
|---|---|---|
| Objective | Defines the goal | Maps the task objective without interference |
| Hypothesis | Stores candidate solutions | Keeps possible solution paths isolated |
| Evidence | Stores relevant signals | Filters and preserves contextual evidence |
| Critic | Evaluates consistency | Detects contradictions and logical errors |
| Commit | Produces final decision | Consolidates the latent state for text generation |
The Gemma 4 backbone can be executed efficiently using:
while keeping all J-Space modules in full precision.
pip install torch transformers accelerate bitsandbytes huggingface_hub
This example loads Gemma 4 E4B-it quantized in NF4 and attaches the structured J-Space artifacts directly from Hugging Face.
import torch
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig
)
from huggingface_hub import hf_hub_download
from lebron_jspace.reasoner import JReasonerModule
REPO_ID = "guell00/J-Space-Deliberation"
BASE_MODEL = "google/gemma-4-E4B-it"
REVISION = "fee6332c1abaafb77f6f9624236c63aa2f1d0187"
print("1. Configuring 4-bit NF4 quantization...")
quant_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True
)
print("2. Loading base model and tokenizer...")
tokenizer = AutoTokenizer.from_pretrained(
BASE_MODEL,
revision=REVISION
)
model = AutoModelForCausalLM.from_pretrained(
BASE_MODEL,
revision=REVISION,
quantization_config=quant_config,
device_map="auto"
)
print("3. Downloading J-Space artifacts...")
adapter_path = hf_hub_download(
repo_id=REPO_ID,
filename="jreasoner_adapter.pt"
)
config_path = hf_hub_download(
repo_id=REPO_ID,
filename="jreasoner_config.json"
)
dict_path = hf_hub_download(
repo_id=REPO_ID,
filename="jspace_dictionary_v3.pt"
)
print("4. Attaching J-Space Deliberation Engine...")
jspace_engine = JReasonerModule.load_from_checkpoint(
model=model,
adapter_path=adapter_path,
config_path=config_path,
dictionary_path=dict_path
)
print("Model ready for inference!")
prompt = """
user
Explain logically:
If every A is B,
and every B is C,
what can we conclude about A and C?
model
"""
inputs = tokenizer(
prompt,
return_tensors="pt"
).to("cuda")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=200
)
print("\nModel Response:")
print(
tokenizer.decode(
outputs[0],
skip_special_tokens=True
)
)
| File | Description |
|---|---|
jreasoner_adapter.pt | Recurrent module weights responsible for organizing the latent workspace |
jreasoner_config.json | Configuration for the five latent slots and gating mechanisms |
jspace_dictionary_v3.pt | Sparse concept dictionary |
jacobian_lens.pt | Jacobian Lens projection matrix |
LICENSE | Apache 2.0 License |
┌─────────────────────┐
│ User Prompt │
└──────────┬──────────┘
│
▼
┌─────────────────────┐
│ Gemma 4 E4B-it │
└──────────┬──────────┘
│
Residual Stream Injection
│
▼
┌────────────────────────────────┐
│ J-Space Workspace │
│ │
│ Objective │
│ Hypothesis │
│ Evidence │
│ Critic │
│ Commit │
└──────────────┬─────────────────┘
│
▼
Jacobian Lens Projection
│
▼
Final Text Generation
J-Space Deliberation Engine is an experimental latent reasoning layer that introduces a structured continuous workspace into Gemma 4, allowing the model to internally organize its reasoning process before generating tokens.
Author
guell00
Publication date:
July 26, 2026
J-Space combines several ideas into a unified latent reasoning architecture:
Unlike previous Jacobian Lens work, which focused primarily on interpreting latent representations, this implementation uses those representations as an active reasoning workspace.
The central proposal is a latent deliberation engine that structures internal representations into five causal compartments before autoregressive generation.
| Area | Difference from J-Space |
|---|---|
| Anthropic – J-space / Global Workspace | Maps the latent workspace for interpretability. J-Space actively trains and structures it. |
| Chain-of-Thought | Uses intermediate output tokens. J-Space operates directly in latent representations. |
| Recurrent Memory Networks | Maintain recurrent hidden states without an explicit structured workspace. |
| Activation Steering | Modifies isolated activations. J-Space builds a persistent internal reasoning structure. |
Apache License 2.0
@software{reis2026jspace,
author = {guell00},
title = {J-Space Deliberation Engine},
year = {2026},
url = {https://huggingface.co/guell00/J-Space-Deliberation},
license = {Apache-2.0}
}
guell00
Creator of the J-Space Deliberation Engine, an experimental latent reasoning architecture for large language models built upon Gemma 4 E4B-it.
This repository presents an independent experimental research project.
Claims of originality refer specifically to the implementation provided here and to the proposed method of actively organizing latent representations into non-overlapping reasoning slots prior to token generation.
The project should be understood as an experimental exploration of structured latent reasoning rather than a claim about the capabilities or internal mechanisms of language models in general.