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
+6-6Lines changed: 6 additions & 6 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.
@@ -18,9 +17,8 @@ The design mirrors the packaging approach from projects such as [LLamaSharp](htt
18
17
```
19
18
├── extern/mlx # Git submodule with the official MLX sources
├── src/MLXSharp.Native/ # NuGet-ready container for native binaries
24
22
└── src/MLXSharp.Tests/ # Integration tests covering DI and Semantic Kernel
25
23
```
26
24
@@ -81,10 +79,12 @@ dotnet add package MLXSharp
81
79
82
80
This package contains:
83
81
- 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
82
+
- Native assets in `runtimes/{rid}/native/`:
83
+
-`runtimes/linux-x64/native/libmlxsharp.so.b64` - Base64-encoded stub that `MlxNativeLibrary` expands for CI/testing
86
84
-`runtimes/osx-arm64/native/libmlxsharp.dylib` - built in CI on macOS
87
85
86
+
`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