Downloads · 30 days
1.5K
27% of all-time downloads
Lordnyx/qwen3.5-9b-triple-loop-fase2
qwen3.5-9b-triple-loop-fase2 is a text generation model from Lordnyx. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
An advanced reasoning and agentic model based on Qwen/Qwen3.5-9B featuring LoopSplit (Triple-Loop Recurrence) and fine-tuned with Reinforcement Learning (GRPO / R1-Zero).
Downloads · 30 days
1.5K
27% of all-time downloads
All-time downloads
5.5K
Public
Parameters
9B
115 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors17.9 GB · 58%
From the Hugging Face model README
An advanced reasoning and agentic model based on Qwen/Qwen3.5-9B featuring LoopSplit (Triple-Loop Recurrence) and fine-tuned with Reinforcement Learning (GRPO / R1-Zero).
This checkpoint marks Phase 2, which introduces 30 steps of targeted Reinforcement Learning on an NVIDIA H100 SXM5 80GB GPU, sharpening tool-calling execution, structured chain-of-thought (<think>...</think>), and contrastive reasoning, while meticulously preserving the 64-layer virtual recurrent dynamics established in Phase 1.
There is often confusion regarding how recurrent layer models operate at inference time. Here is the exact architectural specification:
Physical Model (Storage & VRAM footprint):
blk.0 to blk.31).Q5_K_M).Logical Execution (The 64-Layer Virtual Loop):
┌──────────────────────────────────────────────┐
│ Middle Loop (Blocks 8..23) │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
Prompt ──> [0..7] ──>│──>│ Pass 0 │──>│ Pass 1 │──>│ Pass 2 │─│──> [24..31] ──> Logits
(Prefix, 1x) │ │ (Hypo) │ │ (Reflect)│ │ (Synth) │ │ (Suffix, 1x)
│ └──────────┘ └──────────┘ └──────────┘ │
│ ▲ ▲ ▲ │
│ └──────────────┴──────────────┘ │
│ Shared Weights in Memory │
└──────────────────────────────────────────────┘
engine/llamacpp_patch/ or native LoopSplit engines using --override-kv qwen35.triple_loop=int:1.
TENSOR_DUPLICATED (zero extra VRAM required for weights).We inspected the internal entropy and latent vector velocity ($\Delta h / h$) across an ambiguous distributed systems prompt:
| Stage | Logical Layers | Latent Velocity ($\Delta h / h$) | Output Entropy | Dominant State / Cognitive Behavior |
|---|---|---|---|---|
| Prefix | 0 – 7 | — | 10.90 | High uncertainty; parses token syntax and query scope. |
| Middle Loop $r_0$ | 8 – 23 | +692% | 5.39 | Hypothesis Formation: Rapidly isolates initial candidate answer ('We' @ 42.0%). |
| Middle Loop $r_1$ | 24 – 39 | +22.6% | 8.65 | Critical Reflection & Doubt: Detects ambiguity, decomposes trade-offs ('Thinking' rises to 7.9%, hypothesis certainty drops to 13.9%). |
| Middle Loop $r_2$ | 40 – 55 | +24.7% | 6.27 | Synthesis & Resolution: Re-converges with structured rationale ('We' recovers to 30.0%). |
| Suffix | 56 – 63 | +119.2% | 0.61 | Decisive Projection: Final collapse into decisive output token ('We' @ 88.6%). |
We believe in complete transparency regarding training depth and parameters:
<tool_call> schema adherence, XML encapsulation, and CoT reasoning discipline.Layer-by-layer weight cosine similarity and relative Euclidean shift ($\Delta W / W$) confirm that representations were preserved:
1.22% | Cosine Similarity: 0.999921.17% | Cosine Similarity: 0.999931.21% | Cosine Similarity: 0.99992output.weight): Drift: 0.10% | Cosine Similarity: 0.9999995Over 98.8% of the Phase 1 weight geometry remains intact, while tool-calling fidelity and reasoning stability are noticeably sharper.
model.safetensors — Full precision bfloat16 Hugging Face weights (~17.9 GB, 32 physical layers, mtp_num_hidden_layers: 0).config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja — Full tokenizer & config files.qwen35-9b-triple-loop-fase2-step30-Q5_K_M.gguf — Quantized GGUF (Q5_K_M, ~6.02 GB, exact 32-block count for seamless patch execution).engine/llamacpp_patch/ — Source patch and instructions to compile/run 64-layer Triple-Loop in llama.cpp.llama.cpp (Recommended)Apply the patch provided in engine/llamacpp_patch/ to llama.cpp (commit 53ed051ce) and build:
# Start server with 64 logical layers and full GPU offload:
llama-server -m qwen35-9b-triple-loop-fase2-step30-Q5_K_M.gguf \
--override-kv qwen35.triple_loop=int:1 \
-ngl 99 -c 32768 --port 8080 -fa 1 \
--cache-type-k q8_0 --cache-type-v q8_0
Verify in server console:
qwen35: triple-loop enabled: 32 physical blocks -> 64 logical layers
llama.cpp or vLLM)llama-server -m qwen35-9b-triple-loop-fase2-step30-Q5_K_M.gguf \
-ngl 99 -c 32768 --port 8080
0.60.95401.08The model supports function calling via XML encapsulation:
<|im_start|>system
# Tools
You have access to the following functions:
<tools>
{"name": "bash", "description": "Execute bash commands", "parameters": {"properties": {"command": {"type": "string"}}, "required": ["command"], "type": "object"}}
</tools>
<|im_end|>
<|im_start|>user
List the files in the directory.<|im_end|>
<|im_start|>assistant
<think>
The user wants to inspect current directory contents. I should invoke the bash tool with 'ls -la'.
</think>
<tool_call>
<function=bash>
<parameter=command>
ls -la
</parameter>
</function>
</tool_call><|im_end|>