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
+7
-3
@@ -79,7 +79,9 @@ public:
|
||||
/* Terminal. Idempotent -- the first call wins, so a cancel racing a natural stop does not
|
||||
* produce two finish reasons. */
|
||||
void finish(Finish f);
|
||||
void fail(int rad_status);
|
||||
/* `why` says what failed, in a sentence a client can read; a string that outlives the sink
|
||||
* (a literal), or null. */
|
||||
void fail(int rad_status, const char* why = nullptr);
|
||||
|
||||
/* The scheduler polls this to learn that the client hung up, and frees the blocks (spec §14).
|
||||
* It is also told by IScheduler::cancel(); this is the cheap path that needs no lookup. */
|
||||
@@ -100,6 +102,7 @@ public:
|
||||
bool done() const { return finish_.load(std::memory_order_acquire) != (int)Finish::None; }
|
||||
Finish finish_reason() const { return (Finish)finish_.load(std::memory_order_acquire); }
|
||||
int status() const { return status_.load(std::memory_order_acquire); }
|
||||
const char* why() const { return why_.load(std::memory_order_acquire); }
|
||||
bool overflowed() const { return overflow_.load(std::memory_order_acquire); }
|
||||
|
||||
/* The HTTP thread calls this when the peer disappears. It does NOT free anything itself --
|
||||
@@ -135,6 +138,7 @@ private:
|
||||
|
||||
std::atomic<int> finish_{(int)Finish::None};
|
||||
std::atomic<int> status_{RAD_OK};
|
||||
std::atomic<const char*> why_{nullptr};
|
||||
std::atomic<bool> overflow_{false};
|
||||
std::atomic<bool> cancel_{false};
|
||||
std::atomic<bool> quiesced_{false}; /* the producer will not touch this object again */
|
||||
@@ -159,8 +163,8 @@ inline bool sink_push(void* s, int32_t token, float logprob = 0.0f) {
|
||||
inline void sink_finish(void* s, Finish f) {
|
||||
if (s) static_cast<Sink*>(s)->finish(f);
|
||||
}
|
||||
inline void sink_fail(void* s, int rad_status) {
|
||||
if (s) static_cast<Sink*>(s)->fail(rad_status);
|
||||
inline void sink_fail(void* s, int rad_status, const char* why = nullptr) {
|
||||
if (s) static_cast<Sink*>(s)->fail(rad_status, why);
|
||||
}
|
||||
inline bool sink_cancelled(const void* s) {
|
||||
return s && static_cast<const Sink*>(s)->cancel_requested();
|
||||
|
||||
Reference in new issue
Block a user