Archived
The 12B (gemma4_unified) has no tower: its embedder takes a whole 48 x 48 pooling window as one patch, so a patch is a row (merge 1), its values u / 255. Its audio is frames of 640 samples as they are, one frame a token, the last zero-padded. Goldens from transformers.
15 lines
957 B
C++
15 lines
957 B
C++
/* gemma4u_golden.h -- GENERATED by mkgemma4ugolden.py from transformers 5.15.0; do not edit. */
|
|
#pragma once
|
|
#include <cstdint>
|
|
|
|
struct GoldGemma4uPic { int32_t f, h, w, budget, grid_h, grid_w, soft; uint64_t fnv; uint16_t head[8]; };
|
|
static const GoldGemma4uPic kGoldGemma4uPics[] = {
|
|
{ 2, 336, 480, 70, 7, 10, 70, 0x24f3317a5fdef4e5ull, { 16238, 16186, 16218, 16199, 16083, 15857, 16213, 16219 } },
|
|
{ 6, 432, 672, 140, 9, 14, 126, 0x1f2f65633d037b7dull, { 15929, 16244, 16077, 16212, 15665, 16130, 15985, 15993 } },
|
|
};
|
|
static const int32_t kGoldGemma4uClipFrames[] = { 4, 5, 6 };
|
|
static const int32_t kGoldGemma4uClipH = 336, kGoldGemma4uClipW = 432, kGoldGemma4uClipGridH = 7, kGoldGemma4uClipGridW = 9, kGoldGemma4uClipSoft = 63;
|
|
static const uint64_t kGoldGemma4uClipFnv = 0xfee282f9d3bab92bull;
|
|
static const int32_t kGoldGemma4uAudioN = 16037, kGoldGemma4uAudioFrames = 26;
|
|
static const uint64_t kGoldGemma4uAudioFnv = 0x27a5cc012ee3ad6dull;
|