How isaluki/probabalisticmonkey works
Probabilistic Monkey is a CPU-friendly chat language model, with a larger Gorilla variant supported by the same app. The main user workflow is browser chat: the local server serves the page, accepts conversation turns and a model choice, then streams generated text from the NumPy inference engine using the selected model. A separate documented pipeline gathers and prepares training data, tokenizes it, trains and exports weights; evaluation checks model behavior and benchmark leakage. Some training and server implementation details were not sampled, so those connections are included only where the README or source index supports them.
Main entry points: tokenize_data.py Corpus tokenization · engine.py NumPy inference · train.py Model training · check_leakage.py Leakage check
Components 17
Chat runtime
- Chat page
app/index.html - Local chat server
app/server.py - NumPy inference
app/engine.py
Training pipeline
- Data download
training/download_data.py - Corpus preparation
training/prepare_corpus.py - Handwritten teaching data
training/handwritten.py - Synthetic conversations
training/synthetic.py - Tokenizer training
training/train_tokenizer.py - Corpus tokenization
training/tokenize_data.py - Transformer architecture
training/model.py - Model training
training/train.py - Quantized export
training/export.py
Model artifacts
- Model weights and config
model/config.json
Evaluation
- Model benchmark
eval/benchmark.py - Gorilla benchmark
eval/gorilla_benchmark.py - Leakage check
eval/check_leakage.py
Other components
- Chat user
Connections 17
- Chat user → Chat page: uses
README.md - Chat page → Local chat server: sends chat
README.md - Local chat server → NumPy inference: generates with
app/server.py - NumPy inference → Model weights and config: loads
README.md - Data download → Corpus preparation: supplies raw data
README.md - Corpus preparation → Corpus tokenization: prepares text
README.md - Handwritten teaching data → Corpus tokenization: provides teaching data
training/tokenize_data.py - Synthetic conversations → Corpus tokenization: provides generated data
training/tokenize_data.py - Tokenizer training → Corpus tokenization: provides tokenizer
README.md - Corpus tokenization → Model training: provides token files
training/train.py - Transformer architecture → Model training: defines training model
training/train.py - Model training → Quantized export: produces checkpoint
README.md - Quantized export → Model weights and config: writes quantized model
README.md - Model benchmark → NumPy inference: evaluates
README.md - Gorilla benchmark → NumPy inference: evaluates
eval/gorilla_benchmark.py - Leakage check → Handwritten teaching data: checks for overlap
eval/check_leakage.py - Leakage check → Synthetic conversations: checks for overlap
eval/check_leakage.py