shared-tensor 0.2.11__tar.gz → 0.2.12__tar.gz
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.
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/PKG-INFO +1 -1
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/pyproject.toml +1 -1
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/__init__.py +1 -1
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/utils.py +4 -1
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/LICENSE +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/MANIFEST.in +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/README.md +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/setup.cfg +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/async_client.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/async_task.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/client.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/errors.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/managed_object.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/provider.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/runtime.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/server.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor/transport.py +0 -0
- {shared_tensor-0.2.11 → shared_tensor-0.2.12}/shared_tensor.egg-info/SOURCES.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shared-tensor
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.12
|
|
4
4
|
Summary: Native PyTorch CUDA IPC over Unix Domain Socket for same-host process separation
|
|
5
5
|
Author-email: Athena Team <contact@world-sim-dev.org>
|
|
6
6
|
Maintainer-email: Athena Team <contact@world-sim-dev.org>
|
|
@@ -264,8 +264,11 @@ def _deserialize_transformers_model(payload: bytes) -> Any:
|
|
|
264
264
|
config = config_cls.from_dict(encoded["config_dict"])
|
|
265
265
|
else: # pragma: no cover - defensive
|
|
266
266
|
config = config_cls(**encoded["config_dict"])
|
|
267
|
-
model = model_cls(config)
|
|
268
267
|
state_dict = pickle.loads(encoded["state_bytes"])
|
|
268
|
+
model = model_cls(config)
|
|
269
|
+
first_tensor = next(iter(state_dict.values()), None)
|
|
270
|
+
if TORCH_MODULE is not None and isinstance(first_tensor, TORCH_MODULE.Tensor):
|
|
271
|
+
model = model.to(first_tensor.device)
|
|
269
272
|
_load_module_state_dict(model, state_dict)
|
|
270
273
|
model.train(bool(encoded["training"]))
|
|
271
274
|
_validate_module_device(model)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|