Spaces:
Sleeping
Sleeping
Factor Studios
commited on
Update test_ai_integration.py
Browse files- test_ai_integration.py +3 -3
test_ai_integration.py
CHANGED
|
@@ -111,8 +111,8 @@ def test_ai_integration():
|
|
| 111 |
with websocket_manager() as storage:
|
| 112 |
components['storage'] = storage # Save storage reference
|
| 113 |
|
| 114 |
-
# Initialize virtual GPU stack with unlimited WebSocket storage
|
| 115 |
-
chip_for_loading = Chip(chip_id=0, vram_size_gb=None) #
|
| 116 |
components['chips'].append(chip_for_loading)
|
| 117 |
|
| 118 |
# Initialize VRAM with WebSocket storage
|
|
@@ -120,7 +120,7 @@ def test_ai_integration():
|
|
| 120 |
vram.storage = storage # Share WebSocket connection
|
| 121 |
components['vram'] = vram
|
| 122 |
|
| 123 |
-
# Set up AI accelerator
|
| 124 |
ai_accelerator_for_loading = chip_for_loading.ai_accelerator
|
| 125 |
ai_accelerator_for_loading.vram = vram # Use WebSocket-backed VRAM
|
| 126 |
ai_accelerator_for_loading.initialize_tensor_cores() # Ensure tensor cores are ready
|
|
|
|
| 111 |
with websocket_manager() as storage:
|
| 112 |
components['storage'] = storage # Save storage reference
|
| 113 |
|
| 114 |
+
# Initialize virtual GPU stack with unlimited WebSocket storage and shared connection
|
| 115 |
+
chip_for_loading = Chip(chip_id=0, vram_size_gb=None, storage=storage) # Pass shared storage
|
| 116 |
components['chips'].append(chip_for_loading)
|
| 117 |
|
| 118 |
# Initialize VRAM with WebSocket storage
|
|
|
|
| 120 |
vram.storage = storage # Share WebSocket connection
|
| 121 |
components['vram'] = vram
|
| 122 |
|
| 123 |
+
# Set up AI accelerator - note it already has the shared storage
|
| 124 |
ai_accelerator_for_loading = chip_for_loading.ai_accelerator
|
| 125 |
ai_accelerator_for_loading.vram = vram # Use WebSocket-backed VRAM
|
| 126 |
ai_accelerator_for_loading.initialize_tensor_cores() # Ensure tensor cores are ready
|