| 123 | return "dit_turbo_" + std::string(suffix); |
| 124 | } |
| 125 | if (selection.dit_model_path == "acestep-v15-base") { |
| 126 | return "dit_base_" + std::string(suffix); |
| 127 | } |
| 128 | throw std::runtime_error("ACE-Step package spec supports only acestep-v15-turbo and acestep-v15-base DiT variants"); |
| 129 | } |
| 130 | |
| 131 | void validate_selection(const AceStepModelSelection & selection) { |
| 132 | (void)dit_resource_id(selection, "config"); |
| 133 | } |
| 134 | |
| 135 | AceStepConfig parse_config(const assets::ResourceBundle & resources, const AceStepModelSelection & selection) { |
| 136 | AceStepConfig config; |
| 137 | config.diffusion = parse_diffusion_config(resources.parse_json(dit_resource_id(selection, "config"))); |
| 138 | config.planner = parse_planner_config(resources.parse_json("lm_config")); |
no test coverage detected