Archived
radiance 1.7.0
- 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
This commit is contained in:
1 parent
b068190326
commit
1e968f6e1d
739 files changed
+128447
-84632
No files matched your search
@@ -1,17 +1,14 @@
|
||||
/* toolparse_legacy.h -- a whole-reply parser built on llama.cpp's PEG auto-parser, kept as the
|
||||
* ORACLE the differential tests compare the streaming parser (core/text/chatparse.h) against. It
|
||||
* is test code: it is built into the test binaries and the acceptance tool, never into the engine.
|
||||
/* toolparse_legacy.h -- a whole-reply parser built on llama.cpp's PEG auto-parser, the oracle the
|
||||
* differential tests compare the streaming parser (core/text/chatparse.h) against. Built into the
|
||||
* test binaries and the acceptance tool, never into the engine.
|
||||
*
|
||||
* It is the whole legacy path, layer for layer, because its answer is what all of them produce
|
||||
* together:
|
||||
* It keeps every layer of the legacy path, since the answer is what they produce together:
|
||||
*
|
||||
* * ToolParser -- llama.cpp's PEG parser, generated per request by the vendored auto-parser from
|
||||
* the chat template (vendor/llama/common/chat-auto-parser*.cpp) and run over the WHOLE reply;
|
||||
* * legacy_parse -- the bridge's reading of that: a turn terminator trimmed off the content,
|
||||
* and, when the strict parse produced no call but the content still carries call syntax,
|
||||
* calls lifted out of the text by hand;
|
||||
* * LegacyDeltaStream -- a streaming diff that re-parses the accumulated reply on every chunk and
|
||||
* sends what has grown.
|
||||
* * ToolParser -- llama.cpp's PEG parser, generated per request from the chat template by the
|
||||
* vendored auto-parser (vendor/llama/common/chat-auto-parser*.cpp), run over the whole reply;
|
||||
* * legacy_parse -- the bridge: trims a turn terminator off the content and, when the strict
|
||||
* parse produced no call but the content still carries call syntax, lifts calls by hand;
|
||||
* * LegacyDeltaStream -- re-parses the accumulated reply on every chunk and sends what grew.
|
||||
*/
|
||||
#pragma once
|
||||
#include "rad_internal.h"
|
||||
@@ -38,9 +35,9 @@ struct ParsedReply {
|
||||
std::vector<ToolCall> tool_calls;
|
||||
};
|
||||
|
||||
/* The by-hand lifter: `<function name="N"><param name="K">V</param></function>` and
|
||||
* `<tool_call><function=N><parameter=K>V</parameter></function></tool_call>` spans read out of
|
||||
* `text` whatever the model's format, appended to `out` and removed. */
|
||||
/* The by-hand lifter: reads `<function name="N"><param name="K">V</param></function>` and
|
||||
* `<tool_call><function=N><parameter=K>V</parameter></function></tool_call>` spans out of `text`
|
||||
* regardless of the model's format, appends them to `out` and removes them. */
|
||||
size_t toolparse_lift_xml_calls(std::string& text, std::vector<ToolCall>& out);
|
||||
|
||||
/* The earliest byte of `text` that could begin a call in either spelling, or npos. */
|
||||
@@ -74,8 +71,8 @@ struct Answer {
|
||||
Answer legacy_parse(const ToolParser& tp, const std::string& text, bool is_partial,
|
||||
bool want_calls, const std::vector<std::string>& terminators);
|
||||
|
||||
/* The legacy streaming diff over the accumulated text: returns how many bytes of deltas it sends,
|
||||
* and fills the concatenation of what it sent. */
|
||||
/* The legacy streaming diff over the accumulated text. push() returns the bytes of deltas sent;
|
||||
* the accessors hold the concatenation of what was sent. */
|
||||
class LegacyDeltaStream {
|
||||
public:
|
||||
LegacyDeltaStream(const ToolParser& tp, bool want_calls, std::vector<std::string> terminators)
|
||||
|
||||
Reference in new issue
Block a user