hqde 0.1.3__tar.gz → 0.1.4__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.
Potentially problematic release.
This version of hqde might be problematic. Click here for more details.
- {hqde-0.1.3/hqde.egg-info → hqde-0.1.4}/PKG-INFO +1 -1
- {hqde-0.1.3 → hqde-0.1.4}/hqde/core/hqde_system.py +5 -1
- {hqde-0.1.3 → hqde-0.1.4/hqde.egg-info}/PKG-INFO +1 -1
- {hqde-0.1.3 → hqde-0.1.4}/pyproject.toml +1 -1
- {hqde-0.1.3 → hqde-0.1.4}/LICENSE +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/MANIFEST.in +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/README.md +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/__init__.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/__main__.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/core/__init__.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/distributed/__init__.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/distributed/fault_tolerance.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/distributed/hierarchical_aggregator.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/distributed/load_balancer.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/distributed/mapreduce_ensemble.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/py.typed +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/quantum/__init__.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/quantum/quantum_aggregator.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/quantum/quantum_noise.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/quantum/quantum_optimization.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/utils/__init__.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/utils/config_manager.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/utils/data_utils.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/utils/performance_monitor.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde/utils/visualization.py +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde.egg-info/SOURCES.txt +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde.egg-info/dependency_links.txt +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde.egg-info/requires.txt +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/hqde.egg-info/top_level.txt +0 -0
- {hqde-0.1.3 → hqde-0.1.4}/setup.cfg +0 -0
|
@@ -153,7 +153,11 @@ class DistributedEnsembleManager:
|
|
|
153
153
|
|
|
154
154
|
def create_ensemble_workers(self, model_class, model_kwargs: Dict[str, Any]):
|
|
155
155
|
"""Create distributed ensemble workers."""
|
|
156
|
-
|
|
156
|
+
# Calculate GPU fraction per worker (divide available GPUs among workers)
|
|
157
|
+
num_gpus = torch.cuda.device_count() if torch.cuda.is_available() else 0
|
|
158
|
+
gpu_per_worker = num_gpus / self.num_workers if num_gpus > 0 else 0
|
|
159
|
+
|
|
160
|
+
@ray.remote(num_gpus=gpu_per_worker)
|
|
157
161
|
class EnsembleWorker:
|
|
158
162
|
def __init__(self, model_class, model_kwargs):
|
|
159
163
|
self.model = model_class(**model_kwargs)
|
|
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
|
|
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
|