A function that will run on forward calls
A function that will run on backward calls, with a list of differentiated tensors passed in
An optional list of options passed to the underlying Bun.serve call
Optional
req_map: Record<string, ((...args: unknown[]) => unknown)>An optional map of additional handlers passed to the underlying network.serve
call
Generated using TypeDoc
Serve a model with forward and optimization endpoints.
Remarks
This server is to be used with
network.remote_model
. The function does not return.Example
Additional functions can also be served (as in
network.serve
):