Offer a model that loads on demand in the chat picker
The picker listed what had an endpoint, and a model at min 0 has none until somebody asks for it. On this page a message is the asking, so an on-demand model could never be started from here: mistral-nemo-12b-instruct sat in the catalog, served by nothing, and absent from the one place someone went to try it. Such a model is now offered, marked "not loaded", with a note saying the first message fetches the weights and starts the engine, and that until it is up the reply is "the model is loading". A model stopped outright — max 0 — is still left out, because nothing would load it and offering it would only produce an error. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b56130ace3
commit
2cae92d113
4 files changed
+71
-1
No files matched your search
@@ -20,7 +20,7 @@
|
||||
{{if .Models}}
|
||||
<div class="chat-bar">
|
||||
<label class="inline-label">Model
|
||||
<select id="model">{{range .Models}}<option value="{{.Name}}" data-simulated="{{if .Simulated}}1{{else}}0{{end}}">{{.Name}}{{if .Simulated}} (simulated){{end}}</option>{{end}}</select>
|
||||
<select id="model">{{range .Models}}<option value="{{.Name}}" data-simulated="{{if .Simulated}}1{{else}}0{{end}}" data-ondemand="{{if .OnDemand}}1{{else}}0{{end}}">{{.Name}}{{if .Simulated}} (simulated){{end}}{{if .OnDemand}} (not loaded){{end}}</option>{{end}}</select>
|
||||
</label>
|
||||
<button id="reset" type="button" class="link">New conversation</button>
|
||||
</div>
|
||||
@@ -30,6 +30,13 @@
|
||||
replies are placeholder text, not inference.
|
||||
</p>
|
||||
|
||||
<p id="ondemand-note" class="note" hidden>
|
||||
This model is not running. The first message loads it onto a node, which
|
||||
means fetching its weights and starting the engine — minutes for a large
|
||||
model. Until it is up, a message is answered with "the model is loading";
|
||||
send it again once it is.
|
||||
</p>
|
||||
|
||||
<div id="log" class="chat-log" aria-live="polite"></div>
|
||||
|
||||
<form id="composer" class="chat-composer">
|
||||
@@ -70,9 +77,11 @@ access to it.</p>
|
||||
// The note follows the picker rather than the reply: someone should know what
|
||||
// they are about to get before they spend a minute waiting for it.
|
||||
const simNote = document.getElementById("sim-note");
|
||||
const onDemandNote = document.getElementById("ondemand-note");
|
||||
function showSimNote() {
|
||||
const opt = model.selectedOptions[0];
|
||||
simNote.hidden = !opt || opt.dataset.simulated !== "1";
|
||||
onDemandNote.hidden = !opt || opt.dataset.ondemand !== "1";
|
||||
}
|
||||
model.addEventListener("change", showSimNote);
|
||||
showSimNote();
|
||||
|
||||
Reference in new issue
Block a user