You have run an Arm AI Portal model using ONNX Runtime GenAI and inspected the scripts behind the workflow. That stack is one way to deploy text generation on an Arm cloud machine, but another model format, serving requirement, or operational constraint might lead you to a different runtime.

The supplied workflow uses ONNX Runtime GenAI, but the same deployment components apply to packages that use other model formats and runtimes. Use this page to assess which application components need to change for an alternative package.

A cloud text-generation application needs more than model weights. The model format must match the inference runtime, the tokenizer must match the model, and the host must provide enough memory and supported CPU instructions. You also need a way to submit prompts and return generated tokens.

Identify the components you might replace

The ONNX Runtime GenAI example supplies one choice for each component in the deployment. If you adapt the application, identify which parts can stay and which parts need to change:

ComponentPurposeWhere to get it
Model artifactContains the trained weights in a runtime-compatible format such as ONNX, GGUF, or SafetensorsSelect and download the model from the Arm AI Portal
Model configurationDescribes the model architecture, tensor names, generation settings, and special tokensIncluded with the selected Arm AI Portal model package
Tokenizer and prompt templateConverts text to token IDs and formats prompts for instruction-tuned or base modelsIncluded with the selected Arm AI Portal model package
Inference runtimeLoads the model, manages token generation, and selects the CPU execution pathThe runtime project’s package registry, container registry, or source repository
Serving interfaceExposes the model through a command line, web application, or HTTP APIIncluded with the runtime or added by your application
Arm computeSupplies CPU cores, memory, storage, and network accessAn Arm-based cloud VM or Arm Neoverse server
Operational controlsAdd authentication, health checks, logging, metrics, and request limitsYour application and cloud platform services

The selected Arm AI Portal package supplies the model artifact, configuration, tokenizer, and prompt template. Keep these files together because a tokenizer or chat template from a different model revision can generate incorrect token IDs or prompt formatting even when the runtime loads the weights successfully.

Compare alternative self-managed runtimes

The inference runtime is the component most likely to change when you select another model format. Each runtime expects a particular artifact format and package layout.

RuntimeCompatible Arm AI Portal packageWhere to get the runtimeCommon use
ONNX Runtime GenAIONNX graph, genai_config.json, tokenizer files, and an optional chat templateONNX Runtime GenAI installation documentation Quantized CPU inference with explicit control over prompt preparation and token generation
llama.cppA GGUF model and tokenizer metadata, when offered for the selected modelllama.cpp source, binaries, and server Lightweight local or cloud CPU inference with a command line or OpenAI-compatible server
vLLMA model package supported by vLLM, when offered for the selected modelvLLM CPU installation documentation Throughput-oriented serving and concurrent API requests
TransformersModel weights, configuration, tokenizer, and optional chat template, when offered for the selected modelTransformers installation documentation Prototyping, compatibility checks, and direct Python inference

Artifact formats are not interchangeable. For example, an ONNX Runtime GenAI application cannot load a GGUF file directly, and llama.cpp does not use an ONNX model bundle. In the Arm AI Portal, select a package prepared for the runtime you plan to use.

Compare Arm CPU optimization support

The previous page explains how the supplied ONNX Runtime path can select KleidiAI kernels automatically for compatible operations. Other runtimes handle KleidiAI differently:

Runtime support alone does not guarantee KleidiAI dispatch. The runtime build, model operators, quantization, tensor shapes, and processor features must also be compatible. Check the selected runtime and package before making performance assumptions.

What you’ve learned

You can now compare the completed ONNX Runtime GenAI workflow with other self-managed runtimes and identify which model, runtime, serving, or operational component needs to change for another cloud LLM deployment.

Back
Next