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
+22
-22
@@ -1,14 +1,12 @@
|
||||
/* iface.h -- what the tools need from components outside tools/.
|
||||
*
|
||||
* rad-info, rad-convert, rad-kbench and rad-tune sit on top of three things the
|
||||
* format component does not own: the GGUF reader and the tokenizer.json parser (core/text), and
|
||||
* the plugin registry and the declare phase (core/plugin, core/build). This header is the one
|
||||
* place those expectations are written down, so they are one file to check rather than one per
|
||||
* tool to grep, and so the tools have a single seam if any of them moves.
|
||||
* rad-info, rad-convert, rad-kbench and rad-tune build on the GGUF reader and tokenizer.json parser
|
||||
* (core/text) and the plugin registry and declare phase (core/plugin, core/build). This header is
|
||||
* the tools' single seam onto them.
|
||||
*
|
||||
* rad-convert, rad-kbench and rad-tune all need exactly the same thing -- the plugins loaded in
|
||||
* hierarchy order and the declare phase run against a model's metadata -- because all three are
|
||||
* the engine's startup with a different last step (spec §4.2, §15, §17).
|
||||
* rad-convert, rad-kbench and rad-tune are the engine's startup with a different last step: plugins
|
||||
* loaded in hierarchy order and the declare phase run against a model's metadata (spec §4.4, §15,
|
||||
* §17).
|
||||
*/
|
||||
#pragma once
|
||||
#include "rad_core.h"
|
||||
@@ -22,24 +20,26 @@
|
||||
|
||||
namespace rad {
|
||||
|
||||
/* The vocab pipeline lives in core/text: VocabBuild, parse_tokenizer_json, vocab_from_gguf and
|
||||
* vocab_serialize. A tool that needs it includes text/tokenizer.h directly -- there is nothing to
|
||||
* restate here, and restating it is how two definitions of VocabBuild come to exist. The
|
||||
* container's half of that contract is RadWriter::intern_string() and set_vocab_section(). */
|
||||
|
||||
/* Plugin loading and the declare phase are core/build/startup.h -- they are the engine's startup,
|
||||
* and rad-convert, rad-kbench and rad-tune are that startup with a different last step. */
|
||||
/* The vocab pipeline (VocabBuild, parse_tokenizer_json, vocab_from_gguf, vocab_serialize) is in
|
||||
* text/tokenizer.h; the container side is RadWriter::intern_string() and set_vocab_section().
|
||||
* Plugin loading and the declare phase are in build/startup.h. */
|
||||
|
||||
/* ================================================================== shared CLI plumbing */
|
||||
/* Every tool parses its own flags -- five hand-rolled loops is less machinery than one options
|
||||
* library, and each usage text is then written for its own tool. What IS shared is the small set
|
||||
* of things they must agree about. */
|
||||
/* Each tool parses its own flags; these are the few things they must agree on. */
|
||||
|
||||
std::string rad_home(); /* $RADIANCE_HOME, else the install prefix */
|
||||
std::vector<std::string> rad_hierarchy_from_env(); /* $RADIANCE_KERNELS, colon separated */
|
||||
std::vector<std::string> rad_split_list(const std::string& s); /* ':' or ',' separated */
|
||||
std::vector<std::string> rad_hierarchy_from_env(); /* $RADIANCE_KERNELS */
|
||||
/* A kernel list as --kernels and $RADIANCE_KERNELS spell it: ',' or ':' separated, the same rule
|
||||
* the engine reads them by (util/kernel_list.h). */
|
||||
std::vector<std::string> rad_split_list(const std::string& s);
|
||||
|
||||
/* Bytes in human units, right-aligned in `w` columns. Every report that prints a size uses it. */
|
||||
std::string rad_humanb_w(int64_t bytes, int w);
|
||||
/* `text` as a whole decimal number in [lo, hi]: the engine's rule for a numeric flag
|
||||
* (core/config.cpp), so "12k", "8x", "", "auto" and an overflow are refused rather than read as
|
||||
* their leading digits or as 0. False with the reason in *why. */
|
||||
bool rad_parse_int(const char* text, int64_t lo, int64_t hi, int64_t* out, std::string* why);
|
||||
|
||||
/* rad_parse_int for a flag's value: the number, or a message naming `tool` and `flag` on stderr
|
||||
* and exit status 2. */
|
||||
int64_t rad_flag_int(const char* tool, const char* flag, const char* text, int64_t lo, int64_t hi);
|
||||
|
||||
} /* namespace rad */
|
||||
Reference in new issue
Block a user