hotg-ai / rune

Rune provides containers to encapsulate and deploy edgeML pipelines and applications
Apache License 2.0
133 stars 15 forks source link

Product development for Runefile #3

Open meelislootus opened 3 years ago

meelislootus commented 3 years ago

@meelislootus

https://www.tensorflow.org/lite/microcontrollers

https://www.hackster.io/search?i=projects&q=tinyML

Cool projects: https://www.hackster.io/contests/ElephantEdge

kthakore commented 3 years ago

We need to come up with some 'real' examples of Runefile.

  1. What are the different things you want in a Runefile
  2. have a model + c/rust using either Tensorflow Micro (https://www.tensorflow.org/lite/microcontrollers) or uTensor (https://github.com/uTensor/uTensor)
  3. Load a tflite model => generate C code => in our rune executable compile it in WASM
  4. manually run the WASM file eventually use rune run
kthakore commented 3 years ago

image

An image of the current thinking of how the Rune would work.

kthakore commented 3 years ago

Take a look at an example of a rune in C: https://github.com/hotg-ai/demos/blob/feature/valhalla/runes/sine/app.cpp

This code runs using an interface to arduino defined here on the Rune side: https://github.com/hotg-ai/demos/blob/feature/valhalla/runes/sine/arduino_api.h#L29

Then these functions are actually on the provider (the device that provides these capabilities):

https://github.com/hotg-ai/demos/blob/feature/valhalla/providers/arduino/mjlp/Rune_Arduino.cpp#L142

Michael-F-Bryan commented 3 years ago

@kthakore and @meelislootus, do we still need this issue?