private OnnxModel readOnnxModelConfig(OnnxModelsConfig.Model onnxModelConfig) {
        try {
            String name = onnxModelConfig.name();
            File file = fileAcquirer.waitFor(onnxModelConfig.fileref(), 7, TimeUnit.DAYS);

            OnnxEvaluatorOptions options = new OnnxEvaluatorOptions.Builder()
                    .setExecutionMode(onnxModelConfig.stateless_execution_mode())
                    .setInterOpThreads(onnxModelConfig.stateless_interop_threads())
                    .setIntraOpThreads(onnxModelConfig.stateless_intraop_threads())
                    .setGpuDevice(onnxModelConfig.gpu_device(), onnxModelConfig.gpu_device_required())
                    .build();
            var m =  new OnnxModel(name, file, options, onnx);
            for (var spec : onnxModelConfig.input()) {
                m.addInputMapping(spec.name(), spec.source());
            }
            for (var spec : onnxModelConfig.output()) {
                m.addOutputMapping(spec.name(), spec.as());
            }
            return m;
        } catch (InterruptedException e) {
            throw new IllegalStateException("Gave up waiting for ONNX model " + onnxModelConfig.name());
        }
    }
Returns a map of the models contained in this config, indexed on name.
The map is modifiable and owned by the caller.
model-evaluation/src/main/java/ai/vespa/models/evaluation/RankProfilesConfigImporter.java