Part V — The Modern Experience Layer · Chapter 35
AI/ML primitives — transformers, tokenization and AutoML
The 2.3.0 feature line added byte-pair tokenization, embeddings, attention, seeded random search and an ONNX export stub; PeaLang 3.1.39 exposes them through stats with clear stub limits.
1
Tokenization, embeddings and attention in PeaLang
BytePairTokenizer, create_embedding, scaled_dot_product_attention — dependency-free primitives with deliberately simplified implementations.
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. The AI/ML helpers came from the 2.3.0 feature line; this chapter is verified against tagged PeaLang 3.1.39, where they are exposed mainly through stats. They are primitives and stubs, not a training framework or a PyTorch replacement. export_to_onnx writes a small JSON metadata file — treat it as a boundary marker, not a build system.