Only available on Growth plans
For more information on plans and pricing, visit our website.
Add tags and metadata to on-device machine learning models. Models can be queried by tags and loaded dynamically via the SDK giving you more control over distribution and usage. Deliver models to users based on hardware, location, software environment or any other attribute.
Add tags to your models to dynamically control which models users see. Add tags on the Model Details page in the webapp. Here we are adding two tags,
Tags can be added or removed from individual models and are global per across the project.
You can add metadata to any model. This metadata is accessible via the SDK. Examples of metadata include a pretty name to be shown to users or a link to a thumbnail image. All entered keys and values are stored as strings.
Model metadata must fit the following requirements:
- No more than 20 key-value pairs.
- Keys must be no longer than 40 characters.
- Values must be no longer than 500 characters.
Distribute Models By Tag (iOS)
After adding tags to models, you can query tags in the iOS SDK.
1. Create a ModelTagManager instance:
2. Fetch list of FritzManagedModel:
Results will contain models that match all tags. Thus, tag queries for the above
tagManager will match models that contain both
The result of the tag query (when successful) is a
FritzManagedModel list. These are not instantiated models. They contain the configuration of models stored in Fritz. You can download them as needed.
3. Download a FritzManagedModel:
FritzManagedModel list from the previous query, you can download the models and instantiate the
Once the model is downloaded the first time, calling
managedModel.fetchModel again will load that model from disk.
Depending on the size of your model, you may want to force downloads to happen over WiFi. To do so, set
true. By default, all models will download over both WiFi and cellular connections:
All tag requests are cached and stored locally. If you wish to query locally cached models, you can call
Distribute Models By Tag (Android)
After adding tags to models, you can query models in the Android SDK.