mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/contracts
InferenceMethod
Interface InferenceMethod<Metrics>
interface
InferenceMethod
<
Metrics
>
{
id
:
string
;
createRun
(
cancellation
:
Cancellation
)
:
Promise
<
MethodRun
<
Metrics
>
>
;
}
Type Parameters
Metrics
Index
Properties
id
Methods
create
Run
Properties
Readonly
id
id
:
string
Methods
create
Run
createRun
(
cancellation
:
Cancellation
)
:
Promise
<
MethodRun
<
Metrics
>
>
A rejected creation must release its own partial allocations.
Parameters
cancellation
:
Cancellation
Returns
Promise
<
MethodRun
<
Metrics
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
id
Methods
create
Run
Documentation
mlx-bun library API
Loading...
A rejected creation must release its own partial allocations.