Archived
radiance 1.3.0
- #47: llama-server's request fields, routes and sampler order, and /props (with baKon's model entry: max_model_len, root and capabilities on /v1/models, and /v1/models/:id) - new APIs: Anthropic's Messages API (/v1/messages), OpenAI's Responses API (/v1/responses), llama-server's /completion and /infill, logprobs (OpenAI's logprobs and top_logprobs, up to 20; llama-server's n_probs), OpenAI's legacy `functions`, and X-Api-Key beside the bearer key - #4: --model takes a Hugging Face repo id (owner/name), fetched before startup into ~/.cache/radiance/hf or --download-dir and checked for changes at every start (redxherring) - #46: --tp 3 --tp-wire wht6 serves -- a three-rank two-shot all-reduce with uneven shards and the tiered-int8 wire over it (baKon); scripts/cardclock.py names what holds each card's clock under load (baKon) - CPU-only serving works again; --kernels names the kernel libraries to load; a model the loaded libraries cannot fully serve refuses at startup instead of failing its first request; --vram-kv-mib and --vram-weights-mib are gone (the split is automatic) - --embedding-placement ram is the default, and `auto` is gone - #40: Swift 1.5 recipes; rad-convert reads which shard holds a tensor from the index - #53: the pinned host pool gets huge pages where shmem THP is off; #57: a crash on video with an odd frame width is fixed
This commit is contained in:
1 parent
6a2ee986d6
commit
89cee7ce41
107 files changed
+6849
-1091
No files matched your search
@@ -622,6 +622,40 @@ TEST(an_op_with_no_host_kernel_is_a_miss_per_band_not_a_failure) {
|
||||
CHECK(host_miss);
|
||||
}
|
||||
|
||||
/* A DEVICE HOLE IS DECIDED PER INSTANCE. Two declarations of one op, one with a weight and one
|
||||
* without, are two instances with bands of their own: the weighted one's device miss is covered
|
||||
* by its host kernel, because the planner moves it to the host by placing its weight there, and
|
||||
* on a card only the weightless instance's miss is a hole. */
|
||||
TEST(a_device_hole_is_decided_per_instance) {
|
||||
Program p;
|
||||
p.ops.resize(3);
|
||||
p.ops[1].op = "rmsnorm"; /* no weight */
|
||||
p.ops[1].index = 1;
|
||||
p.ops[2].op = "rmsnorm";
|
||||
p.ops[2].index = 2;
|
||||
p.ops[2].weights = { 1 };
|
||||
auto miss = [](int32_t index, int domain) {
|
||||
Program::Miss m;
|
||||
m.op = "rmsnorm";
|
||||
m.span = "M <= 64";
|
||||
m.why = "no kernel matched";
|
||||
m.domain = domain;
|
||||
m.index = index;
|
||||
return m;
|
||||
};
|
||||
p.misses.push_back(miss(2, RAD_DOMAIN_DEVICE)); /* the weighted one; its host kernel exists */
|
||||
CHECK_EQ((int)p.device_holes(false).size(), 0);
|
||||
|
||||
p.misses.push_back(miss(1, RAD_DOMAIN_DEVICE)); /* the weightless one */
|
||||
CHECK_EQ((int)p.device_holes(false).size(), 1);
|
||||
CHECK_EQ(p.device_holes(false)[0]->index, 1);
|
||||
CHECK_EQ((int)p.device_holes(true).size(), 0); /* the host backend runs both on the host */
|
||||
|
||||
p.misses.push_back(miss(2, RAD_DOMAIN_HOST)); /* no host kernel for the weighted one */
|
||||
CHECK_EQ((int)p.device_holes(true).size(), 1);
|
||||
CHECK_EQ(p.device_holes(true)[0]->index, 2);
|
||||
}
|
||||
|
||||
/* ================================================================== init, after the whole graph */
|
||||
TEST(a_refusing_init_becomes_a_miss_and_not_an_abort) {
|
||||
NEED_PLUGIN(reg)
|
||||
|
||||
Reference in new issue
Block a user