Archived
radiance 1.2.4
- EmbeddingGemma 2 (google/embeddinggemma-2): text, image, video and audio embeddings on the card (libr4d) and on the CPU (libavx); prompt_name, Matryoshka dimensions, image budgets, mixed content parts and the messages form on /v1/embeddings - #43: on serves that lend the activation arena to the experts (Qwen3.8-Flash-Next with expert_tiered), every image after the first read its rows from the wrong place -- garbage replies, or an earlier request's image. Fixed - the Qwen vision towers' attention resolves on the card again (broken on main after 1.2.3, never released) - #42: a warning at startup when amdgpu cwsr_enable is 0, and a stalled queue is reported as slow or stuck; the guide covers the GPU-hang-and-reset chain
This commit is contained in:
1 parent
05af4db458
commit
7d840861af
76 files changed
+8324
-467
No files matched your search
@@ -183,6 +183,25 @@ TEST(base64_decode_rejects_a_character_outside_the_alphabet) {
|
||||
CHECK_EQ(out.size(), 0u);
|
||||
}
|
||||
|
||||
/* Every length mod 3 round-trips; padding and whitespace are skipped wherever they stand, which
|
||||
* splits the four-digit blocks the decoder takes at once; anything else is refused. */
|
||||
TEST(base64_round_trips_and_refuses_stray_bytes) {
|
||||
std::vector<uint8_t> bytes(1000);
|
||||
for (size_t i = 0; i < bytes.size(); ++i) bytes[i] = (uint8_t)((i * 2654435761u) >> 13);
|
||||
for (size_t n : { 0, 1, 2, 3, 4, 5, 999, 1000 }) {
|
||||
std::vector<uint8_t> got;
|
||||
CHECK(base64_decode(base64_encode(bytes.data(), n), &got));
|
||||
CHECK(got == std::vector<uint8_t>(bytes.begin(), bytes.begin() + (long)n));
|
||||
}
|
||||
std::string e = base64_encode(bytes.data(), 100), spaced;
|
||||
for (size_t i = 0; i < e.size(); ++i) { spaced += e[i]; if (i % 7 == 3) spaced += (i % 2 ? "\n" : " "); }
|
||||
std::vector<uint8_t> got;
|
||||
CHECK(base64_decode(spaced, &got));
|
||||
CHECK(got == std::vector<uint8_t>(bytes.begin(), bytes.begin() + 100));
|
||||
CHECK(!base64_decode("QUJD*REVG", &got));
|
||||
CHECK(!base64_decode("QUJDREVG\x80", &got));
|
||||
}
|
||||
|
||||
/* ================================================================== ids and errors */
|
||||
|
||||
TEST(a_random_id_carries_its_prefix_and_does_not_repeat) {
|
||||
|
||||
Reference in new issue
Block a user