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
+13
-13
@@ -1,13 +1,13 @@
|
||||
/* systemone.h -- POST /v1/systemone: LiquidAI d1's decisions, a distribution read off one position.
|
||||
*
|
||||
* d1 is a decision model. It is given a state (text, any JSON value, pictures, or a mix) and named
|
||||
* questions, and each answer is a softmax over a handful of tokens at the position right after the
|
||||
* assistant header: `yes` / `no` for a noul, one code a option for a choice, a digit a level for a
|
||||
* score. Nothing is generated. The API and the prompt are the model's own (its prompt.py and api.py
|
||||
* on the Hub); this file is that adapter, and the engine knows nothing of it beyond
|
||||
* Request::token_scores -- "read these ids' raw logits at the prompt's last position".
|
||||
* questions; each answer is a softmax over a few tokens at the position right after the assistant
|
||||
* header: `yes` / `no` for a noul, one code per option for a choice, one digit per level for a
|
||||
* score. Nothing is generated. The API and prompt are the model's own (prompt.py and api.py on the
|
||||
* Hub). The engine sees only Request::token_scores: read these ids' raw logits at the prompt's last
|
||||
* position.
|
||||
*
|
||||
* A container serves it only when it says it is d1 (`decision.type` = `d1`, set at convert with
|
||||
* Served only when the container declares d1 (`decision.type` = `d1`, set at convert with
|
||||
* `--set decision.type=d1`); the HF config does not declare it.
|
||||
*/
|
||||
#pragma once
|
||||
@@ -23,12 +23,12 @@ namespace server {
|
||||
|
||||
struct DecisionQuestion {
|
||||
std::string name, type; /* type: noul | choice | score */
|
||||
/* One entry an answer, in the response's order: "true"/"false", the option names, the
|
||||
* levels "0".."n-1". */
|
||||
/* One entry per answer, in response order: "true"/"false", the option names, or the levels
|
||||
* "0".."n-1". */
|
||||
std::vector<std::string> labels;
|
||||
std::vector<std::string> legend; /* score: each level's description */
|
||||
/* The ids read at the answer slot, and for each answer the indices into them of the
|
||||
* spellings it scores as: an answer's score is its best spelling's. */
|
||||
/* The ids read at the answer slot, and per answer the indices of its spellings among them;
|
||||
* an answer scores as its best spelling. */
|
||||
std::vector<int32_t> candidates;
|
||||
std::vector<std::vector<size_t>> groups;
|
||||
std::vector<int32_t> tokens; /* the whole prompt */
|
||||
@@ -41,7 +41,7 @@ struct DecisionRequest {
|
||||
/* How many leading tokens every question's prompt shares: the state, tokenised once. 0 for
|
||||
* a single question, which d1 tokenises as one text. */
|
||||
int32_t trunk = 0;
|
||||
/* What the model reads, as d1 counts it: the shared head once and each question's own tail. */
|
||||
/* Input tokens as d1 counts them: the shared head once plus each question's tail. */
|
||||
int64_t input_tokens = 0;
|
||||
};
|
||||
|
||||
@@ -50,8 +50,8 @@ struct DecisionRequest {
|
||||
int parse_decision_request(const std::string& body, const OaiDeps& d, const OaiLimits& lim,
|
||||
const std::string& model_id, DecisionRequest* out, ApiError* err);
|
||||
|
||||
/* One answer from its candidates' raw logits: each answer scores its best spelling, a softmax over
|
||||
* the answers is the distribution. Non-finite logits are an error, not a distribution. */
|
||||
/* One question's answer from its candidates' raw logits: each answer scores its best spelling and
|
||||
* a softmax over the answers is the distribution. A non-finite logit is an error. */
|
||||
int decision_answer(const DecisionQuestion& q, const std::vector<float>& logits, json* out,
|
||||
ApiError* err);
|
||||
|
||||
|
||||
Reference in new issue
Block a user