A page for anyone in a project, built for the one who knows least: an Excel, CSV or JSONL file of questions and answers, previewed; a model; a name; who may use it; and a button. The weights to train on are found from where the model's came (a GGUF repository's base model), the card's memory from their size, the node as the one with the most free. When it is done the adapter is published by itself (a llama.cpp model's replicas replaced to load it) and is a model of its own in the chat and the API. The project's by default; its members share it wider (confirmed, and never wider than the knowledge bases its pairs came from) or delete it. One trains at a time per project. ctl train start needs only --model and --data now, and --publish publishes when done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
2.6 KiB
HTML
50 lines
2.6 KiB
HTML
{{/* The one menu every signed-in page draws. The order never changes and the
|
|
page you are on is marked, not offered, so moving between pages reads as
|
|
moving within one program. */}}
|
|
{{define "nav"}}<nav class="menu" aria-label="{{t "nav.aria"}}">
|
|
{{- if and .Org (not .Admin)}}
|
|
<a href="/org"{{if eq .Current "org"}} aria-current="page"{{end}}>{{t "nav.org"}}</a>
|
|
<span class="menu-gap" aria-hidden="true"></span>
|
|
{{- end}}
|
|
{{- if and .Admin (eq .Role "billing")}}
|
|
<a href="/admin/usage"{{if eq .Current "usage"}} aria-current="page"{{end}}>{{t "nav.usage"}}</a>
|
|
<a href="/admin/quotas"{{if eq .Current "quotas"}} aria-current="page"{{end}}>{{t "nav.quotas"}}</a>
|
|
<span class="menu-gap" aria-hidden="true"></span>
|
|
{{- else if .Admin}}
|
|
<a href="/admin"{{if eq .Current "cluster"}} aria-current="page"{{end}}>{{t "nav.cluster"}}</a>
|
|
{{- /* Limits and usage are tabs of the people page, not pages of their own. */}}
|
|
<a href="/admin/users"{{if eq .Current "people"}} aria-current="page"{{end}}>{{t "nav.people"}}</a>
|
|
{{- if .Mirror}}
|
|
<a href="/admin/mirror"{{if eq .Current "mirror"}} aria-current="page"{{end}}>{{t "nav.mirror"}}</a>
|
|
{{- end}}
|
|
{{- if .Guard}}
|
|
<a href="/admin/guard"{{if eq .Current "guard"}} aria-current="page"{{end}}>{{t "nav.guard"}}</a>
|
|
{{- end}}
|
|
{{- if .MCP}}
|
|
<a href="/admin/mcp"{{if eq .Current "mcp"}} aria-current="page"{{end}}>{{t "nav.mcp"}}</a>
|
|
{{- end}}
|
|
{{- if .Settings}}
|
|
<a href="/admin/settings"{{if eq .Current "settings"}} aria-current="page"{{end}}>{{t "nav.settings"}}</a>
|
|
{{- end}}
|
|
{{- /* An organization is a panel of the people page for an administrator;
|
|
/org is the managers' view, and leads an administrator there. */}}
|
|
<span class="menu-gap" aria-hidden="true"></span>
|
|
{{- end}}
|
|
<a href="/chat"{{if eq .Current "chat"}} aria-current="page"{{end}}>{{t "nav.chat"}}</a>
|
|
{{- if .Images}}
|
|
<a href="/images"{{if eq .Current "images"}} aria-current="page"{{end}}>{{t "nav.images"}}</a>
|
|
{{- end}}
|
|
{{- if .Meshes}}
|
|
<a href="/3d"{{if eq .Current "meshes"}} aria-current="page"{{end}}>{{t "nav.meshes"}}</a>
|
|
{{- end}}
|
|
{{- if .Train}}
|
|
<a href="/train"{{if eq .Current "train"}} aria-current="page"{{end}}>{{t "nav.train"}}</a>
|
|
{{- end}}
|
|
<a href="/profile"{{if eq .Current "keys"}} aria-current="page"{{end}}>{{t "nav.account"}}</a>
|
|
<a href="/docs"{{if eq .Current "docs"}} aria-current="page"{{end}}>{{t "nav.docs"}}</a>
|
|
<form method="post" action="/logout" class="inline">
|
|
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
|
<button type="submit" class="link">{{t "nav.sign_out"}}</button>
|
|
</form>
|
|
</nav>{{end}}
|