mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
- The image the Flash FP4-Local and Ornith lanes share keeps a tag for each lane, but a lane loaded from the cockpit after the other had pulled the image got none (its preparation, which tags, did not run). The other lane's uninstall then left the image untagged and said a prune could reclaim it, and a docker image prune would have taken it from a unit that runs it. pin_untag now hands the image to an installed unit that runs it by its digest, under its lane's tag, and says so. - none and minimal win over a request's own enable_thinking on the Ornith lane, as on the Qwen lanes: omp, as pi-gen.py writes its config, sends enable_thinking true beside its level, and its minimal reasoned in full. - pi sends Ornith its levels as they are, its off as none: Kolibri's map, copied, sent its minimal as low, which the proxy keeps whole. - A test of install.sh's left-out lane ran install-ornith-122b.sh for real (copied with its execute bit): it is neutralized as the other side installers are. - The guard tests that list the vLLM installers and units name the Ornith lane's (one fetch, the docker group before docker, die, no progress mount of its own, the image and video uninstalls' lists), and switch-model.sh's --fetch has its Ornith case. The tests of the first three fail on the commit before this one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
2.1 KiB
Python
55 lines
2.1 KiB
Python
#!/usr/bin/env python3
|
|
"""The Ornith 1.5 122B lane's opencode provider, in one place.
|
|
|
|
install.sh's generator writes it into the opencode config once the lane is installed, and
|
|
switch-model.sh adds it to a config written before that, so both take it from here and the two
|
|
cannot drift.
|
|
|
|
Usage: oc-ornith.py <base_url> <api-key file> <ctx> <out> <name>
|
|
prints {"provider": {"ornith-122b": ...}}, the shape oc-merge-limits.py --add-providers reads.
|
|
"""
|
|
import json
|
|
import sys
|
|
|
|
# Ornith's chat template (its checkpoint's, served as published) reads enable_thinking and no
|
|
# reasoning effort: thinking is on by default, at its full depth. The box maps the levels onto it,
|
|
# as decided on 2026-10-21: none turns the reasoning off, every other level keeps it whole (the proxy
|
|
# turns minimal off too, as on the Nemotron lanes). So two variants, the default first, as a picker lists it.
|
|
VARIANTS = {
|
|
"high": {"chat_template_kwargs": {"enable_thinking": True}},
|
|
"none": {"chat_template_kwargs": {"enable_thinking": False}},
|
|
}
|
|
|
|
|
|
def provider(base_url, key_file, ctx, out, name):
|
|
"""The provider block. The model reads images, so opencode may attach one."""
|
|
return {
|
|
"npm": "@ai-sdk/openai-compatible",
|
|
"name": "Ornith 1.5 122B (DGX Spark)",
|
|
"options": {"baseURL": base_url, "apiKey": f"{{file:{key_file}}}"},
|
|
"models": {"ornith-1.5-122b": {
|
|
"name": name,
|
|
"limit": {"context": ctx, "input": ctx, "output": out},
|
|
"variants": {lvl: json.loads(json.dumps(v)) for lvl, v in VARIANTS.items()},
|
|
"attachment": True,
|
|
"modalities": {"input": ["text", "image"], "output": ["text"]},
|
|
}},
|
|
}
|
|
|
|
|
|
def main():
|
|
if len(sys.argv) != 6:
|
|
print(__doc__.strip(), file=sys.stderr)
|
|
sys.exit(2)
|
|
base_url, key_file, ctx, out, name = sys.argv[1:6]
|
|
try:
|
|
ctx, out = int(ctx), int(out)
|
|
except ValueError:
|
|
print("ctx and out are token counts", file=sys.stderr)
|
|
sys.exit(2)
|
|
print(json.dumps({"provider": {"ornith-122b": provider(base_url, key_file, ctx, out, name)}}, indent=2))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|