Spectral-JAX is a cutting-edge research framework for training autonomous agents using a Hybrid Architecture that combines the infinite context capabilities of Hyena Operators with the precise "needle-in-a-haystack" retrieval of Sliding Window Attention.
- Hybrid Architecture:
- Hyena Blocks: For global context and sub-quadratic scaling.
- Sliding Window Attention: Interleaved every 6 layers for high-resolution local focus.
- Autonomous Agent Loop: Built-in support for
THINK,SPEAK,WAIT, andSILENCEtokens to enable complex reasoning and interaction. - JAX/Flax Implementation: High-performance training on TPUs and GPUs.
- Curriculum Learning: Structured 3-phase training pipeline (Language -> Knowledge -> Agency).
# Clone the repository
git clone https://github.com/inkbytefo/TLM.git
cd TLM
# Install dependencies
pip install -r requirements.txtTrain the model on language and code data to establish the base capabilities.
python train.py \
--run_name phase1_hybrid \
--data_paths data/turkish_academic.txt,data/github_code.txt \
--data_weights 0.8,0.2 \
--hidden_dim 256 \
--num_layers 12 \
--seq_len 1024Interact with the trained agent in the autonomous loop.
python autonomous_agent.pyContributions are welcome! Please read CONTRIBUTING.md (coming soon) for details.
Copyright (c) 2025 Tevfik İşkın. All Rights Reserved. This project is proprietary and confidential. See the LICENSE file for details.