Parse
Readable indentation-aware parser emits typed dataclass AST nodes.
Hyperbridge Digital · Kynetra language systems
A Python-like ML training language that turns one readable `.kyn` file into a complete PyTorch training script.
kynml train examples/house_price.kyn
KynML v1 is intentionally narrow: CSV datasets, dense networks, core losses, metrics, optimizers, and Torch export. That restraint is the feature.
The MVP stays approachable while leaving clean boundaries for ONNX, JAX, MLIR, distributed training, and cloud jobs.
Readable indentation-aware parser emits typed dataclass AST nodes.
Semantic checks catch missing blocks, unknown references, unsupported layers, and bad ranges.
PyTorch backend writes imports, loaders, model class, loop, metrics, export, and main.
The CLI compiles and executes the generated script with the project Python runtime.
`kynml train examples/house_price.kyn` parses the source, validates the program, generates Python, trains a model on sample CSV data, prints metrics, and exports a Torch `state_dict`.
$ kynml validate examples/house_price.kyn
Valid KynML program: examples/house_price.kyn
$ kynml compile examples/house_price.kyn --out generated/house_price.py
Generated generated/house_price.py
$ kynml train examples/house_price.kyn
Epoch 20/20 - loss: ...
mae: ...
rmse: ...
Saved model to models/house_price_model.pt
Input + dense layers. Activations: relu, sigmoid, tanh, linear. Softmax output inferred from cross_entropy loss.
mse · bce · cross_entropy — covers regression, binary and multiclass classification.
adam(lr) · sgd(lr, momentum) with per-param learning rate. Scheduler: cosine_annealing.
mae · mse · rmse · accuracy — computed on the held-out test split after training.
torch state_dict .pt and onnx .onnx — both with automatic directory creation.
validate · ast · compile · train · sweep · compare · fmt · lsp — eight commands for local compiler workflows.
The compiler emits opt-in flags for PyTorch 2 torch.compile, mixed-precision AMP, and multi-worker data loading. No boilerplate edits — just set the flag in the train block.
device = cuda
Emits autocast + GradScaler when CUDA is available. Half-precision training at full fidelity.
compile = true
Wraps the model in torch.compile() for PyTorch 2 graph capture and kernel fusion.
workers = 4
Passes num_workers to the DataLoader for parallel data prefetch, keeping the GPU fed.
The optional kynml.serving, kynml.mcp, and kynml.integrations packages extend the base compiler into production workflows. Heavy deps are lazy-imported so the core package stays minimal.
Compiles a .kyn spec and generates a FastAPI service with /predict and /health endpoints. Run kynml serve model.kyn — the server boots in seconds.
from kynml.serving import generate_service
Exposes KynML tools over the Model Context Protocol so any MCP-compatible agent can validate, compile, and trigger training runs programmatically.
python -m kynml.mcp.server
Pull any HuggingFace dataset directly into a .kyn pipeline with source = hf("dataset/name"). The integration handles splits, column mapping, and tensor conversion.
from kynml.integrations.huggingface import load_hf_dataset
Lightning strengthens PyTorch projects. Keras gives a refined Python API. Ludwig pushes low-code breadth. ZenML orchestrates MLOps pipelines. KynML takes a sharper lane: compiler-checked training intent that emits readable Python and PyTorch.
kynml compare --format markdown
KynML is led from the HyperBridge Digital and Kynetra ecosystem: product narrative, AI architecture, platform engineering, and production delivery moving as one system.
Founder & CEO
Supercharged entrepreneur and content producer. BE (CS), Anna University · 20 yrs. Architect of Kynetra AI — 423 regents across 25 domains. Fractional CMO to 200+ brands including Sony, Samsung, Tata Motors, HDFC, and GRT. Founded The Reel Factory.
Co-founder & CTO
BE (CS), Anna University · 22 yrs. Engineering force behind every HyperBridge platform. Owns the architecture across the Kynetra Cognitive Grid: telemetry, router, evaluator, memory, audit, prompts, and 30 production platforms.
Phase 1 — shipped PyTorch transpiler, CSV datasets, dense models, regression + binary + multiclass, ONNX export, REST serving, MCP server, HuggingFace integration, 6-command CLI.
Phase 2 Image datasets, CNN layers, text datasets, transformer blocks, richer parser diagnostics, dataset schema validation.
Phase 3 TorchScript export, model registry, experiment tracking, generated script extension hooks.
Phase 4 JAX backend, MLIR backend, distributed training, cloud training jobs.
Phase 5 KynML Studio, AutoML layer, SaaS deployment, interactive compiler playground.