merge 1.12.0: gemma4 E2B/E4B and Nemotron Bolt E4B arrive; the ref2va audio, rows and ABI work carried across

conv1d keeps both stride forms: upstream's causal codec downsample with cu_div (Fish Audio) and the port's explicit-pad non-causal one (the H3 audio encoder's), in libref, libavx and libr4d alike; the ABI takes upstream's 27 on top of the port's RadVideoGenBatch growth.
This commit is contained in:
gearwave00001 committed 2026-10-24 19:03:26 -05:00
commit 7c3b5ab7d5
285 files changed
+30500 -2898

No files matched your search

+6 -4
View File
@@ -24,6 +24,7 @@
#include "../rad_internal.h"
#include "../rad_core.h"
#include "safetensors.h"
#include "torch_zip.h"
#include "../text/gguf.h"
#include <deque>
@@ -212,6 +213,7 @@ private:
int open_diffusers();
int open_sgm();
int add_companions();
int add_torch_files();
int open_gguf(const std::string& path);
void detect_import();
@@ -220,6 +222,7 @@ private:
GgufFile gguf_;
MetaOwn meta_;
std::vector<std::unique_ptr<SafeTensorsFile>> shards_;
std::vector<std::unique_ptr<TorchZipFile>> torch_;
std::vector<SrcTensor> tensors_;
std::unordered_map<std::string, size_t> index_;
std::unordered_map<std::string, size_t> index_shard_; /* name -> shards_ position */
@@ -287,10 +290,9 @@ struct CkptWeight {
* values in the logical shape, which ckpt_rows_f32 serves. Not trivial, so a recipe rule
* stores it. */
std::vector<float> derived;
/* An `import` rule's form, applied by ckpt_plane_rows (also `imported`). `rounded` counts the
* shipped scales `form.scale` does not hold exactly and `max_rel` is their largest relative
* change, both found by ckpt_import_form. */
bool reform = false;
/* An `import` rule's form, applied by ckpt_plane_rows (the weight is then `imported`).
* `rounded` counts the shipped scales `form.scale` does not hold exactly and `max_rel` is their
* largest relative change, both found by ckpt_import_form. */
ImportForm form{};
int64_t rounded = 0;
double max_rel = 0;