Archived
radiance 2.0.0
Radiance becomes a multi-model engine: one process serves several models behind one port, loads each when a request names it, parks it in host memory or restores it from its container, and shares the cards between them (docs/MULTIMODEL.md). The configuration is one YAML file; the command line flags are gone (`radiance --config FILE`, hot reload on SIGHUP). Formats. IQ8R (rotated int8) and IQR-V4 replace FP8 and MXFP4 as whole-model formats, with an int8 KV cache (`kv-cache-dtype: i8`) in place of the fp8 one. Containers whose weights are block FP8, MXFP4, M2XFP4, NVFP4 or ParoQuant are refused at startup by the name of the first such weight. Not served until they have int8 containers: GLM-5.3-Flash, Ornith-1.5, Sage-A1.5, Nemotron-3.5-Bolt-74B, Ling-3.0-flash, drama-3 and Anima's FP8 container; Nemotron-3.5-Bolt-E4B, the Gemma 4 31B DFlash containers and MiniCPM5-2B bf16 serve without their drafter. 1.17.0 serves all of them. Speed. Chained launches for Qwen3.8-27B, Gemma 4, Gemma 3 and the small bf16 models, a new Qwen3.8-Flash-Next container (IQR-V4 experts, int8 trunk) with its decode step and prefill reworked, and a reworked adaptive draft window. Deployment. deploy/compose has two fleet files, tp1.yaml and tp2.yaml, each with its configuration beside it, in place of the per-model files. `host-pool-mib` is a model's host pool in all, split among its ranks. The dashboard is rebuilt: an hour of history kept by the server, each accelerator's memory by model, model states over time. Merged since 1.17.0: Nemotron-3.5-Bolt-74B-A9B by keptn42 (#339); GLM-5.3-Flash on four cards by AnimusNull (#397); chained launches for Flash-Next's decode step (#396) and preempted requests keeping their prefix and place (#405) by mici81; --prefill-interleave auto by Code000 (#410); eight more libr3d kernels and the w4a4 reference by RikshaDriver (#403, #407, #408); libr3d large-BAR and E4M3 decode fixes by neuromanMD (#438, #439); int4/int5 decode tiles by Kezi (#426); attention for Nanbeige 4.3 33B by everplays (#417); expert_stats_report.py by baKon (#431). Fixed: #398, #402, #419, #437 (dschmitz's patch); added the metrics of #392, and multi-model serving as asked for in #367 and #109. Plugin ABI 39: out-of-tree plugins need to be rebuilt. Thanks to @keptn42, @AnimusNull, @mici81, @Code000, @RikshaDriver, @neuromanMD, @Kezi, @everplays, @baKon and @dschmitz.
This commit is contained in:
1 parent
b4c04b6042
commit
ddcb9c69bb
696 files changed
+120770
-56596
No files matched your search
+38
-6
@@ -7,12 +7,14 @@
|
||||
*/
|
||||
#include "rad_test.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "plugin/registry.h"
|
||||
#include "text/chatfmt.h"
|
||||
#include "text/chatparse.h"
|
||||
#include "rad_abi_layout.h"
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include "util/json.h"
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -86,15 +88,17 @@ std::string band_names(const std::vector<Band>& b) {
|
||||
return s;
|
||||
}
|
||||
|
||||
/* The shipped libr4d.so, or "" for the case to leave. A build without HIP makes none, which skips;
|
||||
* a HIP build always makes it, so there its absence is a missing in-tree artifact. */
|
||||
/* The shipped libr4d.so, or "" for the case to leave. A build without HIP makes none, and a
|
||||
* HIP build whose GPU targets name no RDNA4 card makes none either (libr4d serves gfx12
|
||||
* only); both skip. A build that did make the library (RAD_TEST_HAS_LIBR4D, from
|
||||
* tests/CMakeLists.txt) has it missing only by accident, which strict mode refuses. */
|
||||
std::string libr4d() {
|
||||
const std::string so = home() + "/kernels/libr4d.so";
|
||||
if (access(so.c_str(), R_OK) == 0) return so;
|
||||
#ifdef RAD_HAVE_HIP
|
||||
#ifdef RAD_TEST_HAS_LIBR4D
|
||||
radtest::artifact_missing(__FILE__, __LINE__, so);
|
||||
#else
|
||||
radtest::skip("no %s (a build without HIP)", so.c_str());
|
||||
radtest::skip("no %s (this build targets no RDNA4 card)", so.c_str());
|
||||
#endif
|
||||
return "";
|
||||
}
|
||||
@@ -289,7 +293,7 @@ TEST(an_architecture_plugin_may_declare_its_reply_format) {
|
||||
/* And the parser reads a reply in it. */
|
||||
std::shared_ptr<const ReplyFormat> rf;
|
||||
CHECK_OK(ReplyFormat::compile(f, &rf, &why));
|
||||
const nlohmann::ordered_json tools = nlohmann::ordered_json::parse(
|
||||
const Json tools = Json::parse(
|
||||
R"([{"type":"function","function":{"name":"go","parameters":{"type":"object",)"
|
||||
R"("properties":{"n":{"type":"integer"},"s":{"type":"string"}}}}}])");
|
||||
ReplyOptions ro;
|
||||
@@ -434,6 +438,33 @@ TEST(selection_takes_the_highest_declared_priority) {
|
||||
CHECK(t.reason.empty());
|
||||
}
|
||||
|
||||
/* Engines in one process select from one loaded set (registry.h, Sharing): a share sees the same
|
||||
* rows, keeps its own selection table, cannot load into the set, and closing it leaves the set
|
||||
* loaded for the others. */
|
||||
TEST(a_shared_registry_selects_from_the_same_set_and_keeps_its_own_table) {
|
||||
Registry r;
|
||||
CHECK_OK(load(r));
|
||||
std::unique_ptr<Registry> a = r.share();
|
||||
std::unique_ptr<Registry> b = r.share();
|
||||
CHECK(r.shared());
|
||||
CHECK_EQ(a->plugins().size(), r.plugins().size());
|
||||
CHECK_EQ(picked(a->select("t_gemm", gemm_geom(16), RAD_DOMAIN_DEVICE)), "t_gemm_m16");
|
||||
CHECK_EQ(a->n_selections(), (size_t)1);
|
||||
CHECK_EQ(b->n_selections(), (size_t)0);
|
||||
CHECK_EQ(r.n_selections(), (size_t)0);
|
||||
|
||||
CHECK(b->load_dir(kernels_dir(), {}) < 0); /* the set is shared: loaded once */
|
||||
|
||||
a->close();
|
||||
CHECK(a->plugins().empty());
|
||||
CHECK(!r.plugins().empty());
|
||||
CHECK_EQ(picked(b->select("t_gemm", gemm_geom(65), RAD_DOMAIN_DEVICE)), "t_gemm_any");
|
||||
b.reset();
|
||||
a.reset();
|
||||
CHECK(!r.shared());
|
||||
CHECK_EQ(picked(r.select("t_gemm", gemm_geom(17), RAD_DOMAIN_DEVICE)), "t_gemm_m64");
|
||||
}
|
||||
|
||||
/* Specificity is declared, not derived, and a tie goes to the row declared first. */
|
||||
TEST(selection_breaks_ties_on_declaration_order) {
|
||||
Registry r;
|
||||
@@ -1085,6 +1116,7 @@ TEST(libr4d_resolves_the_mla_attention_by_rows) {
|
||||
* band of every op the row form adds resolves on the device, up to a 4096-token step's run of
|
||||
* 512 rows. A form libr4d does not serve would stop a TP8 start at "resolved to no kernel". */
|
||||
TEST(libr4d_resolves_every_band_of_glm_mla_split_by_rows) {
|
||||
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
|
||||
const std::string so = libr4d();
|
||||
if (so.empty()) return;
|
||||
Registry r;
|
||||
|
||||
Reference in new issue
Block a user