Implementation of a Predictive Coding Transformer built on the Neural Generative Coding framework.
Clone the Repository
git clone https://github.com/iCog-Labs-Dev/NGC-PC-Transformers.gitNavigate to the Project Directory
cd NGC-PC-TransformersCreate a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activateInstall required packages:
pip install -r requirements.txtRun the tokenization
python -m data_preprocess.tokenizerRun the training
python train.pyRun the evaluation
python eval.pyRun the generation
python generation.py