Spaces:
Running
Running
chore: deploy Laya Tetris 57877b3
Browse files- deploy-sha.txt +1 -1
- flutter_bootstrap.js +1 -1
- webgpu_bridge/llama_webgpu_bridge.js +25 -0
- webgpu_bridge/llama_webgpu_core.js +0 -0
- webgpu_bridge/llama_webgpu_core.wasm +2 -2
- webgpu_bridge/llama_webgpu_core_mem64.js +0 -0
- webgpu_bridge/llama_webgpu_core_mem64.wasm +2 -2
- webgpu_bridge/manifest.json +32 -32
- webgpu_bridge/sha256sums.txt +5 -5
deploy-sha.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
57877b33697cc655d22a8dadbd7825e646131e96
|
flutter_bootstrap.js
CHANGED
|
@@ -42,6 +42,6 @@ _flutter.buildConfig = {"engineRevision":"5d531788691ec3404cac0cee66ead4007b1773
|
|
| 42 |
|
| 43 |
_flutter.loader.load({
|
| 44 |
serviceWorkerSettings: {
|
| 45 |
-
serviceWorkerVersion: "
|
| 46 |
}
|
| 47 |
});
|
|
|
|
| 42 |
|
| 43 |
_flutter.loader.load({
|
| 44 |
serviceWorkerSettings: {
|
| 45 |
+
serviceWorkerVersion: "291830225" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
| 46 |
}
|
| 47 |
});
|
webgpu_bridge/llama_webgpu_bridge.js
CHANGED
|
@@ -31,6 +31,11 @@ var EMPTY_EMBEDDING_CAPABILITIES = {
|
|
| 31 |
audio: false
|
| 32 |
};
|
| 33 |
var EMBEDDING_MEDIA_MARKER = "<__media__>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
function embeddingAssetVersion(...sources) {
|
| 35 |
for (const source of [...sources, import.meta.url]) {
|
| 36 |
try {
|
|
@@ -4942,10 +4947,14 @@ var LlamaWebGpuBridgeRuntime = class {
|
|
| 4942 |
this._abortRequested = false;
|
| 4943 |
await this._preflightEmbeddingInputs(inputs);
|
| 4944 |
const normalize = options?.normalize !== false;
|
|
|
|
| 4945 |
const vectors = [];
|
| 4946 |
for (const text of inputs) {
|
| 4947 |
if (this._abortRequested) throw createAbortError("Batch embedding was cancelled.");
|
| 4948 |
vectors.push(await (typeof text === "string" ? this.embed(text, { normalize }) : this._embedParts(text, { normalize })));
|
|
|
|
|
|
|
|
|
|
| 4949 |
}
|
| 4950 |
return vectors;
|
| 4951 |
}
|
|
@@ -5396,6 +5405,12 @@ var BridgeWorkerProxy = class {
|
|
| 5396 |
const sequences = Array.isArray(args?.[1]) ? args[1].length : 0;
|
| 5397 |
return clamp(explicitGlobal, 10 * 60 * 1e3 + sequences * DECISION_WORKER_TIMEOUT_PER_SEQUENCE_MS);
|
| 5398 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5399 |
return clamp(explicitGlobal, 12e4);
|
| 5400 |
}
|
| 5401 |
async dispose() {
|
|
@@ -8433,6 +8448,16 @@ function installBridgeWorkerHost() {
|
|
| 8433 |
self.postMessage({ type: "result", id, value: value2 });
|
| 8434 |
return;
|
| 8435 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8436 |
if (method === "runDecision") {
|
| 8437 |
const value2 = await bridge.runDecision(args[0], args[1]);
|
| 8438 |
const transfers = [];
|
|
|
|
| 31 |
audio: false
|
| 32 |
};
|
| 33 |
var EMBEDDING_MEDIA_MARKER = "<__media__>";
|
| 34 |
+
var EMBEDDING_MEDIA_WORKER_TIMEOUT_MS = 10 * 60 * 1e3;
|
| 35 |
+
var EMBED_BATCH_PROGRESS_OPTION = "__llamadartEmbedBatchProgress";
|
| 36 |
+
function hasEmbeddingMediaParts(input) {
|
| 37 |
+
return Array.isArray(input) && input.some((part) => part?.type !== "text");
|
| 38 |
+
}
|
| 39 |
function embeddingAssetVersion(...sources) {
|
| 40 |
for (const source of [...sources, import.meta.url]) {
|
| 41 |
try {
|
|
|
|
| 4947 |
this._abortRequested = false;
|
| 4948 |
await this._preflightEmbeddingInputs(inputs);
|
| 4949 |
const normalize = options?.normalize !== false;
|
| 4950 |
+
const onProgress = options?.[EMBED_BATCH_PROGRESS_OPTION];
|
| 4951 |
const vectors = [];
|
| 4952 |
for (const text of inputs) {
|
| 4953 |
if (this._abortRequested) throw createAbortError("Batch embedding was cancelled.");
|
| 4954 |
vectors.push(await (typeof text === "string" ? this.embed(text, { normalize }) : this._embedParts(text, { normalize })));
|
| 4955 |
+
if (typeof onProgress === "function") {
|
| 4956 |
+
onProgress({ completed: vectors.length, total: inputs.length });
|
| 4957 |
+
}
|
| 4958 |
}
|
| 4959 |
return vectors;
|
| 4960 |
}
|
|
|
|
| 5405 |
const sequences = Array.isArray(args?.[1]) ? args[1].length : 0;
|
| 5406 |
return clamp(explicitGlobal, 10 * 60 * 1e3 + sequences * DECISION_WORKER_TIMEOUT_PER_SEQUENCE_MS);
|
| 5407 |
}
|
| 5408 |
+
if (method === "embed" || method === "embedBatch") {
|
| 5409 |
+
const inputs = method === "embed" ? [args?.[0]] : Array.isArray(args?.[0]) ? args[0] : [];
|
| 5410 |
+
if (inputs.some(hasEmbeddingMediaParts)) {
|
| 5411 |
+
return clamp(explicitGlobal, EMBEDDING_MEDIA_WORKER_TIMEOUT_MS);
|
| 5412 |
+
}
|
| 5413 |
+
}
|
| 5414 |
return clamp(explicitGlobal, 12e4);
|
| 5415 |
}
|
| 5416 |
async dispose() {
|
|
|
|
| 8448 |
self.postMessage({ type: "result", id, value: value2 });
|
| 8449 |
return;
|
| 8450 |
}
|
| 8451 |
+
if (method === "embedBatch") {
|
| 8452 |
+
const options = args[1] && typeof args[1] === "object" ? { ...args[1] } : {};
|
| 8453 |
+
const onProgress = (progress) => {
|
| 8454 |
+
self.postMessage({ type: "event", id, event: "progress", payload: progress });
|
| 8455 |
+
};
|
| 8456 |
+
options[EMBED_BATCH_PROGRESS_OPTION] = onProgress;
|
| 8457 |
+
const value2 = await bridge.embedBatch(args[0], options);
|
| 8458 |
+
self.postMessage({ type: "result", id, value: value2 });
|
| 8459 |
+
return;
|
| 8460 |
+
}
|
| 8461 |
if (method === "runDecision") {
|
| 8462 |
const value2 = await bridge.runDecision(args[0], args[1]);
|
| 8463 |
const transfers = [];
|
webgpu_bridge/llama_webgpu_core.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
webgpu_bridge/llama_webgpu_core.wasm
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:f9a81ecb3f5720f1da8b634712c53e94a38680308ca4587c0d5a453337f8f273
|
| 3 |
+
size 10645196
|
webgpu_bridge/llama_webgpu_core_mem64.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
webgpu_bridge/llama_webgpu_core_mem64.wasm
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:5b57ab7ac36ed5c7b8f569a2e39be11dd598d66cc790c8231eef155de416e339
|
| 3 |
+
size 10926272
|
webgpu_bridge/manifest.json
CHANGED
|
@@ -5,33 +5,33 @@
|
|
| 5 |
"size_bytes": 21934
|
| 6 |
},
|
| 7 |
"llama_webgpu_bridge.js": {
|
| 8 |
-
"sha256": "
|
| 9 |
-
"size_bytes":
|
| 10 |
},
|
| 11 |
"llama_webgpu_bridge_worker.js": {
|
| 12 |
"sha256": "47bbfa0fe897e708455b9497e9aa41d2e94489c329300c33b12936fb3169deca",
|
| 13 |
"size_bytes": 257
|
| 14 |
},
|
| 15 |
"llama_webgpu_core.js": {
|
| 16 |
-
"sha256": "
|
| 17 |
"size_bytes": 123402
|
| 18 |
},
|
| 19 |
"llama_webgpu_core.wasm": {
|
| 20 |
-
"sha256": "
|
| 21 |
-
"size_bytes":
|
| 22 |
},
|
| 23 |
"llama_webgpu_core_mem64.js": {
|
| 24 |
-
"sha256": "
|
| 25 |
-
"size_bytes":
|
| 26 |
},
|
| 27 |
"llama_webgpu_core_mem64.wasm": {
|
| 28 |
-
"sha256": "
|
| 29 |
-
"size_bytes":
|
| 30 |
}
|
| 31 |
},
|
| 32 |
"assets_repository": "leehack/llama-web-bridge-assets",
|
| 33 |
-
"bridge_assets_tag": "v0.1.
|
| 34 |
-
"bridge_commit": "
|
| 35 |
"bridge_repository": "leehack/llama-web-bridge",
|
| 36 |
"capabilities": {
|
| 37 |
"memory64": true,
|
|
@@ -66,39 +66,39 @@
|
|
| 66 |
"size_bytes": 21934
|
| 67 |
},
|
| 68 |
"llama_webgpu_bridge.js": {
|
| 69 |
-
"sha256": "
|
| 70 |
-
"size_bytes":
|
| 71 |
},
|
| 72 |
"llama_webgpu_bridge_worker.js": {
|
| 73 |
"sha256": "47bbfa0fe897e708455b9497e9aa41d2e94489c329300c33b12936fb3169deca",
|
| 74 |
"size_bytes": 257
|
| 75 |
},
|
| 76 |
"llama_webgpu_core.js": {
|
| 77 |
-
"sha256": "
|
| 78 |
"size_bytes": 123402
|
| 79 |
},
|
| 80 |
"llama_webgpu_core.wasm": {
|
| 81 |
-
"sha256": "
|
| 82 |
-
"size_bytes":
|
| 83 |
},
|
| 84 |
"llama_webgpu_core_mem64.js": {
|
| 85 |
-
"sha256": "
|
| 86 |
-
"size_bytes":
|
| 87 |
},
|
| 88 |
"llama_webgpu_core_mem64.wasm": {
|
| 89 |
-
"sha256": "
|
| 90 |
-
"size_bytes":
|
| 91 |
}
|
| 92 |
},
|
| 93 |
-
"github_run_id": "
|
| 94 |
-
"github_run_url": "https://github.com/leehack/llama-web-bridge/actions/runs/
|
| 95 |
-
"llama_cpp_commit": "
|
| 96 |
-
"llama_cpp_tag": "v0.
|
| 97 |
-
"native_commit": "
|
| 98 |
-
"native_manifest_sha256": "
|
| 99 |
-
"native_release_tag": "v0.
|
| 100 |
"native_repository": "leehack/llamadart-native",
|
| 101 |
-
"orchestrator_correlation_id": "auto-stable-v0.
|
| 102 |
"qualification_gates": {
|
| 103 |
"multimodal": "passed",
|
| 104 |
"speech_to_text": "required-automated-qualification",
|
|
@@ -107,9 +107,9 @@
|
|
| 107 |
},
|
| 108 |
"release_channel": "stable",
|
| 109 |
"release_rebuild": 0,
|
| 110 |
-
"release_tag": "v0.1.
|
| 111 |
"schema_version": 2,
|
| 112 |
-
"source_commit": "
|
| 113 |
"source_repository": "leehack/llama-web-bridge",
|
| 114 |
"unproven_capabilities": {
|
| 115 |
"hardware_gpu_acceleration": "unavailable-on-hosted-runners",
|
|
@@ -118,7 +118,7 @@
|
|
| 118 |
"speaker_reference_fidelity": "unproven",
|
| 119 |
"wasm32_text_to_speech": "unsupported"
|
| 120 |
},
|
| 121 |
-
"upstream_commit": "
|
| 122 |
"upstream_repository": "ggml-org/llama.cpp",
|
| 123 |
-
"upstream_tag": "v0.
|
| 124 |
}
|
|
|
|
| 5 |
"size_bytes": 21934
|
| 6 |
},
|
| 7 |
"llama_webgpu_bridge.js": {
|
| 8 |
+
"sha256": "38e18458906b6cb3c462fce156569180d307755dd66d39418953574e55ea59b2",
|
| 9 |
+
"size_bytes": 313549
|
| 10 |
},
|
| 11 |
"llama_webgpu_bridge_worker.js": {
|
| 12 |
"sha256": "47bbfa0fe897e708455b9497e9aa41d2e94489c329300c33b12936fb3169deca",
|
| 13 |
"size_bytes": 257
|
| 14 |
},
|
| 15 |
"llama_webgpu_core.js": {
|
| 16 |
+
"sha256": "d693784e27432485fc9732891c03ce113099b32aeb4bd8e0a0ba3d0320f52bc9",
|
| 17 |
"size_bytes": 123402
|
| 18 |
},
|
| 19 |
"llama_webgpu_core.wasm": {
|
| 20 |
+
"sha256": "f9a81ecb3f5720f1da8b634712c53e94a38680308ca4587c0d5a453337f8f273",
|
| 21 |
+
"size_bytes": 10645196
|
| 22 |
},
|
| 23 |
"llama_webgpu_core_mem64.js": {
|
| 24 |
+
"sha256": "282d0934ec2090b13f527e1f01d5740374bdfcc1e75c1f46f9148e7007976a0b",
|
| 25 |
+
"size_bytes": 147159
|
| 26 |
},
|
| 27 |
"llama_webgpu_core_mem64.wasm": {
|
| 28 |
+
"sha256": "5b57ab7ac36ed5c7b8f569a2e39be11dd598d66cc790c8231eef155de416e339",
|
| 29 |
+
"size_bytes": 10926272
|
| 30 |
}
|
| 31 |
},
|
| 32 |
"assets_repository": "leehack/llama-web-bridge-assets",
|
| 33 |
+
"bridge_assets_tag": "v0.1.79",
|
| 34 |
+
"bridge_commit": "fe1b70c86eb96f2932a50606e50583dff1222128",
|
| 35 |
"bridge_repository": "leehack/llama-web-bridge",
|
| 36 |
"capabilities": {
|
| 37 |
"memory64": true,
|
|
|
|
| 66 |
"size_bytes": 21934
|
| 67 |
},
|
| 68 |
"llama_webgpu_bridge.js": {
|
| 69 |
+
"sha256": "38e18458906b6cb3c462fce156569180d307755dd66d39418953574e55ea59b2",
|
| 70 |
+
"size_bytes": 313549
|
| 71 |
},
|
| 72 |
"llama_webgpu_bridge_worker.js": {
|
| 73 |
"sha256": "47bbfa0fe897e708455b9497e9aa41d2e94489c329300c33b12936fb3169deca",
|
| 74 |
"size_bytes": 257
|
| 75 |
},
|
| 76 |
"llama_webgpu_core.js": {
|
| 77 |
+
"sha256": "d693784e27432485fc9732891c03ce113099b32aeb4bd8e0a0ba3d0320f52bc9",
|
| 78 |
"size_bytes": 123402
|
| 79 |
},
|
| 80 |
"llama_webgpu_core.wasm": {
|
| 81 |
+
"sha256": "f9a81ecb3f5720f1da8b634712c53e94a38680308ca4587c0d5a453337f8f273",
|
| 82 |
+
"size_bytes": 10645196
|
| 83 |
},
|
| 84 |
"llama_webgpu_core_mem64.js": {
|
| 85 |
+
"sha256": "282d0934ec2090b13f527e1f01d5740374bdfcc1e75c1f46f9148e7007976a0b",
|
| 86 |
+
"size_bytes": 147159
|
| 87 |
},
|
| 88 |
"llama_webgpu_core_mem64.wasm": {
|
| 89 |
+
"sha256": "5b57ab7ac36ed5c7b8f569a2e39be11dd598d66cc790c8231eef155de416e339",
|
| 90 |
+
"size_bytes": 10926272
|
| 91 |
}
|
| 92 |
},
|
| 93 |
+
"github_run_id": "41061036621",
|
| 94 |
+
"github_run_url": "https://github.com/leehack/llama-web-bridge/actions/runs/41061036621",
|
| 95 |
+
"llama_cpp_commit": "8642541b255bfb5dc39cd351a178be09013a55d6",
|
| 96 |
+
"llama_cpp_tag": "v0.8.0",
|
| 97 |
+
"native_commit": "b7aa5a24ba7b7522e8754440d0289eb0a9ba43ec",
|
| 98 |
+
"native_manifest_sha256": "2f37360a4602334416ec097279d1554c93f70628f00beab202c42c33018340db",
|
| 99 |
+
"native_release_tag": "v0.8.0",
|
| 100 |
"native_repository": "leehack/llamadart-native",
|
| 101 |
+
"orchestrator_correlation_id": "auto-stable-v0.8.0-2f37360a46023344-build-fe1b70c86eb96f29",
|
| 102 |
"qualification_gates": {
|
| 103 |
"multimodal": "passed",
|
| 104 |
"speech_to_text": "required-automated-qualification",
|
|
|
|
| 107 |
},
|
| 108 |
"release_channel": "stable",
|
| 109 |
"release_rebuild": 0,
|
| 110 |
+
"release_tag": "v0.1.79",
|
| 111 |
"schema_version": 2,
|
| 112 |
+
"source_commit": "fe1b70c86eb96f2932a50606e50583dff1222128",
|
| 113 |
"source_repository": "leehack/llama-web-bridge",
|
| 114 |
"unproven_capabilities": {
|
| 115 |
"hardware_gpu_acceleration": "unavailable-on-hosted-runners",
|
|
|
|
| 118 |
"speaker_reference_fidelity": "unproven",
|
| 119 |
"wasm32_text_to_speech": "unsupported"
|
| 120 |
},
|
| 121 |
+
"upstream_commit": "8642541b255bfb5dc39cd351a178be09013a55d6",
|
| 122 |
"upstream_repository": "ggml-org/llama.cpp",
|
| 123 |
+
"upstream_tag": "v0.8.0"
|
| 124 |
}
|
webgpu_bridge/sha256sums.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
47bbfa0fe897e708455b9497e9aa41d2e94489c329300c33b12936fb3169deca llama_webgpu_bridge_worker.js
|
| 5 |
e8babd5eb18a31a3b13fa9487a869c6e6bafa21e65a00e93f5af09ea5afa021b llama_webgpu_bridge.d.ts
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 1 |
+
38e18458906b6cb3c462fce156569180d307755dd66d39418953574e55ea59b2 llama_webgpu_bridge.js
|
| 2 |
+
d693784e27432485fc9732891c03ce113099b32aeb4bd8e0a0ba3d0320f52bc9 llama_webgpu_core.js
|
| 3 |
+
f9a81ecb3f5720f1da8b634712c53e94a38680308ca4587c0d5a453337f8f273 llama_webgpu_core.wasm
|
| 4 |
47bbfa0fe897e708455b9497e9aa41d2e94489c329300c33b12936fb3169deca llama_webgpu_bridge_worker.js
|
| 5 |
e8babd5eb18a31a3b13fa9487a869c6e6bafa21e65a00e93f5af09ea5afa021b llama_webgpu_bridge.d.ts
|
| 6 |
+
282d0934ec2090b13f527e1f01d5740374bdfcc1e75c1f46f9148e7007976a0b llama_webgpu_core_mem64.js
|
| 7 |
+
5b57ab7ac36ed5c7b8f569a2e39be11dd598d66cc790c8231eef155de416e339 llama_webgpu_core_mem64.wasm
|