Archived
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves every shipped container - Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime - /v1/messages works with Claude Code as it ships (gearwave00001) - a long agent conversation keeps its cached history when the client rewrites its last turn (manueloverride) - a stream's first event goes out with the first token, so llama-benchy measures prefill right - opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42) - four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b) - NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA adapters (baKon) - many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool arguments and the CPU's vision and audio encoders - plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
22 lines
2.1 KiB
Bash
Executable File
22 lines
2.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# The four hardest tool-call shapes to parse (an array argument, two calls in one reply, prose
|
|
# before a call, plain chat with tools available) against a speculating container such as the
|
|
# DSpark one (scripts/mcserve.sh); speculation must not disturb the XML tool grammar.
|
|
# finish_reason tool_calls shows the server parsed the calls; a call returned as prose in
|
|
# `content` is one the parser did not close.
|
|
# Attaches to a running server on P= (default 8100).
|
|
P=${P:-8100}
|
|
T='[{"type":"function","function":{"name":"edit","description":"edit a file","parameters":{"type":"object","properties":{"path":{"type":"string"},"edits":{"type":"array","items":{"type":"object","properties":{"oldText":{"type":"string"},"newText":{"type":"string"}}}}},"required":["path","edits"]}}},{"type":"function","function":{"name":"bash","description":"run a shell command","parameters":{"type":"object","properties":{"cmd":{"type":"string"}},"required":["cmd"]}}},{"type":"function","function":{"name":"write","description":"write a file","parameters":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"]}}}]'
|
|
ask() { # $1 label $2 user message
|
|
r=$(curl -s -m 180 http://127.0.0.1:$P/v1/chat/completions -H 'Content-Type: application/json' \
|
|
-d "{\"model\":\"m\",\"messages\":[{\"role\":\"user\",\"content\":$2}],\"tools\":$T,\"max_tokens\":2500,\"temperature\":0}")
|
|
echo "$r" | jq -c --arg l "$1" '{test:$l, finish:.choices[0].finish_reason,
|
|
calls:[.choices[0].message.tool_calls[]?|{n:.function.name,a:(.function.arguments|tostring|.[0:90])}],
|
|
leak:(.choices[0].message.content//""|test("<function|<param|CDATA")),
|
|
content:((.choices[0].message.content//"")|.[0:70])}'
|
|
}
|
|
ask "edit-array-arg" '"In /work/t.py change the text def minimise: to def minimax: -- use the edit tool."'
|
|
ask "two-calls" '"Run ls /work and then run pwd, using the bash tool for each."'
|
|
ask "prose-then-call" '"Create /work/h.py containing print(\"hello\"). Explain what you will do first, then do it."'
|
|
ask "plain-chat" '"In one sentence, what is a hash map?"'
|