mirror of
https://github.com/ollama/ollama.git
synced 2026-04-18 01:54:17 +02:00
This change adds a new MLX based runner which includes: * Method-based MLX bindings * Subprocess-based MLX runner (x/mlxrunner) * KV cache with tree management * A basic sampler The GLM4-MoE-Lite model has been ported to use the new bindings. --------- Co-authored-by: Michael Yang <git@mxy.ng>
18 lines
363 B
Go Template
18 lines
363 B
Go Template
// This code is auto-generated; DO NOT EDIT.
|
|
|
|
#include "generated.h"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
{{ range .Functions }}
|
|
{{ .Type }} (*{{ .Name }}_){{ .Parameters }} = NULL;
|
|
{{- end }}
|
|
|
|
int mlx_dynamic_load_symbols(mlx_dynamic_handle handle) {
|
|
{{- range .Functions }}
|
|
CHECK_LOAD(handle, {{ .Name }});
|
|
{{- end }}
|
|
return 0;
|
|
}
|