HybridParams interface
Stay organized with collections
Save and categorize content based on your preferences.
(EXPERIMENTAL) Configures hybrid inference.
Signature:
export interface HybridParams
Properties
HybridParams.inCloudParams
Optional. Specifies advanced params for in-cloud inference.
Signature:
inCloudParams?: ModelParams;
HybridParams.mode
Specifies on-device or in-cloud inference. Defaults to prefer on-device.
Signature:
mode: InferenceMode;
HybridParams.onDeviceParams
Optional. Specifies advanced params for on-device inference.
Signature:
onDeviceParams?: OnDeviceParams;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# HybridParams interface\n\n**(EXPERIMENTAL)** Configures hybrid inference.\n\n**Signature:** \n\n export interface HybridParams \n\nProperties\n----------\n\n| Property | Type | Description |\n|-------------------------------------------------------------------|-------------------------------------------------------------------|--------------------------------------------------------------------------|\n| [inCloudParams](./ai.hybridparams.md#hybridparamsincloudparams) | [ModelParams](./ai.modelparams.md#modelparams_interface) | Optional. Specifies advanced params for in-cloud inference. |\n| [mode](./ai.hybridparams.md#hybridparamsmode) | [InferenceMode](./ai.md#inferencemode) | Specifies on-device or in-cloud inference. Defaults to prefer on-device. |\n| [onDeviceParams](./ai.hybridparams.md#hybridparamsondeviceparams) | [OnDeviceParams](./ai.ondeviceparams.md#ondeviceparams_interface) | Optional. Specifies advanced params for on-device inference. |\n\nHybridParams.inCloudParams\n--------------------------\n\nOptional. Specifies advanced params for in-cloud inference.\n\n**Signature:** \n\n inCloudParams?: ModelParams;\n\nHybridParams.mode\n-----------------\n\nSpecifies on-device or in-cloud inference. Defaults to prefer on-device.\n\n**Signature:** \n\n mode: InferenceMode;\n\nHybridParams.onDeviceParams\n---------------------------\n\nOptional. Specifies advanced params for on-device inference.\n\n**Signature:** \n\n onDeviceParams?: OnDeviceParams;"]]