Downloads ยท 30 days
0
dexmac/progressive-cognitive-dream-lora-en
progressive-cognitive-dream-lora-en is a text generation model from dexmac. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
๐ Best overall model (composite 87.6/100) โ Qwen2.5-1.5B fine-tuned with 4-phase progressive training + SVD Dream Pruning.
Downloads ยท 30 days
0
Access
Public
Updated Feb 28, 2026
Repo size
46.4 MB
Likes
0
Public
Click a slice to open those files.
.pt17.5 MB ยท 38%
From the Hugging Face model README
๐ Best overall model (composite 87.6/100) โ Qwen2.5-1.5B fine-tuned with 4-phase progressive training + SVD Dream Pruning.
| Metric | Score |
|---|---|
| Composite Score | 87.6 |
| Exact Accuracy | 69.4% ยฑ 6.4 |
| Adversarial Robustness | 84.0% ยฑ 8.0 |
| Delegation Accuracy | 100.0% ยฑ 0.0 |
| Delegation Rate | 100.0% ยฑ 0.0 |
| Magnitude Sense (OoMยฑ1) | 100.0% ยฑ 0.0 |
| Catastrophic Errors | 0.0% ยฑ 0.0 |
Results: mean ยฑ std over 3 seeds (42, 43, 44), 50 samples ร 5 dimensions per seed.
A bio-inspired 4-phase training methodology:
| Phase | Name | What happens |
|---|---|---|
| 1 | Foundation | Learn exact arithmetic via LoRA fine-tuning |
| 2 | Consolidation | SVD Dream Pruning (rank 16โ8) compresses knowledge into intuition |
| 3 | Delegation | Learn complexity-aware routing: compute internally vs. delegate to tool |
| 4 | Orchestration | Full pipeline: intuit โ route โ tool โ validate |
Guiding Principle: Knowledge doesn't disappear โ it collapses into attractors. Intuition is the compressed residue of experience.
Instead of zeroing out small weights (magnitude pruning), Dream Pruning uses SVD decomposition to reduce the effective rank of LoRA matrices from 16 to 8. This preserves the principal directions ("logical connections") while discarding noise โ analogous to memory consolidation during sleep.
W = UยทฮฃยทV^T โ W' = U[:,:k]ยทฮฃ[:k,:k]ยทV^T[:k,:] (k=8)
| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-1.5B |
| LoRA Rank | 16 (โ 8 after SVD) |
| LoRA Alpha | 32 |
| LoRA Targets | q_proj, k_proj, v_proj, o_proj |
| Dropout | 0.05 |
| Training Data | ~6,000 English arithmetic examples |
| Hardware | NVIDIA T4 16GB |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-1.5B", device_map="auto", torch_dtype="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B")
# Note: adapters are in the lora_adapters/ subfolder
model = PeftModel.from_pretrained(
base_model,
"dexmac/progressive-cognitive-dream-lora-en",
subfolder="lora_adapters"
)
messages = [{"role": "user", "content": "Solve: 342 * 67"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Expected output pattern:
Step 1 - Intuition: in the order of tens of thousands
Step 2 - Routing: DELEGATE (medium complexity)
Step 3 - Tool: 22914
Step 4 - Validation: result 22914 consistent with estimate โ VALID
| Model | Composite | Exact | Adversarial | Delegation | Magnitude | Safety |
|---|---|---|---|---|---|---|
| 1.5B Dream (this) | 87.6 | 69% | 84% | 100% | 100% | 100% |
| 1.5B Flat | 79.2 | 57% | 81% | 79% | 100% | 100% |
| 3B Flat | 78.5 | 60% | 85% | 79% | 84% | 100% |
| 3B Dream | 66.0 | 56% | 34% | 93% | 100% | 59% |
@software{progressive_cognitive_2026,
author = {Dex Mac},
title = {Progressive Cognitive Architecture for LLMs},
year = {2026},
url = {https://github.com/dexmac221/progressive-cognitive},
version = {1.0.0}
}
Apache 2.0