You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ The design mirrors the packaging approach from projects such as [LLamaSharp](htt
8
8
-`IChatClient`, `IEmbeddingGenerator<string, Embedding<float)>`, and image generation helpers that adhere to the `Microsoft.Extensions.AI` abstractions.
9
9
- Builder-based backend configuration with a deterministic managed implementation for tests and a P/Invoke powered native backend.
10
10
- Native library resolver that probes application directories, `MLXSHARP_LIBRARY`, or packaged runtimes and loads `libmlxsharp` on demand.
11
-
-`MLXSharp.Native` packaging project that ships stub binaries for CI (Linux x64 today) and a placeholder `osx-arm64` folder for the production MLX wrapper.
12
11
- Dependency injection extensions (`AddMlx`) in **MLXSharp** package.
13
12
- Semantic Kernel integration (`AddMlxChatCompletion`) in separate **MLXSharp.SemanticKernel** package.
14
13
- Integration test suite that exercises chat, embedding, image, and Semantic Kernel flows against both managed and native backends.
@@ -19,8 +18,8 @@ The design mirrors the packaging approach from projects such as [LLamaSharp](htt
19
18
├── extern/mlx # Git submodule with the official MLX sources
├── src/MLXSharp.Native/ # NuGet-ready container for native binaries
24
23
└── src/MLXSharp.Tests/ # Integration tests covering DI and Semantic Kernel
25
24
```
26
25
@@ -81,10 +80,12 @@ dotnet add package MLXSharp
81
80
82
81
This package contains:
83
82
- Managed DLL with `Microsoft.Extensions.AI` implementations
84
-
- Native libraries in `runtimes/{rid}/native/`:
85
-
-`runtimes/linux-x64/native/libmlxsharp.so` - stub for CI/testing
83
+
- Native assets in `runtimes/{rid}/native/`:
84
+
-`runtimes/linux-x64/native/libmlxsharp.so.b64` - Base64-encoded stub that `MlxNativeLibrary` expands for CI/testing
86
85
-`runtimes/osx-arm64/native/libmlxsharp.dylib` - built in CI on macOS
87
86
87
+
`MlxNativeLibrary` materialises `libmlxsharp.so` from the encoded payload on first use so Git history stays free of binary blobs while tests retain deterministic behaviour.
0 commit comments