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
@@ -22,6 +22,7 @@
|
||||
#include <cstdio>
|
||||
#include <memory>
|
||||
#include <fstream>
|
||||
#include <malloc.h>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -283,6 +284,31 @@ TEST(every_admitted_picture_format_decodes) {
|
||||
}
|
||||
}
|
||||
|
||||
/* A PICTURE WIDER THAN A WHOLE NUMBER OF THE SCALER'S VECTORS: 4:2:0 at 1788 wide is converted to
|
||||
* RGB 12 bytes past 1788 x 3. Into a buffer of exactly that size those bytes were the next heap
|
||||
* chunk's header, and the server aborted at a later allocation (Codeberg #57). The mmap threshold
|
||||
* is raised so the RGB comes from the heap proper, as it does in a server that has freed large
|
||||
* buffers before; glibc then checks the neighbouring headers on every free below. */
|
||||
TEST(a_picture_of_an_awkward_width_converts_inside_its_buffer) {
|
||||
if (!decoder_available()) { std::printf(" SKIP no media decoder in this build\n"); return; }
|
||||
const std::vector<uint8_t> b = media_file("red-1788x282.jpg");
|
||||
REQUIRE(!b.empty());
|
||||
mallopt(M_MMAP_THRESHOLD, 64 << 20);
|
||||
for (int i = 0; i < 8; ++i) {
|
||||
Frame f;
|
||||
std::string why;
|
||||
const int rc = decode_image(b.data(), b.size(), int64_t(1) << 24, &f, &why);
|
||||
if (rc != RAD_OK) std::printf(" %s\n", why.c_str());
|
||||
CHECK_EQ(rc, RAD_OK);
|
||||
CHECK_EQ(f.w, 1788);
|
||||
CHECK_EQ(f.h, 282);
|
||||
CHECK(is_red(f));
|
||||
std::vector<uint8_t> behind(4096, 1);
|
||||
CHECK_EQ(behind[0], 1);
|
||||
}
|
||||
mallopt(M_MMAP_THRESHOLD, 128 << 10);
|
||||
}
|
||||
|
||||
TEST(every_admitted_video_format_decodes) {
|
||||
if (!decoder_available()) { std::printf(" SKIP no media decoder in this build\n"); return; }
|
||||
for (const char* name : { "red-h264.mp4", "red-hevc.mp4", "red-av1.mp4", "red-vp8.webm",
|
||||
|
||||
Reference in new issue
Block a user