Archived
radiance 1.0.5
- Answers no longer stop partway through. A request without max_tokens got 512 tokens, and a reasoning model can think for thousands before it answers, so the reply ended inside the reasoning with finish_reason "length", which chat clients do not show. It now gets whatever the context leaves after the prompt, as in vLLM. --default-max-tokens N sets a number, and --max-tokens-cap bounds every request. - Qwen3.8-Flash-Next in Docker without --security-opt seccomp=unconfined is refused at startup, in about a second, with a message naming that option. It used to load the whole model and then fail every request as "unsupported", and a restart policy reloaded it over and over. The n-gram table is read through io_uring, which Docker's default seccomp profile refuses. - A request the engine fails says what failed, in the 500 or the stream's error event. It read "the engine failed this request: ok". - Flash-Next no longer crashes at startup about one start in seven (a race between the parallel declares that size the activation arena). - rad-convert no longer needs io_uring, so it converts in a sandbox that forbids it.
This commit is contained in:
1 parent
09fb41735b
commit
6c11671bdd
30 files changed
+541
-120
No files matched your search
+6
-5
@@ -383,7 +383,7 @@ void Engine::phase_mark(int p) {
|
||||
int Engine::fail_loop(int st) {
|
||||
stopping_.store(true, std::memory_order_release);
|
||||
if (barrier_) barrier_->abort();
|
||||
sched_.shutdown("the engine stopped on an error and is not serving");
|
||||
sched_.shutdown("the engine stopped on an error and is not serving", st < 0 ? st : RAD_E_STATE);
|
||||
loop_status_.store(st < 0 ? st : RAD_E_STATE, std::memory_order_release);
|
||||
return st;
|
||||
}
|
||||
@@ -2027,12 +2027,13 @@ int Engine::run_server() {
|
||||
o.default_reasoning_effort = cfg_.reasoning_effort;
|
||||
o.default_sampling = resolve_sampling_defaults(meta_, file_ != nullptr, cfg_);
|
||||
o.default_dry_breakers_set = cfg_.sample_dry_seq_breakers.has_value();
|
||||
/* -1 leaves ServerOptions' own default. `auto` (0) is resolved per request against the
|
||||
* context, so it needs one to resolve against. */
|
||||
/* -1 leaves ServerOptions' own default, which is `auto` (0). That is resolved per request
|
||||
* against the context, so it needs one to resolve against. */
|
||||
if (cfg_.default_max_tokens >= 0) o.default_max_tokens = cfg_.default_max_tokens;
|
||||
if (o.default_max_tokens == 0 && o.max_ctx <= 0) {
|
||||
RAD_ERR("--default-max-tokens auto is what the context leaves, and this model states no "
|
||||
"context; pass --max-model-len");
|
||||
RAD_ERR("a request that names no max_tokens gets what the context leaves after its prompt "
|
||||
"(--default-max-tokens auto), and this model states no context; pass "
|
||||
"--max-model-len, or --default-max-tokens N");
|
||||
return RAD_E_INVAL;
|
||||
}
|
||||
o.max_tokens_cap = cfg_.max_tokens_cap;
|
||||
|
||||
Reference in new issue
Block a user