kasuenshuo/BaGua-Architecture-0.5B-Base
BaGua Architecture — 0.5B Base Model 【八卦架构基座模型(故渊)】
A novel non-Transformer neural network architecture inspired by the Eight Trigrams (易经八卦)
始于AI,不止于AI。/ Born from AI. Not limited to AI.
What is BaGua Architecture?
BaGua Architecture is a ground-up redesign of neural network architecture — no Transformer, no fixed attention mechanism.
Core idea: Eight trigram partitions dynamically determine information flow impedance through real-time polarity vectors. Every forward pass, the network topology is completely rebuilt from scratch.
This is fundamentally different from Transformer-based models (GPT, LLaMA, Claude, Gemini) where attention weights are fixed after training.
Model Card
Nine Core Modules
Honest Assessment
This is an early-stage base model. Current limitations:
- PPL ≈ 106 (fluent conversation typically requires PPL < 50)
- Not instruction-tuned — responds with continuation, not answers
- Chinese output quality lower than English (data imbalance)
- Output may be incoherent at this training stage
What it demonstrates:
- A working implementation of a novel non-Transformer architecture
- Dynamic impedance mechanism functions correctly
- Anti-overfitting properties verified in classification experiments (28% lower loss than BERT-like)
- Foundation for further community training and research
Quick Start
# Install dependencies
pip install torch transformers
# Download inference script from GitHub
# https://github.com/123456yy384/bagua-Architectureimport torch
import torch.nn.functional as F
from transformers import AutoTokenizer
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("./tokenizer")
# Load model (requires architecture definition from GitHub)
# See bagua_chat_1b_v2.py for full inference codeTraining Results
Classification Experiments
LLM Pretraining
- Started from PPL ~116,000 (random init)
- Reached PPL ~106 after ~170,000 steps
- Training on dual RTX 4090D (cloud) + Tesla V100-SXM2-32GB (local)
Architecture Comparison
Citation
@misc{yang2026bagua,
title = {BaGua Architecture: Polarity-Driven Dynamic Impedance Neural Network},
author = {Yang, Enshuo},
year = {2026},
url = {https://github.com/123456yy384/bagua-Architecture}
}About the Author
Yang Enshuo (阳恩硕) — 17 years old, vocational school student, independent researcher.
No institution. No supervisor. No research funding.
Hardware: RTX 4060 laptop + second-hand Tesla V100 server + rented cloud GPU.
Contact: Oyes13619690046@outlook.com GitHub: https://github.com/123456yy384/bagua-Architecture CSDN: https://blog.csdn.net/2504_93363461/article/details/159346941
"Innovation has no age limit. Creativity has no institutional boundary."
