Comments (5)
Concept 3 - YAML
image: "runicos/base"
pipeline:
audio:
capability: SOUND
outputs:
- type: i16
dimensions: [16000]
args:
hz: 16000
accelerometer:
capability: ACCEL
outputs:
- type: f32
dimensions: [128, 3]
normalize:
proc-block: "hotg-ai/rune#proc_blocks/normalize"
inputs:
- accelerometer
outputs:
- type: f32
dimensions: [128, 3]
model:
model: "./model.tflite"
inputs:
- audio
- accelerometer
outputs:
- type: f32
dimensions: [4]
label:
proc-block: "hotg-ai/rune#proc_blocks/ohv_label"
inputs:
- model
outputs:
- type: utf8
args:
labels: ["Wing", "Ring", "Slope", "Unknown"]
output:
out: SERIAL
inputs:
- label
debug:
out: SERIAL
inputs:
- fft
- model
- label
from rune.
@delimbetov liked the idea of using YAML for our Runefile format and proposed a couple tweaks to the document structure:
Hi, I think that using existing languages is gonna be easier for everyone. Personally I like the yaml one, but I would like it even more if blocks were split instead of all of them being part of the pipeline. E.g.
image: "runicos/base" capabilities: audio: capability: SOUND outputs: - type: i16 dimensions: [16000] args: hz: 16000 accelerometer: capability: ACCEL outputs: - type: f32 dimensions: [128, 3] procblocks: normalize: proc-block: "hotg-ai/rune#proc_blocks/normalize" inputs: - accelerometer outputs: - type: f32 dimensions: [128, 3] pipeline: model: model: "./model.tflite" inputs: - audio - accelerometer outputs: - type: f32 dimensions: [4] label: proc-block: "hotg-ai/rune#proc_blocks/ohv_label" inputs: - model outputs: - type: utf8 args: labels: ["Wing", "Ring", "Slope", "Unknown"] outputs: output: out: SERIAL inputs: - label debug: out: SERIAL inputs: - fft - model - label
from rune.
After talking with @meelislootus yesterday I think our plan of attack should be to make some small tweaks to the Runefile syntax (i.e. concept 1) in the short term because we've already started putting out marketing material and docs with our current Runefile syntax. Then a month or two afterwards we can start to phase it out in favour of YAML (concept 3).
The two formats will be feature-for-feature identical, so it should be trivial to read in an old-style Runefile and output the YAML equivalent.
Akshay and @kthakore, what are your thoughts? This is an easy thing to implement in code but considering the Runefile will be the primary way people interact with Rune on a day-to-day basis, changing its syntax/format could have larger ramifications from a business perspective.
from rune.
I think the Yaml approach fits well in the space given. yaml can also be syntax checked on the client side. I an in favor of it!
from rune.
Pretty late to the game, sorry, but ya YAML for me as well :) - it draws the same orchestration crowd as well! I think the short term concept 1 makes sense too, but maybe we can be careful with the community? Because post launch if we need to change this we need to communicate really well.
from rune.
Related Issues (20)
- Enable Apple targets for librune_native in Github actions
- Consistent Tensor element types
- Allow people to attach a description to a capability
- Allow each Rune to have a description
- Make the compiler's internals deterministic
- Missing dependency libclang causes build to fail and hang HOT 3
- Let people specify supported runtime environments/backends in the Runefile
- Split the rune CLI up so there are individual binaries for each sub-command
- Caching strategy for long running processes like BERT QA inference HOT 3
- Add support for inference on ONNX and TensorFlow models HOT 1
- Make it easier to pass inputs through the builder API
- The "rune build" command completely ignores the "image" field
- The web runtime should try to cache Runes where possible
- Add rune serve to the cli
- Structured Logging HOT 1
- Load tf.js models using a custom loader
- BigUint64Array is not supported on some versions of Safari
- Random capability should be float
- Build error when connecting image source with normalisation block HOT 2
- Adding Observability Probes (Behind the scenes) to inputs to Runes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rune.