Archived
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:
commit
7c3b5ab7d5
285 files changed
+30500
-2898
No files matched your search
@@ -391,13 +391,15 @@ struct FakeMultimodal : IMultimodal {
|
||||
std::vector<int32_t> expand = { 0 };
|
||||
bool accept_image = true, accept_video = true, accept_audio = true;
|
||||
std::vector<std::pair<MediaKind, std::vector<uint8_t>>> got;
|
||||
std::vector<MediaOpts> got_opts; /* the options each part was prepared with */
|
||||
bool accepts(MediaKind k) const override {
|
||||
return k == MediaKind::Image ? accept_image : k == MediaKind::Video ? accept_video
|
||||
: accept_audio;
|
||||
}
|
||||
int prepare(MediaKind k, const std::vector<uint8_t>& bytes, const MediaOpts&,
|
||||
int prepare(MediaKind k, const std::vector<uint8_t>& bytes, const MediaOpts& opts,
|
||||
std::shared_ptr<mm::Item>* out, std::string*) override {
|
||||
got.emplace_back(k, bytes);
|
||||
got_opts.push_back(opts);
|
||||
auto it = std::make_shared<mm::Item>();
|
||||
it->expand = expand;
|
||||
*out = std::move(it);
|
||||
|
||||
Reference in new issue
Block a user