ZETIC.MLange

iOS

Deploy your On-device AI application to Xcode

We provide ZETIC.MLange iOS Package via Swift Package Manager. You can easily add ZeticMLange to your project!

Prerequisites

Before you begin, make sure you have:

Step-by-step Guide

Add ZeticMLange Package to project

  1. Click File → Add Package Dependencies in Xcode
  2. Search for https://github.com/zetic-ai/ZeticMLangeiOS.git
  3. Click Add Package

Select target to add ZeticMLange Package

  1. Select target in the Add to Target column
  2. Click Add Package

Initialize and run ZeticMLangeModel

// (1) Load Zetic MLange model
let model = try ZeticMLangeModel(tokenKey: PERSONAL_KEY, name: PROJECT_NAME, version: VERSION)

// (2) Prepare model inputs
let inputs: [Tensor] = [] // Prepare your inputs

// (3) Run and get output tensors of the model
let outputs = try model.run(inputs)

Sample Application

Please refer to MLange iOS sample app repository for complete sample applications and more details.