39 std::string
status =
"not_installed";
68 const std::filesystem::path& pulp_home_override = {});
70 const std::filesystem::path& pulp_home_override = {});
72 const std::filesystem::path& pulp_home_override = {});
74 const std::filesystem::path& pulp_home_override = {});
76 const std::filesystem::path& pulp_home_override = {});
78 std::string_view model_id,
79 const std::filesystem::path& pulp_home_override = {});
103 const std::function<
bool(
const struct DownloadProgress&)>& on_progress = {},
104 const CancelToken* cancel =
nullptr,
105 const std::vector<std::pair<std::string, std::string>>& headers = {},
106 const std::filesystem::path& pulp_home_override = {},
bool allow_unverified =
false);
111bool remove_model(std::string_view subsystem, std::string_view model_id, std::string& error,
112 const std::filesystem::path& pulp_home_override = {});
Definition generated_event_source.hpp:33
std::string to_json(const ModelListResult &result)
bool remove_model(std::string_view subsystem, std::string_view model_id, std::string &error, const std::filesystem::path &pulp_home_override={})
Delete an installed model's files + metadata.
ActivateModelResult activate_model(const std::vector< ModelEntry > ®istry, std::string_view subsystem, std::string_view model_id, const std::filesystem::path &pulp_home_override={})
ModelListResult list_models(const std::vector< ModelEntry > ®istry, std::string_view subsystem, const std::filesystem::path &pulp_home_override={})
std::filesystem::path model_install_path(std::string_view subsystem, std::string_view model_id, const std::filesystem::path &pulp_home_override={})
std::filesystem::path model_state_path(std::string_view subsystem, const std::filesystem::path &pulp_home_override={})
std::string read_active_model_id(std::string_view subsystem, const std::filesystem::path &pulp_home_override={})
InstallModelResult install_model(const ModelEntry &model, std::string_view subsystem, const std::function< bool(const struct DownloadProgress &)> &on_progress={}, const CancelToken *cancel=nullptr, const std::vector< std::pair< std::string, std::string > > &headers={}, const std::filesystem::path &pulp_home_override={}, bool allow_unverified=false)
Download model's checkpoint into <home>/<subsystem>/models/<id>/ (streaming, resumable,...
std::filesystem::path resolve_pulp_home(const std::filesystem::path &override_path={})
InstalledModelRecord read_installed_model(std::string_view subsystem, std::string_view model_id, const std::filesystem::path &pulp_home_override={})
Definition model_store.hpp:52
bool ok
Definition model_store.hpp:53
std::filesystem::path state_path
Definition model_store.hpp:54
std::string checkpoint_ref
Definition model_store.hpp:57
std::string error
Definition model_store.hpp:59
std::filesystem::path resolved_checkpoint_path
Definition model_store.hpp:58
std::string backend
Definition model_store.hpp:56
std::string active_model_id
Definition model_store.hpp:55
Definition model_download.hpp:21
Definition model_store.hpp:86
std::string error
Definition model_store.hpp:88
std::filesystem::path metadata_path
Definition model_store.hpp:91
std::string sha256
Definition model_store.hpp:92
bool ok
Definition model_store.hpp:87
bool cancelled
Definition model_store.hpp:89
std::filesystem::path checkpoint_path
Definition model_store.hpp:90
Definition model_store.hpp:25
bool checkpoint_exists
Definition model_store.hpp:32
std::string checkpoint_ref
Definition model_store.hpp:30
std::string backend
Definition model_store.hpp:29
bool loadable() const
Definition model_store.hpp:34
bool metadata_found
Definition model_store.hpp:27
std::filesystem::path metadata_path
Definition model_store.hpp:26
std::string model_id
Definition model_store.hpp:28
std::filesystem::path resolved_checkpoint_path
Definition model_store.hpp:31
Definition model_store.hpp:37
float partial_fraction
Definition model_store.hpp:42
ModelEntry model
Definition model_store.hpp:38
std::filesystem::path resolved_checkpoint_path
Definition model_store.hpp:41
std::string status
Definition model_store.hpp:39
bool active
Definition model_store.hpp:40
Definition model_registry.hpp:25
Definition model_store.hpp:45
std::vector< ListedModel > models
Definition model_store.hpp:48
std::filesystem::path pulp_home
Definition model_store.hpp:46
std::string error
Definition model_store.hpp:49
std::string active_model_id
Definition model_store.hpp:47