Package 

Class OnnxAdapterFactory

  • All Implemented Interfaces:
    ai.zerogpu.android.sdk.adapter.AdapterFactory

    
    public final class OnnxAdapterFactory
     implements AdapterFactory
                        

    The ONNX engine, backed by Microsoft ONNX Runtime (inference) + the HuggingFace tokenizer (reads the standard tokenizer.json). It consumes the same model artifacts as the browser SDK (Transformers.js) and the cloud fallback — model.onnx + tokenizer.json + config.json — so a model never needs an Android-specific re-export.

    Behaviour is data: ModelConfig.inferenceKind selects a small, bounded post-processor in OnnxAdapter; labels come from config.json. Adding a model of a supported kind is a catalog row, not SDK code.