lib/runtime: work on instantiating sub-models