fusionkit-mlx 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ from fusionkit_mlx.launcher import MlxServerCommand, build_mlx_lm_server_command
2
+
3
+ __all__ = ["MlxServerCommand", "build_mlx_lm_server_command"]
@@ -0,0 +1,25 @@
1
+ from __future__ import annotations
2
+
3
+ from dataclasses import dataclass
4
+
5
+
6
+ @dataclass(frozen=True)
7
+ class MlxServerCommand:
8
+ model: str
9
+ port: int
10
+ host: str = "127.0.0.1"
11
+
12
+ def argv(self) -> list[str]:
13
+ return [
14
+ "mlx_lm.server",
15
+ "--model",
16
+ self.model,
17
+ "--host",
18
+ self.host,
19
+ "--port",
20
+ str(self.port),
21
+ ]
22
+
23
+
24
+ def build_mlx_lm_server_command(model: str, port: int, host: str = "127.0.0.1") -> list[str]:
25
+ return MlxServerCommand(model=model, port=port, host=host).argv()
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.3
2
+ Name: fusionkit-mlx
3
+ Version: 0.1.0
4
+ Summary: Optional MLX helper utilities for fusionkit.
5
+ Requires-Dist: fusionkit-core==0.1.0
6
+ Requires-Dist: mlx-lm>=0.30.0 ; sys_platform == 'darwin' and extra == 'mlx'
7
+ Requires-Python: >=3.11
8
+ Provides-Extra: mlx
@@ -0,0 +1,5 @@
1
+ fusionkit_mlx/__init__.py,sha256=BQLBNSnmI4tInWnfVqESk-K8o6rwGWV45pQ8y-3gz_g,144
2
+ fusionkit_mlx/launcher.py,sha256=_3aHeowwkDx8wgr3EFWcpzGaD1yJMEtWy95K2qg9R1w,575
3
+ fusionkit_mlx-0.1.0.dist-info/WHEEL,sha256=0ksFqNncQTsCUyOQQNfyYN3tci86LvOLl92eMRFTR70,81
4
+ fusionkit_mlx-0.1.0.dist-info/METADATA,sha256=p6QdnENZPDB4py9uEQW8szoSpXNjRp8X0wz11rPwELQ,268
5
+ fusionkit_mlx-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.11.22
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any