AGA.FWI - An experimental framework with fast weight injection
2 min readupdated
AGA.FWI (Autonomous GOD Agent-From With In) by WithIn Us AI is a compact 11-million-parameter decoder-only transformer model built from scratch to showcase advanced architectural approaches. The main feature of the model is a combination of a closed reasoning core (CoT Planning Core) and open weights capable of instantly fine-tuning right during a conversation via fast weight injection (FWI) layers. This system allows the model to adapt to new information on the fly without a full retrain.
Key features
- Closed CoT core: A fixed portion of parameters handles multi-step planning and logical reasoning chains.
- Instant knowledge injection: Associative FWI layers update the state on every token, allowing the model to remember conversation context.
- Open weight growth: The architecture supports dynamic adapter expansion via the
model.grow()method when new data appears. - Hybrid memory: Associative memory blocks and a hypothesis verifier help check decisions more accurately.
What you can do
- Architecture testing: Run the model locally using transformers and custom code to test logic tasks.
- On-the-fly learning: Use the
learn_from_interaction()method for instant model adaptation to custom dialogues. - CoT exploration: Study how the built-in reasoning template works with
,, andtags.
Example
from transformers import AutoTokenizer
from modeling_agafwi import AGAFWIConfig, AGAFWIForCausalLM
tok = AutoTokenizer.from_pretrained("11-47/AGA.FWI")
model = AGAFWIForCausalLM.from_pretrained("11-47/AGA.FWI", trust_remote_code=True)
model.freeze_closed_off_modules()
result = model.solve("A train travels 120 miles at 60 mph...", tokenizer=tok)
print(result["think"], result["reasoning"], result["answer"])Read more
DetailsTotal parameters: ~11.2M (of which 1.03M are frozen in the CoT core)
Tokenizer: Custom ByteLevel-BPE with 6,400 tokens
Limitations: The model is an architectural demonstration rather than a general-purpose assistant, results require verification










Comments