mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-15 22:53:51 +08:00
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
// Copyright © 2023-2024 Apple Inc.
|
|
|
|
#include "mlx/io.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
SafetensorsLoad load_safetensors(std::shared_ptr<io::Reader>, StreamOrDevice) {
|
|
throw std::runtime_error(
|
|
"[load_safetensors] Compile with MLX_BUILD_SAFETENSORS=ON "
|
|
"to enable safetensors support.");
|
|
}
|
|
|
|
SafetensorsLoad load_safetensors(const std::string&, StreamOrDevice) {
|
|
throw std::runtime_error(
|
|
"[load_safetensors] Compile with MLX_BUILD_SAFETENSORS=ON "
|
|
"to enable safetensors support.");
|
|
}
|
|
|
|
void save_safetensors(
|
|
std::shared_ptr<io::Writer>,
|
|
std::unordered_map<std::string, array>,
|
|
std::unordered_map<std::string, std::string>) {
|
|
throw std::runtime_error(
|
|
"[save_safetensors] Compile with MLX_BUILD_SAFETENSORS=ON "
|
|
"to enable safetensors support.");
|
|
}
|
|
|
|
void save_safetensors(
|
|
std::string file,
|
|
std::unordered_map<std::string, array>,
|
|
std::unordered_map<std::string, std::string>) {
|
|
throw std::runtime_error(
|
|
"[save_safetensors] Compile with MLX_BUILD_SAFETENSORS=ON "
|
|
"to enable safetensors support.");
|
|
}
|
|
|
|
} // namespace mlx::core
|