/* lfm2_golden.h -- GENERATED by mklfm2golden.py from transformers 5.19.0; do not edit. */ #pragma once #include static const int32_t kLfm2Patch = 16, kLfm2Merge = 2, kLfm2MinTok = 64, kLfm2MaxTok = 256; static const int32_t kLfm2MinTiles = 2, kLfm2MaxTiles = 10, kLfm2Tile = 512, kLfm2MaxPatches = 1024; static const double kLfm2Tolerance = 2.0; struct GoldLfm2Size { int64_t h, w, oh, ow; int32_t large, cols, rows; }; static const GoldLfm2Size kGoldLfm2Size[] = { { 1, 1, 256, 256, 0, 2, 2 }, { 40, 30, 320, 224, 0, 2, 3 }, { 300, 500, 288, 512, 0, 3, 2 }, { 700, 700, 512, 512, 0, 2, 2 }, { 900, 1400, 384, 608, 1, 3, 2 }, { 2000, 600, 928, 256, 1, 1, 3 }, { 515, 1031, 352, 704, 0, 2, 1 }, { 512, 1024, 352, 704, 0, 2, 1 }, { 1080, 1920, 384, 672, 1, 4, 2 }, { 4000, 300, 1856, 128, 1, 1, 10 }, { 31, 4000, 32, 4000, 0, 10, 1 }, { 777, 333, 768, 320, 0, 2, 5 }, { 1024, 1024, 512, 512, 1, 2, 2 }, { 1023, 2047, 352, 704, 1, 4, 2 }, { 64, 64, 256, 256, 0, 2, 2 }, { 100, 5000, 64, 3616, 0, 10, 1 }, { 3000, 3000, 512, 512, 1, 3, 3 }, { 720, 1280, 384, 672, 1, 2, 1 }, }; struct GoldLfm2Marker { const char* name; int32_t id; }; static const GoldLfm2Marker kGoldLfm2Markers[] = { { "<|image_start|>", 125009 }, { "<|image_end|>", 125010 }, { "<|img_thumbnail|>", 125008 }, { "<|img_row_1_col_1|>", 124908 }, { "<|img_row_1_col_2|>", 124909 }, { "<|img_row_1_col_3|>", 124910 }, { "<|img_row_1_col_4|>", 124911 }, { "<|img_row_1_col_5|>", 124912 }, { "<|img_row_1_col_6|>", 124913 }, { "<|img_row_1_col_7|>", 124914 }, { "<|img_row_1_col_8|>", 124915 }, { "<|img_row_1_col_9|>", 124916 }, { "<|img_row_1_col_10|>", 124917 }, { "<|img_row_2_col_1|>", 124918 }, { "<|img_row_2_col_2|>", 124919 }, { "<|img_row_2_col_3|>", 124920 }, { "<|img_row_2_col_4|>", 124921 }, { "<|img_row_2_col_5|>", 124922 }, { "<|img_row_3_col_1|>", 124928 }, { "<|img_row_3_col_2|>", 124929 }, { "<|img_row_3_col_3|>", 124930 }, { "<|img_row_4_col_1|>", 124938 }, { "<|img_row_4_col_2|>", 124939 }, { "<|img_row_5_col_1|>", 124948 }, { "<|img_row_5_col_2|>", 124949 }, { "<|img_row_6_col_1|>", 124958 }, { "<|img_row_7_col_1|>", 124968 }, { "<|img_row_8_col_1|>", 124978 }, { "<|img_row_9_col_1|>", 124988 }, { "<|img_row_10_col_1|>", 124998 }, }; static const int32_t kLfm2ImageToken = 124907; struct GoldLfm2Pic { int32_t f, h, w; int64_t cap; int32_t cols, rows, n_seg, seg0; int32_t n_ids; uint64_t ids_fnv; }; static const GoldLfm2Pic kGoldLfm2Pics[] = { { 0, 40, 30, 0, 1, 1, 1, 0, 72, 0xf4a13171f5dba0b2ull }, { 1, 300, 500, 0, 1, 1, 1, 1, 146, 0x31e5951b9e177f96ull }, { 2, 700, 700, 0, 1, 1, 1, 2, 258, 0xa3fceabcb4070e76ull }, { 3, 900, 1400, 0, 3, 2, 7, 3, 1773, 0xe878e4810a1f66cdull }, { 4, 2000, 600, 0, 1, 3, 4, 10, 1006, 0xed3837ea6bba64b8ull }, { 5, 1800, 1200, 1048576, 2, 3, 7, 14, 1792, 0x68ef61a1fe0e31ddull }, { 6, 515, 1031, 0, 1, 1, 1, 21, 244, 0x41e3b3c2daa2fccaull }, }; struct GoldLfm2Seg { int32_t h, w; uint64_t fnv; }; static const GoldLfm2Seg kGoldLfm2Segs[] = { { 20, 14, 0xde350f8ffaae060dull }, { 18, 32, 0x1e897c3d485cf756ull }, { 32, 32, 0x275822a4d8e5c314ull }, { 32, 32, 0xd5c661c14ae1062full }, { 32, 32, 0x1deb651bff0aa1fbull }, { 32, 32, 0x571cdfffc3d7bda4ull }, { 32, 32, 0xc4a9e6d1acc5e8a7ull }, { 32, 32, 0x64bc191eced1db77ull }, { 32, 32, 0x5d9b1cfc1f6748b8ull }, { 24, 38, 0x803957c943657915ull }, { 32, 32, 0xb609a02f3c340c8full }, { 32, 32, 0xed17e14b9740a2c9ull }, { 32, 32, 0x1a6114e52cc829fdull }, { 58, 16, 0x595479cd72f7ff69ull }, { 32, 32, 0xfaaa7e21c05b8325ull }, { 32, 32, 0x851b719d2331a839ull }, { 32, 32, 0xf6e8f07ecad1d04bull }, { 32, 32, 0xb4cc3efd44779290ull }, { 32, 32, 0xd935c251cfcbccf4ull }, { 32, 32, 0x7ca1535ecf888407ull }, { 38, 26, 0xeaf5a49573123b49ull }, { 22, 44, 0x072680b110281b00ull }, };