This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Deadcode 1e968f6e1d 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
2026-10-16 18:25:18 +02:00

49 lines
1.8 KiB
C++

/* tokenizer_ucd.h -- the Unicode properties a pre-tokeniser pattern can name.
*
* The tables are generated (tools/gen_tokenizer_ucd.cpp) by querying Oniguruma, the engine
* HuggingFace tokenizers matches Split patterns with. A tokenizer.json pattern means what it means
* there, so Oniguruma is the only definition used: its general categories at its Unicode version,
* its `\s`, `\d` and `\w`, its scripts, and its case-folding orbits for `(?i)`.
*/
#pragma once
#include <cstddef>
#include <cstdint>
namespace rad {
namespace ucd {
/* General category, in the generator's order. */
enum Gc : uint8_t {
Lu, Ll, Lt, Lm, Lo, Mn, Mc, Me, Nd, Nl, No,
Pc, Pd, Ps, Pe, Pi, Pf, Po, Sm, Sc, Sk, So,
Zs, Zl, Zp, Cc, Cf, Cs, Co, Cn,
kGcCount
};
/* A run of one category, from `first` to the next run's `first`. */
struct GcRun { uint32_t first; uint32_t gc; };
struct CpRange { uint32_t first, last; };
struct ScriptTable { const char* name; const CpRange* ranges; size_t n; };
extern const GcRun k_gc_runs[];
extern const size_t k_gc_runs_n;
extern const CpRange k_white_space[]; /* \s */
extern const size_t k_white_space_n;
extern const CpRange k_digit[]; /* \d */
extern const size_t k_digit_n;
extern const CpRange k_word[]; /* \w as an atom, and the word test of \b */
extern const size_t k_word_n;
extern const CpRange k_word_class[]; /* \w inside a bracket class */
extern const size_t k_word_class_n;
extern const ScriptTable k_scripts[];
extern const size_t k_scripts_n;
/* Case-folding orbits: each is its length followed by its members. */
extern const uint32_t k_case_orbits[];
extern const size_t k_case_orbits_n;
/* Codepoints that (?i) also matches against a multi-codepoint sequence. */
extern const uint32_t k_case_multi[];
extern const size_t k_case_multi_n;
} /* namespace ucd */
} /* namespace rad */