xoscar 0.7.9__cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.7.11__cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.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.

Potentially problematic release.


This version of xoscar might be problematic. Click here for more details.

@@ -40,23 +40,27 @@ dtype_map = {
40
40
  class MLXSerislizer(Serializer):
41
41
  @buffered
42
42
  def serial(self, obj: "mx.array", context: dict): # type: ignore
43
- mv = memoryview(obj)
44
- header = dict(shape=mv.shape, format=mv.format)
43
+ ravel_obj = obj.reshape(-1).view(mx.uint8)
44
+ mv = memoryview(ravel_obj)
45
+ header = dict(
46
+ shape=obj.shape, format=mv.format, dtype=str(obj.dtype).rsplit(".", 1)[-1]
47
+ )
45
48
  if not mv.c_contiguous:
49
+ # NOTE: we only consider c contiguous here,
50
+ # MLX has no way to create f contiguous arrays.
46
51
  mv = memoryview(bytes(mv))
47
52
  return (header,), [mv], True
48
53
 
49
54
  def deserial(self, serialized: tuple, context: dict, subs: List[Any]):
50
55
  header = serialized[0]
51
- shape, format = header["shape"], header["format"]
56
+ shape, format, dtype = header["shape"], header["format"], header["dtype"]
52
57
  mv = memoryview(subs[0])
53
58
  if mv.format != format:
54
59
  dtype = dtype_map.get(format, np.uint8)
55
60
  np_arr = np.frombuffer(mv, dtype=dtype).reshape(shape) # parse
56
61
  mv = memoryview(np_arr) # recreate memoryview
57
- elif mv.shape != shape:
58
- mv = mv.cast(format, shape) # cast directly
59
- return mx.array(mv)
62
+ ravel_array = mx.array(mv)
63
+ return ravel_array.view(getattr(mx, dtype)).reshape(shape)
60
64
 
61
65
 
62
66
  if mx is not None:
xoscar/virtualenv/uv.py CHANGED
@@ -106,6 +106,8 @@ class UVVirtualEnvManager(VirtualEnvManager):
106
106
  cmd += [option, it]
107
107
  else:
108
108
  cmd += [option, param_value]
109
+ if kwargs.get("no_build_isolation", False):
110
+ cmd += ["--no-build-isolation"]
109
111
 
110
112
  logger.info("Installing packages via command: %s", cmd)
111
113
  if not log:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xoscar
3
- Version: 0.7.9
3
+ Version: 0.7.11
4
4
  Summary: Python actor framework for heterogeneous computing.
5
5
  Home-page: http://github.com/xorbitsai/xoscar
6
6
  Author: Qin Xuye
@@ -73,15 +73,15 @@ xoscar/serialization/core.pxd,sha256=k4RoJgX5E5LGs4jdCQ7vvcn26MabXbrWoWhkO49X6YI
73
73
  xoscar/serialization/core.pyx,sha256=bjR-zXGm9qersk7kYPzpjpMIxDl_Auur4BCubRfKmfA,29626
74
74
  xoscar/serialization/cuda.py,sha256=iFUEnN4SiquBIhyieyOrfw3TnKnW-tU_vYgqOxO_DrA,3758
75
75
  xoscar/serialization/exception.py,sha256=Jy8Lsk0z-VJyEUaWeuZIwkmxqaoB-nLKMa1D15Cl4js,1634
76
- xoscar/serialization/mlx.py,sha256=N_cvbTUBKc14XWYsPIMz4kDstyRN1DNhb4BVRgnQm8Y,1872
76
+ xoscar/serialization/mlx.py,sha256=tRu_7o6RizdRhbr88EasHrZtShimAsLy3pIEO-by29o,2118
77
77
  xoscar/serialization/numpy.py,sha256=5Kem87CvpJmzUMp3QHk4WeHU30FoQWTJJP2SwIcaQG0,2919
78
78
  xoscar/serialization/pyfury.py,sha256=sifOnVMYoS82PzZEkzkfxesmMHei23k5UAUUKUyoOYQ,1163
79
79
  xoscar/serialization/scipy.py,sha256=yOEi0NB8cqQ6e2UnCZ1w006RsB7T725tIL-DM_hNcsU,2482
80
80
  xoscar/virtualenv/__init__.py,sha256=65t9_X1DvbanNjFy366SiiWZrRTpa9SXWMXPmqayE-4,1117
81
81
  xoscar/virtualenv/core.py,sha256=qHKqI6R92SN0_OWVAX1xy9wJiZr-r0VfLHTskZtZE4U,2851
82
82
  xoscar/virtualenv/utils.py,sha256=mL_uATHhj82xec0-0IZ6N8yI-laPAB4t8G3alPUGtPA,2439
83
- xoscar/virtualenv/uv.py,sha256=XCjeCEntMhA0kyZS0qG7qu9AWzPtIwdeTJRLYRIOiDI,4788
84
- xoscar-0.7.9.dist-info/METADATA,sha256=af3hRvcba-yfLchiCmdJCPCYIt8lvXOsFNrWA2Tf_1s,9134
85
- xoscar-0.7.9.dist-info/WHEEL,sha256=Zqf17R98VQuI9JZEwsfDDfsqkexN9tbZpiCgdvPM64U,154
86
- xoscar-0.7.9.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
87
- xoscar-0.7.9.dist-info/RECORD,,
83
+ xoscar/virtualenv/uv.py,sha256=ef7InUP0VwPJe-ssZpWCMDN69lEp4aIRFtEgVff82eI,4884
84
+ xoscar-0.7.11.dist-info/METADATA,sha256=PDSZhxwM8g2RzmkuPLu6aynwy5WrFKV1jyv8XVkUY_4,9135
85
+ xoscar-0.7.11.dist-info/WHEEL,sha256=Zqf17R98VQuI9JZEwsfDDfsqkexN9tbZpiCgdvPM64U,154
86
+ xoscar-0.7.11.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
87
+ xoscar-0.7.11.dist-info/RECORD,,