Skip to main content
Khaos does not train models; it serves them. Training and experiments happen in your own environment, in PyTorch, TensorFlow or any other library that can export ONNX. The result is an artifact directory that Khaos can load, serve and publish.

Artifact layout

manifest.json

Export from other libraries

Versions

Khaos is on version v1. The first release of every artifact is v1, the next is v2, and so on. There are no v0.x versions. Set it with export_artifact(..., version="v1"), or in the manifest.

Check it locally

Publish

Push the directory to the Hugging Face Hub as <KHAOS_HUB_ORG>/khaos-<name>. After that, khaos download <name> and khaos.load("<name>") fetch it on demand.

Pre- and post-processing

The ONNX file holds the network only. Turning raw input into tensors and tensors into a result container is the job of the artifact’s pipeline, a subclass of khaos.pipeline.OnnxPipeline registered under the artifact name: