Spaces:
Running
on
A10G
Running
on
A10G
GitLab CI
commited on
Commit
·
d7bd042
1
Parent(s):
f6ff669
Update game build from GitLab CI
Browse files
server/__main__.py
CHANGED
@@ -233,10 +233,21 @@ if __name__ == "__main__":
|
|
233 |
|
234 |
num_devices = torch.cuda.device_count()
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
# Start the audio transcriber thread
|
237 |
transcribers = [
|
238 |
AudioTranscriber(audio_queue, text_queue, device_index=i % num_devices)
|
239 |
-
for i in range(
|
|
|
|
|
240 |
]
|
241 |
for transcriber in transcribers:
|
242 |
transcriber.start()
|
|
|
233 |
|
234 |
num_devices = torch.cuda.device_count()
|
235 |
|
236 |
+
device_vram_gb: float = float(
|
237 |
+
torch.cuda.get_device_properties(0).total_memory / (1024**3)
|
238 |
+
)
|
239 |
+
num_3gb_units = int(device_vram_gb) // 3
|
240 |
+
|
241 |
+
logger.info(
|
242 |
+
f"Device 0 has {device_vram_gb:.1f}GB VRAM, equivalent to {num_3gb_units} units of Whisper"
|
243 |
+
)
|
244 |
+
|
245 |
# Start the audio transcriber thread
|
246 |
transcribers = [
|
247 |
AudioTranscriber(audio_queue, text_queue, device_index=i % num_devices)
|
248 |
+
for i in range(
|
249 |
+
4 if os.getenv("DEBUG") == "True" else num_3gb_units * num_devices
|
250 |
+
)
|
251 |
]
|
252 |
for transcriber in transcribers:
|
253 |
transcriber.start()
|
server/static/godot/index.html
CHANGED
@@ -98,7 +98,7 @@ body {
|
|
98 |
|
99 |
<script src="index.js"></script>
|
100 |
<script>
|
101 |
-
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"ensureCrossOriginIsolationHeaders":false,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":
|
102 |
const GODOT_THREADS_ENABLED = false;
|
103 |
const engine = new Engine(GODOT_CONFIG);
|
104 |
|
|
|
98 |
|
99 |
<script src="index.js"></script>
|
100 |
<script>
|
101 |
+
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"ensureCrossOriginIsolationHeaders":false,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":23852176,"index.wasm":35376909},"focusCanvas":true,"gdextensionLibs":[],"serviceWorker":"index.service.worker.js"};
|
102 |
const GODOT_THREADS_ENABLED = false;
|
103 |
const engine = new Engine(GODOT_CONFIG);
|
104 |
|
server/static/godot/index.pck
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4166e93f2e8812ae2cfc06d6102f7b3a3e30c5683f56670e96e553b54f4c9481
|
3 |
+
size 23852176
|
server/static/godot/index.service.worker.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
// Incrementing CACHE_VERSION will kick off the install event and force
|
5 |
// previously cached resources to be updated from the network.
|
6 |
/** @type {string} */
|
7 |
-
const CACHE_VERSION = '
|
8 |
/** @type {string} */
|
9 |
const CACHE_PREFIX = 'Magame-sw-cache-';
|
10 |
const CACHE_NAME = CACHE_PREFIX + CACHE_VERSION;
|
|
|
4 |
// Incrementing CACHE_VERSION will kick off the install event and force
|
5 |
// previously cached resources to be updated from the network.
|
6 |
/** @type {string} */
|
7 |
+
const CACHE_VERSION = '1738162010|11390072';
|
8 |
/** @type {string} */
|
9 |
const CACHE_PREFIX = 'Magame-sw-cache-';
|
10 |
const CACHE_NAME = CACHE_PREFIX + CACHE_VERSION;
|