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
46 lines
2.1 KiB
C++
46 lines
2.1 KiB
C++
/* iface.h -- what the tools need from components outside tools/.
|
|
*
|
|
* 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 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"
|
|
#include "format/radfile.h"
|
|
|
|
#include "text/gguf.h"
|
|
#include "build/startup.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace rad {
|
|
|
|
/* 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 */
|
|
/* 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 */
|
|
/* 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);
|
|
|
|
/* `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 */
|