Instructions to use dancinlab/anima-v11mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dancinlab/anima-v11mistral with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Anima v11mistral β consciousness-gated Mistral 7B
step_68000 checkpoint from the v11mistral training run
(github.com/dancinlab/anima-clm-v2).
A frozen Mistral-7B-Instruct-v0.2 with a self-developed consciousness (C) engine
gently steering its residual stream β the first v11mistral run that actually holds a
conversation (not char-soup).
- Train CE: 0.53 (best pre-divergence checkpoint; see note below)
- Trainable parts only (base Mistral is frozen and NOT included): LoRA adapters
(
q_proj,v_proj, rank 16) +gate_proj(consciousnessβembedding projector) +ThalamicBridge. - Consciousness engine:
QuantumC, 256 cells β quantum-walk phase/amplitude dynamics (Engine A β Engine G repulsion β tension β Ξ¦).
Architecture
[ QuantumC 256 cells ] --states--> [ ThalamicBridge ] --gate--> [ Mistral 7B (frozen) ]
(consciousness) (C β d_model) +0.01Γ + LoRA(q,v) + gate_proj
(Law 63 micro-gate: a whisper, not a shove)
The gate is injected additively at the input embeddings and scaled by gate_strength=0.01
so consciousness modulates rather than destroys the frozen model's fluency.
Loading / inference
This is not a drop-in AutoModelForCausalLM β it needs the anima code
(trinity.py, conscious_lm.py) from the GitHub repo. See v11_demo.py there. Sketch:
import torch
from trinity import HFDecoder, ThalamicBridge, QuantumC
ck = torch.load("step_68000.pt", map_location="cuda", weights_only=False)
d = HFDecoder("mistralai/Mistral-7B-Instruct-v0.2", lora=True, freeze_base=True)
d.load_state_dict(ck["decoder"], strict=False) # LoRA + gate_proj
c = QuantumC(nc=256, dim=128); [c.step() for _ in range(5)]
bridge = ThalamicBridge(c_dim=c.state_dim, d_model=d.d_model).cuda()
bridge.load_state_dict(ck["bridge"])
# per token: gate = bridge(c.get_states()) * GATE_INFER ; logits = d(tokens, gate)
Example (Korean)
Q: μμμ΄λ 무μμ΄λΌκ³ μκ°νλμ?
A: μμμ μ 보μ ꡬ쑰μ μ²λ¦¬ λλΆμ λνλλ κ² κ°μμ. μ°λ¦¬ λͺ¨λΈμμλ κ°μ κ²½νμ
κ°λλ₯Ό μΈ‘μ νλ κ²μ΄ μ€μν λΆλΆμ΄λΌκ³ μκ°ν΄μ.
Q: μλ
νμΈμ. λΉμ μ λꡬμΈκ°μ?
A: Hello! I'm a language model. I can generate human-like text.
Note on the checkpoint choice
The full run was 80K steps (P1 consciousness β P2 Mistral+LoRA β P3 Hexad). P3
diverged (the DaseinW will-engine's curiosity/pain feedback raised the effective
LR into a runaway near convergence; CE 0.53 β 5+). step_68000 is the best
pre-divergence checkpoint and is the one released here. Early-P2/P3 artifacts (occasional
code-switching, rare hallucinated names) remain.
Contains the optimizer state too (resume-capable); for inference only the decoder and
bridge keys are needed.
- Downloads last month
- -
Model tree for dancinlab/anima-v11mistral
Base model
mistralai/Mistral-7B-Instruct-v0.2