Skip to content

Commit

Permalink
[#68736] kenning-scenarios: Add TVM LLEXT ZephyrRuntimeBuilder scenario
Browse files Browse the repository at this point in the history
Signed-off-by: Mikolaj Klikowicz <mklikowicz@antmicro.com>
  • Loading branch information
mikolaj-klikowicz committed Nov 14, 2024
1 parent cce2e6c commit ccdf163
Showing 1 changed file with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"dataset": {
"type": "kenning.datasets.magic_wand_dataset.MagicWandDataset",
"parameters": {
"dataset_root": "./build/MagicWandDataset"
}
},
"model_wrapper": {
"type": "kenning.modelwrappers.classification.tflite_magic_wand.MagicWandModelWrapper",
"parameters": {
"model_path": "kenning:///models/classification/magic_wand.h5"
}
},
"optimizers": [
{
"type": "kenning.optimizers.tvm.TVMCompiler",
"parameters": {
"compiled_model_path": "./build/microtvm-magic-wand.graph_data",
"model_framework": "keras",
"target": "zephyr",
"target_microtvm_board": "stm32f746g_disco",
"zephyr_llext_source_template": "./lib/kenning_inference_lib/runtimes/tvm/llext/model_impl.llext.template"
}
}
],
"runtime_builder": {
"type": "kenning.runtimebuilders.zephyr.ZephyrRuntimeBuilder",
"parameters": {
"workspace": ".",
"board": "stm32f746g_disco",
"extra_targets": ["board-repl"],
"use_llext": true
}
},
"runtime": {
"type": "kenning.runtimes.renode.RenodeRuntime",
"parameters": {
"runtime_binary_path": "./build/zephyr/zephyr.elf",
"platform_resc_path": "./renode/scripts/stm32f746g_disco.resc",
"resc_dependencies": ["./build/stm32f746g_disco.repl"],
"runtime_log_uart": "/tmp/uart-log",
"runtime_log_init_msg": "Inference server started",
"profiler_dump_path": "./build/profiler.dump",
"llext_binary_path": "./build/llext/tvm.llext"
}
},
"protocol": {
"type": "kenning.protocols.uart.UARTProtocol",
"parameters": {
"port": "/tmp/uart",
"baudrate": 115200,
"endianness": "little"
}
}
}

0 comments on commit ccdf163

Please sign in to comment.