Archived
radiance 1.0.6
- A text prompt to /v1/completions reads the model's control tokens as tokens, as vLLM and llama.cpp do. A client that renders its own chat template can send "<|im_start|>user ..." and the model sees the turn markers; they used to reach it as plain text. /tokenize and /v1/embeddings read a text prompt the same way, and a prompt that already opens with BOS gets no second one. - The VRAM budget counts the engine's own hardware queues, which the driver backs with about 33 MiB of VRAM each, and the KV tiers' copy staging. Both used to come out of --gpu-headroom-mib: Qwen3.8-Flash-Next ran with 9 MiB free under load against the 96 MiB it asked to keep, the room a kernel's first launch allocates from. The startup receipt has a "hardware queues" line. - Running the whole model on the CPU (RADIANCE_HOST_DOMAIN=1 with no GPU visible) no longer repeats words or answers differently at temperature 0. A decode step could read its input token before the copy that delivers it had landed. - The README says to clone the repository before installing.
This commit is contained in:
1 parent
6c11671bdd
commit
6df26315b9
25 files changed
+432
-82
No files matched your search
@@ -86,6 +86,28 @@ int TierExec::configure(Registry* reg, KVManager* kv, IdleTiers* tiers, SSDTier*
|
||||
return RAD_OK;
|
||||
}
|
||||
|
||||
TierExec::Sizes TierExec::sizes(int64_t entry_bytes, int64_t max_ctx, int64_t block_size) {
|
||||
Sizes s;
|
||||
if (entry_bytes <= 0) return s;
|
||||
/* 16 MiB of staging a rank, as entries, between 64 and 4096 of them: the reasons are at the
|
||||
* call in bringup. A copy out is four batches, and a restore is a whole chain, as long as the
|
||||
* longest context the server takes. */
|
||||
s.max_batch = (int)std::min<int64_t>(4096, std::max<int64_t>(64, (16ll << 20) / entry_bytes));
|
||||
s.max_copy = 4ll * s.max_batch;
|
||||
const int64_t bs = std::max<int64_t>(1, block_size);
|
||||
s.max_chain = (std::max<int64_t>(1, max_ctx) + bs - 1) / bs + 1;
|
||||
return s;
|
||||
}
|
||||
|
||||
/* What device_init() allocates, each allocation rounded to the pool granule the card hands VRAM
|
||||
* out in. */
|
||||
int64_t TierExec::device_bytes(int64_t entry_bytes, int n_groups, const Sizes& s) {
|
||||
if (entry_bytes <= 0 || n_groups <= 0 || s.max_batch <= 0) return 0;
|
||||
const int64_t idx_n = (int64_t)n_groups * (s.max_copy + (int64_t)kRing * s.max_chain);
|
||||
return align_up((int64_t)s.max_batch * entry_bytes, (int64_t)RAD_ALIGN_POOL) +
|
||||
align_up(idx_n * (int64_t)sizeof(int32_t), (int64_t)RAD_ALIGN_POOL);
|
||||
}
|
||||
|
||||
void TierExec::close() {
|
||||
/* Nothing may still be reading the buffers about to be freed. */
|
||||
if (stream_) (void)rad_stream_sync(stream_);
|
||||
|
||||
Reference in new issue
Block a user