This open source mModelShare microservice created by the mimik team is an example cross-platform solution for sharing machine learning models across devices. More specifically, this edgeSDK microservice has the following functionality:
- Uploading the information about the machine learning model on your device to the mModelShare's local database.
- Retrieving the information regarding specific machine learning models from local database.
- Retrieving machine learning models from other devices.
The build script default.yml is specified under config directory.
- Install dependencies:
npm install
- Run the build script:
npm run build
- Package to container:
npm run package
For mobile application development, deployment is programmatically by Android or iOS Wrappers, learn more about it:
For microservice development, things you will need:
- edgeSDK running on the deployment targeted device.
- Obtained edge Acess Token and associate the device from edgeSDK OAuth Tool.
- Run the following commands under the same directory of your containerized microservice file:
curl -i -H "Authorization: Bearer <edge Access Token>" -F "[email protected]" http://localhost:8083/mcm/v1/images
- To run the microservice after successful deployment, with environment variables:
curl -i -H "Authorization: Bearer <edge Access Token>" -d '{"name": "model-v1", "image": "model-v1", "env": {"MCM.BASE_API_PATH": "/modelshare/v1", "uMDS": "http://localhost:8083/mds/v1"} }' http://localhost:8083/mcm/v1/containers
- For more information and explanation, you can visit our mCM container management API references and general guide on packaing, deployment, and exporting microservice.