Part V — The Modern Experience Layer · Chapter 35
AI/ML primitives — transformers, tokenization and AutoML
v2.3.0 brings transformer building blocks, byte-pair tokenization, embeddings and similarity, AutoML random search and ONNX export into the language itself.
1
Tokenization, embeddings and attention in PeaLang
BytePairTokenizer, create_embedding, scaled_dot_product_attention — the transformer toolkit, dependency-free.
2
AutoML random search and ONNX export
random_search with a parameter space, best_model out, ONNX export stub — the discovery loop for small models.
Version note. v2.3.0. These are primitives, not a training framework. They are the right tools for small-model work, RAG glue and experimentation; they are not a replacement for PyTorch at scale. export_to_onnx is a stub — treat it as an interchange boundary, not a build system.