Runs the complete path: Wikipedia streaming → roleplay JSONL → tokenizer → Ares training → optional roleplay SFT → generation.
After Colab training, ares_core.generate and ares_core.agent_chat sample from Ares checkpoint weights.
Start with ~10M or ~30M parameters, then scale only after validation loss and generation quality improve.
The UI does not hide an external AI model. The brain comes from your trained checkpoint.
Official training files
Colab bootstrap
!git clone https://huggingface.co/spaces/jacmor64/ares-static-lab /content/ares-static-space %cd /content/ares-static-space !pip -q install -U tokenizers datasets safetensors huggingface_hub tqdm numpy # Then open/run: colab/OFFICIAL_Ares_Colab_Training_Run.ipynb # Real generation happens in notebook cells 20 and 22 after checkpoint training.
Generate with trained brain
python -m ares_core.agent_chat \ --checkpoint /content/drive/MyDrive/ares_brain_artifacts/checkpoints/ares-complete-wiki-roleplay-30m-roleplay-sft/ckpt_best.pt \ --tokenizer /content/drive/MyDrive/ares_brain_artifacts/tokenizers/ares-complete-wiki-roleplay-30m_tokenizer.json \ --rag-db /content/drive/MyDrive/ares_brain_artifacts/rag/ares-complete-wiki-roleplay-30m.sqlite \ --plan \ --interactive \ --device auto
Dataset mixer
Dataset preview
Machine-learning tutor on a lunar base: explain KV caches while staying calm, honest, and practical.
Article records: title + cleaned text are streamed from wikimedia/wikipedia in Colab.
Training troubleshooting: loss spikes, tokenizer mismatch, validation overfitting, GPU OOM, RAG grounding, and checkpointing.
Streams bounded public data, filters short/long examples, deduplicates, and writes an Ares corpus.
Trains byte-level BPE from scratch with Ares special tokens.
RoPE, RMSNorm, GQA attention, KV cache, SwiGLU, unembedding, AdamW.
Validation loss, perplexity, best checkpoint, and offline HTML report.
Core training command
python -m ares_core.train \ --config configs/ares_8m.json \ --tokenizer artifacts/tokenizers/ares_tokenizer.json \ --train artifacts/data/corpus_train.txt \ --val artifacts/data/corpus_val.txt \ --out artifacts/checkpoints/ares-10m \ --steps 300 \ --batch-size 8 \ --eval-every 50 \ --device auto
Generate report
python -m ares_core.train_report \ --log artifacts/checkpoints/ares-10m/train_log.jsonl \ --out artifacts/checkpoints/ares-10m/training_report.html
Use colab/Ares_Wikipedia_Roleplay_Brain_Training.ipynb for the official trainable Ares brain path.
Runtime → Change runtime type → GPU. Free Colab is for smoke tests, not 1B training.
The notebook creates Drive artifacts, trains, evaluates, and generates a report.
Increase data and steps only after validation loss behaves correctly.
Artifact rule
Do not commit artifacts/, checkpoints/, *.pt, *.safetensors, *.sqlite, .env, kaggle.json, or access tokens to the public Space.