Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +6 -0
index.html
CHANGED
|
@@ -40,6 +40,12 @@ let m = pick ? (MODELS.find((x) => new RegExp(pick, "i").test(x.name)) || MODELS
|
|
| 40 |
m = { ...bit, kappaUrl: base, name: bit.name + " · via " + (hf || new URL(base).host) };
|
| 41 |
}
|
| 42 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
// GROUND the model as on-device Q (a base/instruct model has NO self-knowledge — without this it confabulates
|
| 45 |
// a generic "I run on OpenAI/AWS cloud servers" identity, which is false). Injected as the SYSTEM turn.
|
|
|
|
| 40 |
m = { ...bit, kappaUrl: base, name: bit.name + " · via " + (hf || new URL(base).host) };
|
| 41 |
}
|
| 42 |
}
|
| 43 |
+
// ?stream=layer → page the model layer-by-layer instead of resident. For t2 (BitNet) this exercises the DRAFT
|
| 44 |
+
// t2-streaming engine path (correctness first; the .qvf remote path adds fast-first-token). Default = resident.
|
| 45 |
+
{
|
| 46 |
+
const sm = params.get("stream");
|
| 47 |
+
if (sm && sm !== "false" && sm !== "resident") m = { ...m, stream: sm };
|
| 48 |
+
}
|
| 49 |
|
| 50 |
// GROUND the model as on-device Q (a base/instruct model has NO self-knowledge — without this it confabulates
|
| 51 |
// a generic "I run on OpenAI/AWS cloud servers" identity, which is false). Injected as the SYSTEM turn.
|