Continuum C++ API
Unified runtime for token + tensor execution
Loading...
Searching...
No Matches
mlx_backend.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <string>
6
7namespace continuum::backend {
8
21class MLXBackend : public Backend {
22 public:
24 std::string tensor_backend_type() const override { return "mlx"; }
26 static std::string runtime();
28 const ir::Node& node,
29 const std::vector<continuum::Value>& inputs,
30 const std::optional<BackendState>& prefix_state,
31 std::int32_t remaining_tokens) override;
32};
33
34} // namespace continuum::backend
Definition backend.hpp:36
Definition mlx_backend.hpp:21
BackendRunResult run_with_cache(const ir::Node &node, const std::vector< continuum::Value > &inputs, const std::optional< BackendState > &prefix_state, std::int32_t remaining_tokens) override
std::string tensor_backend_type() const override
Definition mlx_backend.hpp:24
BackendCapabilities capabilities() const override
static std::string runtime()
"mlx <version> (gpu|cpu)" when built against MLX, else "reference (built without MLX)".
Definition anthropic.hpp:4
Definition backend.hpp:20
Definition node.hpp:51