Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
34 lines
860 B
C++
34 lines
860 B
C++
#pragma once
|
|
|
|
#include "engine/framework/assets/tensor_source.h"
|
|
#include "engine/framework/core/execution_context.h"
|
|
#include "engine/models/miotts/assets.h"
|
|
#include "engine/models/miotts/types.h"
|
|
|
|
#include <cstddef>
|
|
#include <memory>
|
|
|
|
namespace engine::models::miotts {
|
|
|
|
class MioTTSQwen3Runtime {
|
|
public:
|
|
struct Impl;
|
|
|
|
MioTTSQwen3Runtime(
|
|
std::shared_ptr<const MioTTSAssets> assets,
|
|
core::ExecutionContext & execution,
|
|
size_t prefill_graph_arena_bytes,
|
|
size_t decode_graph_arena_bytes,
|
|
size_t weight_context_bytes,
|
|
assets::TensorStorageType weight_storage_type);
|
|
~MioTTSQwen3Runtime();
|
|
|
|
MioTTSGeneratedTokens generate(
|
|
const MioTTSPrompt & prompt,
|
|
const MioTTSGenerationOptions & options);
|
|
|
|
private:
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
|
|
} // namespace engine::models::miotts
|