#pragma once #include "engine/framework/assets/tensor_source.h" #include "engine/models/yue2/types.h" #include #include namespace engine::models::yue2 { struct Yue2Assets { std::filesystem::path model_root; std::filesystem::path tiktoken_path; std::shared_ptr model_weights; std::shared_ptr vae_weights; Yue2Config config; }; std::shared_ptr load_yue2_assets(const std::filesystem::path & model_path); std::shared_ptr make_yue2_lora_source( std::shared_ptr base, const std::filesystem::path & adapter_path, float scale, int64_t layer_count, const std::filesystem::path & nar_adapter_path = {}, float nar_scale = 1.0F); } // namespace engine::models::yue2