01 / 04Open spec
FNNX
An open format for shipping any model — the thread through this ecosystem.
View on GitHubOpen source · MIT licensed
Independent open-source libraries, each doing one thing well — train models, wield LLMs, ship them anywhere.
An open format for shipping any model — the thread through this ecosystem.
View on GitHubtar -tf model.fnnx
◇pick a member
model.fnnx/manifest.json
jsonThe contract — the variant and I/O every runtime honors.
{ "variant": "pyfunc", "name": "sentiment-classifier", "version": "1.4.0", "inputs": [ { "name": "text", "content_type": "NDJSON", "dtype": "Array[string]", "shape": [-1] } ], "outputs": [ { "name": "label", "content_type": "NDJSON", "dtype": "Array[int64]", "shape": [-1] } ] } ~ ~ ~ ~ ~ ~
schema valid
Independent of framework, platform, and language.
pipeline for strict, portable graphs; pyfunc for flexible Python.
A JSON-schema specification · SDKs for Python and JavaScript.
from fnnx.runtime import Runtime Runtime("model.fnnx").compute(inputs, {})