Commit ·
2687dea
1
Parent(s): 10e921e
update config
Browse filesFiles changed (10)
- added_tokens.json+267
- config.json+97-8
- generation_config.json+1-1
- model-00001-of-00003.safetensors+2-2
- model-00002-of-00003.safetensors+2-2
- model.safetensors.index.json+310-310
- modular_isaac.py+1169-578
- processor_config.json+37-199
- tokenizer.json+2-2
- tokenizer_config.json+2136
1 unmodified line2345671 unmodified line"</think>": 151668,"</tool_call>": 151658,"</tool_response>": 151666,"<think>": 151667,"<tool_call>": 151657,"<tool_response>": 151665,1 unmodified line234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732741 unmodified line"</think>": 151668,"</tool_call>": 151658,"</tool_response>": 151666,"<reserved_0>": 151669,"<reserved_100>": 151769,"<reserved_101>": 151770,"<reserved_102>": 151771,"<reserved_103>": 151772,"<reserved_104>": 151773,"<reserved_105>": 151774,"<reserved_106>": 151775,"<reserved_107>": 151776,"<reserved_108>": 151777,"<reserved_109>": 151778,"<reserved_10>": 151679,"<reserved_110>": 151779,"<reserved_111>": 151780,"<reserved_112>": 151781,"<reserved_113>": 151782,"<reserved_114>": 151783,"<reserved_115>": 151784,"<reserved_116>": 151785,"<reserved_117>": 151786,"<reserved_118>": 151787,"<reserved_119>": 151788,"<reserved_11>": 151680,"<reserved_120>": 151789,"<reserved_121>": 151790,"<reserved_122>": 151791,"<reserved_123>": 151792,"<reserved_124>": 151793,"<reserved_125>": 151794,"<reserved_126>": 151795,"<reserved_127>": 151796,"<reserved_128>": 151797,"<reserved_129>": 151798,"<reserved_12>": 151681,"<reserved_130>": 151799,"<reserved_131>": 151800,"<reserved_132>": 151801,"<reserved_133>": 151802,"<reserved_134>": 151803,"<reserved_135>": 151804,"<reserved_136>": 151805,"<reserved_137>": 151806,"<reserved_138>": 151807,"<reserved_139>": 151808,"<reserved_13>": 151682,"<reserved_140>": 151809,"<reserved_141>": 151810,"<reserved_142>": 151811,"<reserved_143>": 151812,"<reserved_144>": 151813,"<reserved_145>": 151814,"<reserved_146>": 151815,"<reserved_147>": 151816,"<reserved_148>": 151817,"<reserved_149>": 151818,"<reserved_14>": 151683,"<reserved_150>": 151819,"<reserved_151>": 151820,"<reserved_152>": 151821,"<reserved_153>": 151822,"<reserved_154>": 151823,"<reserved_155>": 151824,"<reserved_156>": 151825,"<reserved_157>": 151826,"<reserved_158>": 151827,"<reserved_159>": 151828,"<reserved_15>": 151684,"<reserved_160>": 151829,"<reserved_161>": 151830,"<reserved_162>": 151831,"<reserved_163>": 151832,"<reserved_164>": 151833,"<reserved_165>": 151834,"<reserved_166>": 151835,"<reserved_167>": 151836,"<reserved_168>": 151837,"<reserved_169>": 151838,"<reserved_16>": 151685,"<reserved_170>": 151839,"<reserved_171>": 151840,"<reserved_172>": 151841,"<reserved_173>": 151842,"<reserved_174>": 151843,"<reserved_175>": 151844,"<reserved_176>": 151845,"<reserved_177>": 151846,"<reserved_178>": 151847,"<reserved_179>": 151848,"<reserved_17>": 151686,"<reserved_180>": 151849,"<reserved_181>": 151850,"<reserved_182>": 151851,"<reserved_183>": 151852,"<reserved_184>": 151853,"<reserved_185>": 151854,"<reserved_186>": 151855,"<reserved_187>": 151856,"<reserved_188>": 151857,"<reserved_189>": 151858,"<reserved_18>": 151687,"<reserved_190>": 151859,"<reserved_191>": 151860,"<reserved_192>": 151861,"<reserved_193>": 151862,"<reserved_194>": 151863,"<reserved_195>": 151864,"<reserved_196>": 151865,"<reserved_197>": 151866,"<reserved_198>": 151867,"<reserved_199>": 151868,"<reserved_19>": 151688,"<reserved_1>": 151670,"<reserved_200>": 151869,"<reserved_201>": 151870,"<reserved_202>": 151871,"<reserved_203>": 151872,"<reserved_204>": 151873,"<reserved_205>": 151874,"<reserved_206>": 151875,"<reserved_207>": 151876,"<reserved_208>": 151877,"<reserved_209>": 151878,"<reserved_20>": 151689,"<reserved_210>": 151879,"<reserved_211>": 151880,"<reserved_212>": 151881,"<reserved_213>": 151882,"<reserved_214>": 151883,"<reserved_215>": 151884,"<reserved_216>": 151885,"<reserved_217>": 151886,"<reserved_218>": 151887,"<reserved_219>": 151888,"<reserved_21>": 151690,"<reserved_220>": 151889,"<reserved_221>": 151890,"<reserved_222>": 151891,"<reserved_223>": 151892,"<reserved_224>": 151893,"<reserved_225>": 151894,"<reserved_226>": 151895,"<reserved_227>": 151896,"<reserved_228>": 151897,"<reserved_229>": 151898,"<reserved_22>": 151691,"<reserved_230>": 151899,"<reserved_231>": 151900,"<reserved_232>": 151901,"<reserved_233>": 151902,"<reserved_234>": 151903,"<reserved_235>": 151904,"<reserved_236>": 151905,"<reserved_237>": 151906,"<reserved_238>": 151907,"<reserved_239>": 151908,"<reserved_23>": 151692,"<reserved_240>": 151909,"<reserved_241>": 151910,"<reserved_242>": 151911,"<reserved_243>": 151912,"<reserved_244>": 151913,"<reserved_245>": 151914,"<reserved_246>": 151915,"<reserved_247>": 151916,"<reserved_248>": 151917,"<reserved_249>": 151918,"<reserved_24>": 151693,"<reserved_250>": 151919,"<reserved_251>": 151920,"<reserved_252>": 151921,"<reserved_253>": 151922,"<reserved_254>": 151923,"<reserved_255>": 151924,"<reserved_256>": 151925,"<reserved_257>": 151926,"<reserved_258>": 151927,"<reserved_259>": 151928,"<reserved_25>": 151694,"<reserved_260>": 151929,"<reserved_261>": 151930,"<reserved_262>": 151931,"<reserved_263>": 151932,"<reserved_264>": 151933,"<reserved_265>": 151934,"<reserved_266>": 151935,"<reserved_26>": 151695,"<reserved_27>": 151696,"<reserved_28>": 151697,"<reserved_29>": 151698,"<reserved_2>": 151671,"<reserved_30>": 151699,"<reserved_31>": 151700,"<reserved_32>": 151701,"<reserved_33>": 151702,"<reserved_34>": 151703,"<reserved_35>": 151704,"<reserved_36>": 151705,"<reserved_37>": 151706,"<reserved_38>": 151707,"<reserved_39>": 151708,"<reserved_3>": 151672,"<reserved_40>": 151709,"<reserved_41>": 151710,"<reserved_42>": 151711,"<reserved_43>": 151712,"<reserved_44>": 151713,"<reserved_45>": 151714,"<reserved_46>": 151715,"<reserved_47>": 151716,"<reserved_48>": 151717,"<reserved_49>": 151718,"<reserved_4>": 151673,"<reserved_50>": 151719,"<reserved_51>": 151720,"<reserved_52>": 151721,"<reserved_53>": 151722,"<reserved_54>": 151723,"<reserved_55>": 151724,"<reserved_56>": 151725,"<reserved_57>": 151726,"<reserved_58>": 151727,"<reserved_59>": 151728,"<reserved_5>": 151674,"<reserved_60>": 151729,"<reserved_61>": 151730,"<reserved_62>": 151731,"<reserved_63>": 151732,"<reserved_64>": 151733,"<reserved_65>": 151734,"<reserved_66>": 151735,"<reserved_67>": 151736,"<reserved_68>": 151737,"<reserved_69>": 151738,"<reserved_6>": 151675,"<reserved_70>": 151739,"<reserved_71>": 151740,"<reserved_72>": 151741,"<reserved_73>": 151742,"<reserved_74>": 151743,"<reserved_75>": 151744,"<reserved_76>": 151745,"<reserved_77>": 151746,"<reserved_78>": 151747,"<reserved_79>": 151748,"<reserved_7>": 151676,"<reserved_80>": 151749,"<reserved_81>": 151750,"<reserved_82>": 151751,"<reserved_83>": 151752,"<reserved_84>": 151753,"<reserved_85>": 151754,"<reserved_86>": 151755,"<reserved_87>": 151756,"<reserved_88>": 151757,"<reserved_89>": 151758,"<reserved_8>": 151677,"<reserved_90>": 151759,"<reserved_91>": 151760,"<reserved_92>": 151761,"<reserved_93>": 151762,"<reserved_94>": 151763,"<reserved_95>": 151764,"<reserved_96>": 151765,"<reserved_97>": 151766,"<reserved_98>": 151767,"<reserved_99>": 151768,"<reserved_9>": 151678,"<think>": 151667,"<tool_call>": 151657,"<tool_response>": 151665,
123450 unmodified lines55565758596061626364656667686970717273747576777879802 unmodified lines83848586878889{"architectures": ["IsaacForConditionalGeneration"],50 unmodified lines"num_key_value_heads": 8,"pixel_shuffle_scale": 2,"rms_norm_eps": 1e-06,"rope_scaling": {"mrope_interleaved": true,"mrope_section": null,"rope_type": "default"},"rope_theta": 1000000.0,"sliding_window": null,"tie_word_embeddings": false,"transformers_version": "4.56.1","use_cache": true,"use_sliding_window": false,"video_patch_size": 16,"vision_config": {"attention_dropout": 0.0,"hidden_act": "gelu_pytorch_tanh","hidden_size": 1152,"image_size": 256,"intermediate_size": 4304,"layer_norm_eps": 1e-06,"model_type": "pixel_shuffle_siglip2","num_attention_heads": 16,"num_channels": 3,"num_hidden_layers": 27,2 unmodified lines"pixel_shuffle_scale_factor": 2},"vision_max_num_patches": 6144,"vision_min_num_patches": 256,"vision_token": "<image>","vocab_size": 151936}12345678950 unmodified lines606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561572 unmodified lines160161162163164165166167168169170171172173174175176177178{"_rope_scaling": {"mrope_interleaved": true,"mrope_section": null,"rope_type": "default"},"architectures": ["IsaacForConditionalGeneration"],50 unmodified lines"num_key_value_heads": 8,"pixel_shuffle_scale": 2,"rms_norm_eps": 1e-06,"rope_theta": 1000000.0,"sliding_window": null,"text_config": {"_name_or_path": "/tmp/qwen3_temp_j1e9g12y/hf-checkpoint","architectures": ["IsaacForConditionalGeneration"],"attention_bias": false,"attention_dropout": 0.0,"bos_token_id": 151643,"dtype": "float32","eos_token_id": 151645,"head_dim": 128,"hidden_act": "silu","hidden_size": 2048,"initializer_range": 0.02,"intermediate_size": 6144,"layer_types": ["full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention"],"max_position_embeddings": 40960,"max_window_layers": 28,"model_type": "qwen3","num_attention_heads": 16,"num_hidden_layers": 28,"num_key_value_heads": 8,"pixel_shuffle_scale": 2,"rms_norm_eps": 1e-06,"rope_scaling": {"mrope_interleaved": true,"mrope_section": null,"rope_type": "default"},"rope_theta": 1000000.0,"sliding_window": null,"use_cache": true,"use_sliding_window": false,"vision_max_num_patches": 6144,"vision_mean": [0.5,0.5,0.5],"vision_min_num_patches": 256,"vision_patch_size": 16,"vision_std": [0.5,0.5,0.5],"vocab_size": 151936},"tie_word_embeddings": false,"transformers_version": "4.57.1","use_cache": true,"use_sliding_window": false,"vision_config": {"_attn_implementation": "flash_attention_2","attention_dropout": 0.0,"hidden_act": "gelu_pytorch_tanh","hidden_size": 1152,"image_size": 256,"intermediate_size": 4304,"layer_norm_eps": 1e-06,"model_type": "isaac_vision","num_attention_heads": 16,"num_channels": 3,"num_hidden_layers": 27,2 unmodified lines"pixel_shuffle_scale_factor": 2},"vision_max_num_patches": 6144,"vision_mean": [0.5,0.5,0.5],"vision_min_num_patches": 256,"vision_patch_size": 16,"vision_rescale_factor": 0.00392156862745098,"vision_std": [0.5,0.5,0.5],"vision_token": "<image>","vocab_size": 151936}
1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 151643,"eos_token_id": 151645,"transformers_version": "4.56.1"}1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 151643,"eos_token_id": 151645,"transformers_version": "4.57.1"}
123version https://git-lfs.github.com/spec/v1oid sha256:3d31217bf5365162ae38b4e6a5b27acff8481ef892e9803874cbb49476d0f501size 4969539560123version https://git-lfs.github.com/spec/v1oid sha256:6bb45f8ee129e542e12ea62717345ce39118f3f26971a082410b70f898aad3f3size 4969541832
123version https://git-lfs.github.com/spec/v1oid sha256:e133442cabfd18ed5ba13cd21527d0220c78e2989a2778b8849e5835e0995c75size 4054187824123version https://git-lfs.github.com/spec/v1oid sha256:cf4c2c3f1ba00b71d2c21fdf777535dcf56655e0d0e9d9fbd037f9a5f3181a57size 4054188968
4 unmodified lines567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193204 unmodified lines},"weight_map": {"lm_head.weight": "model-00003-of-00003.safetensors","model.embed_tokens.weight": "model-00001-of-00003.safetensors","model.layers.0.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.0.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.0.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.0.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.0.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.0.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.0.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.0.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.0.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.0.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.0.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.1.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.1.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.1.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.1.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.1.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.1.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.1.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.1.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.1.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.1.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.1.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.10.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.10.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.10.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.10.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.10.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.10.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.10.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.10.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.10.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.10.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.10.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.11.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.11.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.11.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.11.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.11.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.11.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.11.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.11.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.11.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.11.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.11.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.12.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.12.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.12.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.12.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.12.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.12.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.12.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.12.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.12.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.12.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.12.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.13.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.13.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.13.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.13.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.13.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.13.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.13.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.13.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.13.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.13.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.13.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.14.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.14.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.14.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.14.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.14.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.14.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.14.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.14.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.14.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.14.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.14.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.15.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.15.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.15.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.15.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.15.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.15.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.15.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.15.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.15.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.15.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.15.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.16.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.16.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.16.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.16.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.16.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.16.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.16.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.16.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.16.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.16.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.16.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.17.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.17.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.17.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.17.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.17.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.17.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.17.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.17.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.17.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.17.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.17.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.18.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.18.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.18.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.18.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.18.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.18.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.18.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.18.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.18.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.18.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.18.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.19.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.19.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.19.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.19.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.19.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.19.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.19.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.19.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.19.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.19.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.19.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.2.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.2.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.2.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.2.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.2.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.2.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.2.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.2.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.2.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.2.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.2.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.20.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.20.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.20.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.20.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.20.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.20.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.20.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.20.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.20.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.20.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.20.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.21.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.21.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.21.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.21.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.21.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.21.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.21.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.21.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.21.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.21.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.21.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.22.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.22.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.22.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.22.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.22.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.22.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.22.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.22.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.22.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.22.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.22.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.23.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.23.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.23.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.23.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.23.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.23.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.23.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.23.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.23.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.23.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.23.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.24.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.24.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.24.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.24.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.24.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.24.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.24.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.24.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.24.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.24.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.24.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.25.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.25.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.25.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.25.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.25.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.25.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.25.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.25.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.25.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.25.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.25.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.26.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.26.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.26.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.26.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.26.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.26.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.26.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.26.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.26.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.26.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.26.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.27.input_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.27.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.layers.27.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.layers.27.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.layers.27.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.layers.27.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.layers.27.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.layers.27.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.layers.27.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.layers.27.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.layers.27.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.layers.3.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.3.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.3.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.3.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.3.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.3.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.3.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.3.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.3.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.3.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.3.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.4.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.4.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.4.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.4.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.4.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.4.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.4.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.4.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.4.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.4.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.4.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.5.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.5.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.5.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.5.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.5.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.5.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.5.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.5.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.5.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.5.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.5.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.6.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.6.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.6.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.6.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.6.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.6.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.6.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.6.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.6.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.6.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.6.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.7.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.7.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.7.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.7.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.7.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.7.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.7.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.7.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.7.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.7.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.7.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.8.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.8.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.8.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.8.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.8.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.8.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.8.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.8.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.8.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.8.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.8.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.layers.9.input_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.9.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.layers.9.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.layers.9.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.layers.9.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.layers.9.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.layers.9.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.layers.9.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.layers.9.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.layers.9.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.layers.9.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.norm.weight": "model-00002-of-00003.safetensors","model.vision_embedding.0.embeddings.patch_embedding.bias": "model-00002-of-00003.safetensors","model.vision_embedding.0.embeddings.patch_embedding.weight": "model-00002-of-00003.safetensors","model.vision_embedding.0.embeddings.position_embedding.weight": "model-00002-of-00003.safetensors",4 unmodified lines567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193204 unmodified lines},"weight_map": {"lm_head.weight": "model-00003-of-00003.safetensors","model.text_model.embed_tokens.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.0.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.1.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.10.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.11.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.12.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.13.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.14.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.15.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.16.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.17.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.18.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.18.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.18.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.18.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.18.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.18.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.18.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.18.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.18.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.18.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.18.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.19.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.19.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.2.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.2.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.20.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.20.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.21.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.22.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.23.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.24.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.25.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.26.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.input_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.mlp.down_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.mlp.gate_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.mlp.up_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.post_attention_layernorm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.self_attn.k_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.self_attn.k_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.self_attn.o_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.self_attn.q_norm.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.self_attn.q_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.27.self_attn.v_proj.weight": "model-00002-of-00003.safetensors","model.text_model.layers.3.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.3.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.4.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.5.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.6.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.7.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.8.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.input_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.mlp.down_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.mlp.gate_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.mlp.up_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.post_attention_layernorm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.self_attn.k_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.self_attn.k_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.self_attn.o_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.self_attn.q_norm.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.self_attn.q_proj.weight": "model-00001-of-00003.safetensors","model.text_model.layers.9.self_attn.v_proj.weight": "model-00001-of-00003.safetensors","model.text_model.norm.weight": "model-00002-of-00003.safetensors","model.vision_embedding.0.embeddings.patch_embedding.bias": "model-00002-of-00003.safetensors","model.vision_embedding.0.embeddings.patch_embedding.weight": "model-00002-of-00003.safetensors","model.vision_embedding.0.embeddings.position_embedding.weight": "model-00002-of-00003.safetensors",
12345678910111213141516173 unmodified lines21222324252627282930313233343536373839404142434445464748495051525354555657585960616263647 unmodified lines727374757677787980818283843 unmodified lines8889909192939449 unmodified lines1441451461471481491504 unmodified lines1551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612629 unmodified lines27227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237323 unmodified lines3973983994004014024034044054064074084094104114125 unmodified lines41841942042142242342442542642742842943043143243343443543632 unmodified lines4694704714724734744752 unmodified lines4784794804814824834844854864874884894904914921 unmodified line4944954964974984995005015025035045052 unmodified lines50850951051151251351451551651751851952052152252352452552652711 unmodified lines53954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158228 unmodified lines61161261361461561661761861962062162262339 unmodified lines66366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869919 unmodified lines71972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190245 unmodified lines94894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999011 unmodified lines10021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106193 unmodified lines115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112229 unmodified lines123212331234123512361237123812391240124175 unmodified lines131713181319132013211322132311 unmodified lines13351336133713381339134013416 unmodified lines13481349135013511352135313548 unmodified lines1363136413651366136713681369157 unmodified lines152715281529153015311532153315341535153615371538153915401541149 unmodified lines169116921693169416951696169716981699from __future__ import annotationsfrom collections import defaultdictfrom typing import Any, TypedDictimport mathimport numpy as npimport torchimport torch.nn as nnimport torch.nn.functional as Fimport PIL.Imagefrom transformers import (AutoTokenizer,BatchFeature,Cache,3 unmodified lines)from transformers.cache_utils import SlidingWindowCache, StaticCachefrom transformers.generation.utils import GenerationMixinfrom transformers.modeling_outputs import BaseModelOutputWithPast, CausalLMOutputWithPastfrom transformers.models.qwen3.modeling_qwen3 import Qwen3DecoderLayer, Qwen3Modelfrom transformers.models.qwen2.tokenization_qwen2 import Qwen2Tokenizerfrom transformers.processing_utils import ProcessorMixinfrom transformers.tokenization_utils import TensorTypefrom transformers.modeling_attn_mask_utils import AttentionMaskConverterimport refrom transformers.models.siglip2.modeling_siglip2 import (Siglip2MLP,)from transformers.models.siglip2.configuration_siglip2 import Siglip2VisionConfigfrom perceptron.tensorstream import (Event,Stream,TensorStream,TextType,VisionType,create_stream,group_streams,)from perceptron.tensorstream.ops import (compute_mrope_pos_tensor,modality_mask,reconstruct_tensor_stream_from_compact_dict,slice as ts_slice,tensor_stream_token_view,)class PixelShuffleSiglip2VisionConfig(Siglip2VisionConfig):"""Vision configuration for Isaac with Pixel Shuffle support.Extends Siglip2VisionConfig with additional fields for pixel shuffle."""model_type = "pixel_shuffle_siglip2"base_config_key = "vision_config"def __init__(self,7 unmodified linesself.pixel_shuffle_scale_factor = pixel_shuffle_scale_factorself.num_patches = num_patchesdef create_cumulative_seq_lengths(seq_sizes: torch.Tensor, device: torch.device) -> tuple[torch.Tensor, int]:"""Create cumulative sequence lengths for variable-length attention."""cu_seqlens = torch.zeros(len(seq_sizes) + 1, dtype=torch.int32, device=device)cu_seqlens[1:] = seq_sizes.cumsum(0)max_seqlen = int(seq_sizes.max().item()) if len(seq_sizes) > 0 else 0return cu_seqlens, max_seqlendef _max_from_cu(cu: torch.Tensor | None, fallback: int) -> int:3 unmodified linesreturn int((cu[1:] - cu[:-1]).max().item())def flash_attention_document_mask_forward(q_lhd: torch.Tensor, # (L, H, D)k_lhd: torch.Tensor, # (L, H, D)v_lhd: torch.Tensor, # (L, H, D)49 unmodified linesv_lhd: torch.Tensor, # (L, H, D)dropout: float,scaling: float | None,cu_seqlens: torch.Tensor | None,) -> torch.Tensor:"""SDPA with block-diagonal masking for variable-length sequences."""L, H, D = q_lhd.shape4 unmodified linesV = v_lhd.permute(1, 0, 2).unsqueeze(0)# Build block-diagonal mask for variable-length sequencesattn_mask = Noneif cu_seqlens is not None:seq_sizes = (cu_seqlens[1:] - cu_seqlens[:-1]).long()seg_ids = torch.repeat_interleave(torch.arange(len(seq_sizes), device=q_lhd.device), seq_sizes)block_mask = seg_ids[:, None] != seg_ids[None, :] # Cross-document attention blockedattn_mask = torch.where(block_mask, -torch.inf, 0.0).to(q_lhd.dtype).view(1, 1, L, L)Y = F.scaled_dot_product_attention(Q, K, V, attn_mask=attn_mask, dropout_p=dropout, scale=scaling)return Y.squeeze(0).permute(1, 0, 2) # Back to (L, H, D)class Siglip2VariableSequenceEmbeddings(nn.Module):def __init__(self, config: PixelShuffleSiglip2VisionConfig):super().__init__()self.config = configself.embed_dim = config.hidden_sizeself.patch_size = config.patch_sizeself.patch_embedding = nn.Linear(in_features=config.num_channels * self.patch_size * self.patch_size,out_features=self.embed_dim,)self.num_patches = config.num_patchesself.position_embedding_size = int(self.num_patches**0.5)self.position_embedding = nn.Embedding(self.num_patches, self.embed_dim)def positional_embeddings(self, packed_seq_patches: tuple[torch.Tensor, torch.Tensor, torch.Tensor]) -> torch.Tensor:# Prepare positional embeddings grid: (1, embed_dim, h, w)positional_embeddings = (self.position_embedding.weight.reshape(self.position_embedding_size, self.position_embedding_size, -1).permute(2, 0, 1).unsqueeze(0))_seq_patches, _seq_sizes, spatial_shapes = packed_seq_patchespos_embeds_list = []mode = "bilinear"align_corners = Falseantialias = Truefor spatial_shape in spatial_shapes:height, width = spatial_shape# Guard to ensure height and width are positive for torch.compileif height > 0 and width > 0:resized_pos_embed = F.interpolate(positional_embeddings,size=(height, width),mode=mode,align_corners=align_corners,antialias=antialias,)# Reshape from (1, embed_dim, height, width) to (height*width, embed_dim)resized_pos_embed = resized_pos_embed.reshape(self.embed_dim, height * width).transpose(0, 1)else:# Fallback - should never happen in practiceresized_pos_embed = positional_embeddings.reshape(self.embed_dim, self.position_embedding_size * self.position_embedding_size).transpose(0, 1)[: height * width]pos_embeds_list.append(resized_pos_embed)# Concatenate all positional embeddings along the sequence dimensionpos_embeds = torch.cat(pos_embeds_list, dim=0)return pos_embedsdef forward(self, packed_seq_patches: tuple[torch.Tensor, torch.Tensor, torch.Tensor]):seq_patches, _seq_sizes, _spatial_shapes = packed_seq_patches# Apply patch embeddingstarget_dtype = self.patch_embedding.weight.dtypepatch_embeds = self.patch_embedding(seq_patches.to(dtype=target_dtype))pos_embeds = self.positional_embeddings(packed_seq_patches)# Add positional embeddings to patch embeddingsembeddings = patch_embeds + pos_embedsreturn embeddingsclass Siglip2VariableLengthAttention(nn.Module):"""Custom attention that supports variable-length sequences with flash attention."""def __init__(self, config):super().__init__()self.config = configself.embed_dim = config.hidden_sizeself.num_heads = config.num_attention_headsself.head_dim = self.embed_dim // self.num_headsif self.head_dim * self.num_heads != self.embed_dim:raise ValueError(f"embed_dim must be divisible by num_heads (got `embed_dim`: {self.embed_dim} and `num_heads`:"f" {self.num_heads}).")self.scale = self.head_dim**-0.5self.dropout = config.attention_dropoutself.k_proj = nn.Linear(self.embed_dim, self.embed_dim)self.v_proj = nn.Linear(self.embed_dim, self.embed_dim)self.q_proj = nn.Linear(self.embed_dim, self.embed_dim)self.out_proj = nn.Linear(self.embed_dim, self.embed_dim)def forward(self, hidden_states, cu_seqlens=None, max_seqlen=None):# Expect packed sequences with batch_size == 1batch_size, L, _ = hidden_states.shapeif batch_size != 1:9 unmodified linesk = self.k_proj(x).view(L, H, D)v = self.v_proj(x).view(L, H, D)attn_impl = getattr(self.config, "_attn_implementation", "flash_attention_3")if attn_impl in ("flash_attention_2", "flash_attention_3"):y_lhd, _ = flash_attention_document_mask_forward(q,k,v,attention_mask=None,dropout=p_drop,scaling=self.scale,cum_seq_q=cu_seqlens,cum_seq_k=cu_seqlens,max_seqlen=max_seqlen,is_causal=False,)else:y_lhd = sdpa_document_mask_forward(q, k, v, dropout=p_drop, scaling=self.scale, cu_seqlens=cu_seqlens)# Merge heads and projecty = self.out_proj(y_lhd.reshape(L, self.embed_dim))return y.unsqueeze(0), None # (1, L, E)class IsaacSiglip2EncoderLayer(nn.Module):"""Siglip2 encoder layer with variable-length attention."""def __init__(self, config: PixelShuffleSiglip2VisionConfig):super().__init__()self.embed_dim = config.hidden_sizeself.self_attn = Siglip2VariableLengthAttention(config)self.layer_norm1 = nn.LayerNorm(self.embed_dim, eps=config.layer_norm_eps)self.mlp = Siglip2MLP(config) # Use HF's Siglip2MLPself.layer_norm2 = nn.LayerNorm(self.embed_dim, eps=config.layer_norm_eps)def forward(self,hidden_states: torch.Tensor,cu_seqlens: torch.Tensor = None,max_seqlen: int = None,) -> tuple[torch.FloatTensor]:residual = hidden_stateshidden_states = self.layer_norm1(hidden_states)hidden_states, attn_weights = self.self_attn(hidden_states=hidden_states,cu_seqlens=cu_seqlens,max_seqlen=max_seqlen,)hidden_states = residual + hidden_statesresidual = hidden_stateshidden_states = self.layer_norm2(hidden_states)hidden_states = self.mlp(hidden_states)hidden_states = residual + hidden_statesreturn (hidden_states,)class IsaacEncoder(nn.Module):"""Encoder using Isaac encoder layers with variable-length attention support."""def __init__(self, config: PixelShuffleSiglip2VisionConfig):super().__init__()self.config = configself.layers = nn.ModuleList([IsaacSiglip2EncoderLayer(config) for _ in range(config.num_hidden_layers)])def forward(self,inputs_embeds,cu_seqlens: torch.Tensor | None = None,max_seqlen: int | None = None,output_hidden_states: bool = False,):all_hidden_states = () if output_hidden_states else Nonehidden_states = inputs_embedsfor encoder_layer in self.layers:if output_hidden_states:all_hidden_states = all_hidden_states + (hidden_states,)layer_outputs = encoder_layer(hidden_states,cu_seqlens,max_seqlen,)hidden_states = layer_outputs[0]if output_hidden_states:all_hidden_states = all_hidden_states + (hidden_states,)return hidden_states, all_hidden_states, Nonedef create_pixel_shuffle_index_map(23 unmodified linesif device is None:device = seq_sizes.devicer = int(scale_factor)if r < 2:raise ValueError("`scale_factor` must be ≥ 2")# Safety: all spatial dims must be divisible by r# Cannot run under torch compile fullgraph mode henceif not torch.compiler.is_compiling():if not ((token_grids[:, 0] % r == 0).all() and (token_grids[:, 1] % r == 0).all()):raise AssertionError(f"Every (H,W) in `token_grids` must be divisible by scale_factor={r}, got {token_grids.tolist()}")gather_chunks: list[torch.Tensor] = []5 unmodified linesgrid = grid.view(h, w) # (H, W)# -------- identical ordering to your fixed-res routine --------# Step 1: split width into blocks of rgrid = grid.view(h, w // r, r) # (H, W/r, r)# Step 2: now split height into blocks of rgrid = grid.view(h // r, r, w // r, r) # (H/r, r, W/r, r)# Step 3: final permutation to (H/r, W/r, r, r)grid = grid.permute(0, 2, 1, 3).contiguous() # (H/r, W/r, r, r)# Step 4: each (r, r) block forms one output tokengather_chunks.append(grid.reshape(-1, r * r)) # (H*W / r², r²)tok_offset += seq_len# Concatenate over all images in the packed batchgather_idx = torch.cat(gather_chunks, dim=0) # (Σ_i HᵢWᵢ/r², r²)return gather_idx32 unmodified linesx_ = x # (seq, embed)embed_dim = x_.size(-1)r = int(scale_factor)# Calculate seq_sizes from token_gridsseq_sizes = torch.prod(token_grids, dim=-1)2 unmodified linesgather_idx = create_pixel_shuffle_index_map(seq_sizes=seq_sizes,token_grids=token_grids,scale_factor=r,device=x_.device,) # (new_seq, r²)# Gather → (new_seq, r², embed_dim)gathered = x_[gather_idx] # fancy indexing keeps gradient# Merge the r² group dimension into channels to finish the shuffleout = gathered.reshape(gathered.size(0), embed_dim * r * r)# Restore batch dimension if neededif keep_batch_dim:1 unmodified linereturn outclass Siglip2SequenceVisionTransformer(nn.Module):def __init__(self, config: PixelShuffleSiglip2VisionConfig):super().__init__()self.config = configself.embeddings = Siglip2VariableSequenceEmbeddings(config)self.encoder = IsaacEncoder(config)self.post_layernorm = nn.LayerNorm(config.hidden_size, eps=config.layer_norm_eps)self.pixel_shuffle_scale_factor = config.pixel_shuffle_scale_factor2 unmodified linesseq_sizes = torch.prod(token_grids, dim=-1)# Get embeddings from packed sequencehidden_states = self.embeddings((seq_patches, seq_sizes, token_grids))# Add a pseudo batch dimension for the encoderhidden_states = hidden_states.unsqueeze(0)# Generate cumulative sequence lengths for variable-length attentioncu_seqlens, max_seqlen = create_cumulative_seq_lengths(seq_sizes, hidden_states.device)# Pass through encoder with variable-length attention parametershidden_states, _, _ = self.encoder(inputs_embeds=hidden_states,cu_seqlens=cu_seqlens,max_seqlen=max_seqlen,)# Apply final layer normalizationhidden_states = self.post_layernorm(hidden_states)11 unmodified linesreturn hidden_states# ============================================================================# Configuration# ============================================================================MAX_PIXELS = 60_000_000 # 60‑megapixel ceiling ≈ 8200 × 7300 px# Vision preprocessing constantsVISION_MEAN = (0.5, 0.5, 0.5)VISION_STD = (0.5, 0.5, 0.5)VISION_SCALE = 1 / 255def _make_writeable(arr: np.ndarray) -> np.ndarray:"""Return *arr* itself if it is already writeable, otherwise try to flip thewrite flag in-place and finally fall back to `arr.copy()`.This guarantees the buffer handed to `torch.from_numpy()` is alwayswriteable, silencing the PyTorch warning about undefined behaviour."""if arr.flags.writeable:return arr# First, try the cheap path — in‑place flag toggle (works for mmap'd arrays# and some shared memory buffers):try:arr.setflags(write=True)return arr # success: no data copyexcept ValueError:# Buffer is inherently read‑only (e.g. backed by PyAV / PIL): make copyreturn arr.copy()def extract_image_pil(image: PIL.Image.Image) -> torch.Tensor | None:if image.width * image.height > MAX_PIXELS:raise ValueError(f"Image (w={image.width}, h={image.height}) > MAX=`{MAX_PIXELS}`")img = image if image.mode == "RGB" else image.convert("RGB")arr = np.asarray(img)arr = _make_writeable(arr)return torch.from_numpy(arr)def get_image_size_for_max_num_patches(28 unmodified linesand respect both the maximum and optional minimum patch-count constraints."""def get_scaled_image_size(scale, original_size, patch_size, pixel_shuffle_scale):scaled_size = scale * original_sizedivisor = patch_size * pixel_shuffle_scalescaled_size = math.ceil(scaled_size / divisor) * divisorscaled_size = max(divisor, scaled_size)return int(scaled_size)# Ensure divisibilitydivisor = patch_size * pixel_shuffle_scaleadjusted_height = math.ceil(image_height / divisor) * divisor39 unmodified linesreturn target_height, target_width_MEAN_TENSOR = torch.tensor(VISION_MEAN, dtype=torch.float32).view(1, 1, 1, -1)_STD_TENSOR = torch.tensor(VISION_STD, dtype=torch.float32).view(1, 1, 1, -1)def prepare_image_tensor(image: torch.Tensor,scale: float = VISION_SCALE,) -> torch.Tensor:r"""Standardize RGB images prior to patch extraction via rescaling and whitening.Args:image (`torch.Tensor`):Tensor with shape `(..., height, width, 3)` containing RGB values. The tensor is converted to floatingpoint if needed.scale (`float`, *optional*, defaults to `VISION_SCALE`):Scalar multiplier applied before normalization.Returns:`torch.Tensor`: Normalized tensor with the same shape as the input and dtype `torch.float32`."""if not torch.is_floating_point(image):image = image.float()rescaled = image * scale# Use precomputed tensors and move to the correct device if neededmean_tensor = _MEAN_TENSOR.to(image.device)std_tensor = _STD_TENSOR.to(image.device)normalized = (rescaled - mean_tensor) / std_tensorreturn normalizeddef patchify_vision(image: torch.Tensor, patch_size: int) -> torch.Tensor:r"""Convert normalized images into flattened ViT-style patches.19 unmodified linesreturn patchesdef process_vision_for_patches(images: torch.Tensor,patch_size: int,max_num_patches: int,min_num_patches: int | None = None,pixel_shuffle_scale: int = 1,) -> tuple[torch.Tensor, list[int]]:r"""Resize, normalize, and patchify RGB images for the vision encoder.Args:images (`torch.Tensor`):Either `(height, width, channels)` for a single image or `(num_images, height, width, channels)` for abatch. Channels are expected to be RGB.patch_size (`int`):Edge length of square patches; implictly controls resize grid granularity.max_num_patches (`int`):Maximum number of patches allowed after resizing.min_num_patches (`int`, *optional*):Minimum number of patches. If provided, the routine upsamples images as needed to satisfy the lower bound.pixel_shuffle_scale (`int`, *optional*, defaults to 1):pixel shuffle scale factor; influences the target grid that the function produces.Returns:`tuple[torch.Tensor, list[int]]`: A pair `(patches, dims_virtual)` where `patches` has shape`(num_images, target_h / patch_size, target_w / patch_size, channels * patch_size**2)` and `dims_virtual`encodes effective `(images, height, width)` dimensions after optional pixel shuffling."""# Add batch dim if single imageif images.dim() == 3:images = images.unsqueeze(0)# Permute to channel first for resizeimages = images.permute(0, 3, 1, 2)# Get target dimensions_, _, orig_height, orig_width = images.shapetarget_height, target_width = get_image_size_for_max_num_patches(orig_height,orig_width,patch_size,max_num_patches,min_num_patches=min_num_patches,pixel_shuffle_scale=pixel_shuffle_scale,)# Resizeimages = F.interpolate(images,size=(target_height, target_width),mode="bilinear",align_corners=False,)# Back to channel lastimages = images.permute(0, 2, 3, 1)# Normalizeimages = prepare_image_tensor(images)# Patchifypatches = patchify_vision(images, patch_size=patch_size)# Calculate dimensions for the patchesn_images, h_patches, w_patches, _ = patches.shapedims_virtual = ([1, h_patches, w_patches]if pixel_shuffle_scale == 1else [1, h_patches // pixel_shuffle_scale, w_patches // pixel_shuffle_scale])return patches, dims_virtualdef precompute_inv_freq(theta: float, dim: int) -> torch.Tensor:"""Returns shape (dim//2,)."""inv_freq = 1.0 / (theta ** (torch.arange(0, dim, 2, dtype=torch.float32) / dim))return inv_freq # type: ignore[return-value]def precompute_cos_sin_3d(position_ids: torch.Tensor, # shape (3, B, T)inv_freq: torch.Tensor, # shape (dim//2,)mrope_half_section: list[int], # sum to dim//2) -> tuple[torch.Tensor, torch.Tensor]:r"""Generate 3D rotary embeddings for multi-axis positions.Args:position_ids (`torch.Tensor`):Tensor of shape `(3, batch_size, seq_len)` containing positional indices for the x/y/t axes.inv_freq (`torch.Tensor`):Precomputed inverse frequency vector used to derive rotary phases.mrope_half_section (`list[int]`):Sizes the axis-specific frequency blocks.Returns:`tuple[torch.Tensor, torch.Tensor]`: Cosine and sine tensors, each of shape `(batch_size, seq_len, dim)`, readyto be passed into rotary attention layers."""B = position_ids.shape[1]T = position_ids.shape[2]dim_half = inv_freq.shape[0]device = position_ids.device# Initialize with full dimension (not half) to match LLaMAcos_3d = torch.zeros((B, T, dim_half * 2), dtype=torch.float32, device=device)sin_3d = torch.zeros((B, T, dim_half * 2), dtype=torch.float32, device=device)offset = 0for d in range(3):block_size = mrope_half_section[d]freq_slice = inv_freq[offset : offset + block_size] # shape => (block_size,)# shape => (B, T, block_size)phase = position_ids[d].unsqueeze(-1).float() * freq_slicecos_part = phase.cos()sin_part = phase.sin()# Duplicate values for both halves of the dimensioncos_3d[:, :, offset : offset + block_size] = cos_partcos_3d[:, :, dim_half + offset : dim_half + offset + block_size] = cos_partsin_3d[:, :, offset : offset + block_size] = sin_partsin_3d[:, :, dim_half + offset : dim_half + offset + block_size] = sin_partoffset += block_sizereturn cos_3d, sin_3dclass RopeScaling(TypedDict, total=False):rope_type: strfactor: floatmrope_section: list[int]mrope_interleaved: boollow_freq_factor: floathigh_freq_factor: floatoriginal_max_position_embeddings: intclass IsaacConfig(Qwen3Config):"""Configuration class for Isaac multimodal model."""model_type = "isaac"sub_configs = {"vision_config": PixelShuffleSiglip2VisionConfig}def __init__(self,vision_config=None,vision_patch_size: int = 16,vision_max_num_patches: int = 256,vision_min_num_patches: int | None = None,pixel_shuffle_scale: int = 1,max_sequence_length: int = 16384,vision_token: str = "<image>",vision_attn_implementation: str | None = None,**kwargs,):super().__init__(**kwargs)# Handle vision config - either dict or PixelShuffleSiglip2VisionConfig instanceif isinstance(vision_config, dict):self.vision_config = self.sub_configs["vision_config"](**vision_config)elif vision_config is None:self.vision_config = self.sub_configs["vision_config"]()else:self.vision_config = vision_config# EventStreamProcessor parameters (for backward compatibility)self.video_patch_size = vision_patch_sizeself.vision_max_num_patches = vision_max_num_patchesself.vision_min_num_patches = vision_min_num_patchesself.pixel_shuffle_scale = pixel_shuffle_scale# Processing parametersself.max_sequence_length = max_sequence_lengthself.vision_token = vision_tokenself.vision_attn_implementation = vision_attn_implementation# ============================================================================45 unmodified linesclass IsaacProcessor(ProcessorMixin):attributes = ["tokenizer"]tokenizer_class = ("Qwen2Tokenizer", "Qwen2TokenizerFast")def __init__(self,tokenizer: Qwen2Tokenizer,config: IsaacConfig | dict,):super().__init__(tokenizer)self.tokenizer = tokenizerif isinstance(config, dict):config = IsaacConfig(**config)self.config = config# Use vision token from configself.vision_token = config.vision_token# Processing parametersself.max_sequence_length = config.max_sequence_length# Vision processing parametersself.patch_size = config.video_patch_sizeself.max_num_patches = config.vision_max_num_patchesself.min_num_patches = config.vision_min_num_patchesself.pixel_shuffle_scale = config.pixel_shuffle_scaledef apply_chat_template(self,messages: list[dict[str, Any]],tokenize: bool = False,add_generation_prompt: bool = False,**kwargs,) -> Any:return self.tokenizer.apply_chat_template(messages, tokenize=tokenize, add_generation_prompt=add_generation_prompt, **kwargs)def build_event_stream_simple(self,11 unmodified linesfor current_time, part in enumerate(parts):if part == self.vision_token:# Replace vision token with image eventif image_idx < len(images):# Create vision event from PIL imageimage_tensor = extract_image_pil(images[image_idx])if image_tensor is not None:# Create a vision event with the image tensorvision_event = Event(data=image_tensor.unsqueeze(0), # HWC format from extract_image_piltype=VisionType.image, # I-frametime=(current_time, current_time),)events.append(vision_event)image_idx += 1elif part: # Non-empty text part# tokens = self.text_processor.tokenize(part, add_special_tokens=False)text_event = create_text_event(self.tokenizer, part, time=current_time)events.append(text_event)# Process vision events if anyif any(event.type == VisionType.image for event in events):# Separate text and vision events for processingtext_events = [event for event in events if event.type == TextType.text]vision_events = [event for event in events if event.type == VisionType.image]# Process vision events using functional approachprocessed_vision_events = []for vision_event in vision_events:# Process the vision datapatches, dims_virtual = process_vision_for_patches(vision_event.data.squeeze(0), # Remove the extra dimensionpatch_size=self.patch_size,max_num_patches=self.max_num_patches,min_num_patches=self.min_num_patches,pixel_shuffle_scale=self.pixel_shuffle_scale,)# Update event with processed datavision_event.data = patches.unsqueeze(1) # Add back frame dimensionvision_event.dims_virtual = dims_virtualvision_event.dims_real = (dims_virtualif self.pixel_shuffle_scale == 1else [dims_virtual[0],dims_virtual[1] * self.pixel_shuffle_scale,dims_virtual[2] * self.pixel_shuffle_scale,])vision_event.idx_range = (0, math.prod(dims_virtual))# Flatten the patchesvision_event.data = vision_event.data.reshape(-1, vision_event.data.shape[-1])processed_vision_events.append(vision_event)events = text_events + processed_vision_events# Create stream without scheduling (events already in order)return create_stream(events, priority=[TextType.text, VisionType.image], schedule=True)93 unmodified linesclass IsaacRotaryEmbedding(nn.Module):def __init__(self, config: IsaacConfig, device=None):super().__init__()# Extract dimensions from configself.hidden_size = config.hidden_sizeself.num_attention_heads = config.num_attention_headsself.head_dim = config.head_dim# Get rope_scaling config - use direct access when availablerope_scaling = getattr(config, "rope_scaling", None) or {}# Read RopeScaling parametersself.rope_type = rope_scaling.get("rope_type", "default")self.mrope_section = [self.head_dim // 4, # 2x more for temporal dimself.head_dim // 8,self.head_dim // 8,]rope_base = getattr(config, "rope_theta", 10000.0)inv_freq = precompute_inv_freq(rope_base, self.head_dim)self.register_buffer("inv_freq", inv_freq, persistent=False)def forward(self, position_ids: torch.Tensor, modality_tensor: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]:with torch.no_grad():# Ensure non-spatial tokens have 1D rotation equivalencenot_spatial = ~(modality_tensor == VisionType.image.value)# shape is [N, 1]data_1d = position_ids[not_spatial][..., 0].unsqueeze(-1)# now broadcast it from [N, 1] -> [N, D] so it matches pos[not_spatial] exactlydata_1d = data_1d.expand(-1, position_ids.shape[-1]) # expand along the last dimposition_ids = position_ids.clone() # Clone to avoid warning about in-place operations on expanded tensorsposition_ids[not_spatial] = data_1dposition_ids = position_ids.permute(2, 0, 1) # pos dim first -> (3, B, L)cos, sin = precompute_cos_sin_3d(position_ids, self.inv_freq, self.mrope_section)return cos, sinclass IsaacModel(Qwen3Model):def __init__(self, config: IsaacConfig):super().__init__(config)text_cfg = getattr(config, "get_text_config", lambda: config)()self.layers = torch.nn.ModuleList([Qwen3DecoderLayer(text_cfg, layer_idx) for layer_idx in range(config.num_hidden_layers)])self.rotary_emb = IsaacRotaryEmbedding(config, device=self.device)vision_cfg = config.vision_config# Use vision_attn_implementation if specified, otherwise fall back to general attn_implementationvision_cfg._attn_implementation = (config.vision_attn_implementationif config.vision_attn_implementation is not Noneelse config._attn_implementation)if vision_cfg is None:raise ValueError("IsaacConfig should always have vision_config")hidden_dim = vision_cfg.hidden_size * (vision_cfg.pixel_shuffle_scale_factor**2)self.vision_embedding = nn.Sequential(Siglip2SequenceVisionTransformer(vision_cfg),nn.Linear(hidden_dim,4 * hidden_dim,9 unmodified linesVisionType: self.embed_vision,}def embed_text_tokens(self, token_ids: torch.Tensor) -> torch.Tensor:"""Embed text tokens, squeezing singleton dimensions."""# Text events are shaped as (..., 1); squeeze the singleton index dimh = self.embed_tokens(token_ids)if h.dim() >= 2 and h.size(-2) == 1:h = h[..., 0, :]return h75 unmodified lineselif input_ids is not None and inputs_embeds is not None:raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time")elif input_ids is not None:inputs_embeds = self.embed_tokens(input_ids)# Create text modality tensor if not providedif modality_tensor is None:batch_size, seq_length = input_ids.shape11 unmodified linesposition_ids = compute_position_ids_input_ids(input_ids)# Compute MRoPE position embeddings if we have custom rotary_embcos, sin = self.rotary_emb(position_ids, modality_tensor)cos = cos.to(inputs_embeds.dtype)sin = sin.to(inputs_embeds.dtype)6 unmodified lines# Initialize hidden stateshidden_states = inputs_embedsfor decoder_layer in self.layers:layer_outputs = decoder_layer(hidden_states,attention_mask=attention_mask,8 unmodified lineshidden_states = layer_outputs[0] if isinstance(layer_outputs, tuple) else layer_outputs# Final layer normhidden_states = self.norm(hidden_states)return BaseModelOutputWithPast(last_hidden_state=hidden_states,157 unmodified linesconfig_class = IsaacConfigdef __init__(self, config: IsaacConfig):Qwen3PreTrainedModel.__init__(self, config)self.model = IsaacModel(config) # Use our custom modelself.vocab_size = config.vocab_sizeself.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)# Tracks rotary position offsets computed during a full forward pass so decode steps can reuse them.self.rope_deltas = Noneself.config = configdef get_rope_index(self,input_ids: torch.Tensor | None,149 unmodified linesreturn True__all__ = ["IsaacConfig","IsaacModel","IsaacForConditionalGeneration","IsaacProcessor",]1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991003 unmodified lines1041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881897 unmodified lines1971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564573 unmodified lines46146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251349 unmodified lines5635645655665675685695704 unmodified lines5755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057069 unmodified lines71671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104123 unmodified lines10651066106710681069107010711072107310741075107610771078107910801081108210835 unmodified lines10891090109110921093109410951096109710981099110011011102110311041105110611071108110932 unmodified lines11421143114411451146114711482 unmodified lines1151115211531154115511561157115811591160116111621163116411651 unmodified line1167116811691170117111721173117411751176117711782 unmodified lines11811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120411 unmodified lines1216121712181219122012211222122312241225122612271228122912301231123228 unmodified lines12611262126312641265126639 unmodified lines13061307130813091310131119 unmodified lines13311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142045 unmodified lines1466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151511 unmodified lines1527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155893 unmodified lines16521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217639 unmodified lines177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180975 unmodified lines188518861887188818891890189111 unmodified lines190319041905190619071908190919101911191219136 unmodified lines19201921192219231924192519268 unmodified lines1935193619371938193919401941157 unmodified lines2099210021012102210321042105210621072108210921102111149 unmodified lines226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290# Copyright (c) 2024 Perceptron, Inc. All rights reserved.# Perceptron, Inc. Non-Production License (2024-01-01)### 1. Scope and acceptance# **1.1. Scope of the Agreement.**# This Agreement applies to any use, modification, or Distribution of any Perceptron Model by You, regardless of the source You obtained a copy of such Perceptron Model.## **1.2. Acceptance.** By accessing, using, modifying, Distributing a Perceptron Model, or by creating, using or distributing a Derivative of the Perceptron Model, You agree to be bound by this Agreement.## **1.3. Acceptance on behalf of a third-party.** If You accept this Agreement on behalf of Your employer or another person or entity, You warrant and represent that You have the authority to act and accept this Agreement on their behalf. In such a case, the word “You” in this Agreement will refer to Your employer or such other person or entity.## ## 2. License# **2.1. Grant of rights.** Subject to Section 3 below, Perceptron, Inc. hereby grants You a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable, limited license to use, copy, modify, and Distribute under the conditions provided in Section 2.2 below, the Perceptron Model and any Derivatives made by or for Perceptron, Inc. and to create Derivatives of the Perceptron Model.## **2.2. Distribution of Perceptron Model and Derivatives made by or for Perceptron, Inc..** Subject to Section 3 below, You may Distribute copies of the Perceptron Model and/or Derivatives made by or for Perceptron, Inc., under the following conditions:# - You must make available a copy of this Agreement to third-party recipients of the Perceptron Models and/or Derivatives made by or for Perceptron, Inc. you Distribute, it being specified that any rights to use the Perceptron Models and/or Derivatives made by or for Perceptron, Inc. shall be directly granted by Perceptron, Inc. to said third-party recipients pursuant to the Perceptron, Inc. Non-Production License agreement executed between these parties;# - You must retain in all copies of the Perceptron Models the following attribution notice within a “Notice” text file distributed as part of such copies: “Licensed by Perceptron, Inc. under the Perceptron, Inc. Non-Production License”.## **2.3. Distribution of Derivatives made by or for You.** Subject to Section 3 below, You may Distribute any Derivatives made by or for You under additional or different terms and conditions, provided that:# - In any event, the use and modification of Perceptron Model and/or Derivatives made by or for Perceptron, Inc. shall remain governed by the terms and conditions of this Agreement;# - You include in any such Derivatives made by or for You prominent notices stating that You modified the concerned Perceptron Model; and# - Any terms and conditions You impose on any third-party recipients relating to Derivatives made by or for You shall neither limit such third-party recipients’ use of the Perceptron Model or any Derivatives made by or for Perceptron, Inc. in accordance with the Perceptron, Inc. Non-Production License nor conflict with any of its terms and conditions.## ## 3. Limitations# **3.1. Misrepresentation.** You must not misrepresent or imply, through any means, that the Derivatives made by or for You and/or any modified version of the Perceptron Model You Distribute under your name and responsibility is an official product of Perceptron, Inc. or has been endorsed, approved or validated by Perceptron, Inc., unless You are authorized by Us to do so in writing.## **3.2. Usage Limitation**# - You shall only use the Perceptron Models and Derivatives (whether or not created by Perceptron, Inc.) for testing, research, Personal, or evaluation purposes in Non-Production Environments;# - Subject to the foregoing, You shall not supply the Perceptron Models or Derivatives in the course of a commercial activity, whether in return for payment or free of charge, in any medium or form, including but not limited to through a hosted or managed service (e.g. SaaS, cloud instances, etc.), or behind a software layer.## **3.3. Usage not permitted under this Agreement.** If You want to use a Perceptron Model or a Derivative for any purpose that is not expressly authorized under this Agreement, You must request a license from Perceptron, Inc., which Perceptron, Inc. may grant to You in Perceptron, Inc.’s sole discretion. Please contact Perceptron, Inc. at the following e-mail address if You want to discuss such a license: sales@perceptron.inc## ## 4. Intellectual Property# **4.1. Trademarks.** No trademark licenses are granted under this Agreement, and in connection with the Perceptron Models, You may not use any name or mark owned by or associated with Perceptron, Inc. or any of its affiliates, except (i) as required for reasonable and customary use in describing and Distributing the Perceptron Models and Derivatives made by or for Perceptron, Inc. and (ii) for attribution purposes as required by this Agreement.## **4.2. Outputs.** We claim no ownership rights in and to the Outputs. You are solely responsible for the Outputs You generate and their subsequent uses in accordance with this Agreement.## **4.3. Derivatives.** By entering into this Agreement, You accept that any Derivatives that You may create or that may be created for You shall be subject to the restrictions set out in Section 3 of this Agreement.## # 5. Liability# **5.1. Limitation of liability.** In no event, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall Perceptron, Inc. be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this Agreement or out of the use or inability to use the Perceptron Models and Derivatives (including but not limited to damages for loss of data, loss of goodwill, loss of expected profit or savings, work stoppage, computer failure or malfunction, or any damage caused by malware or security breaches), even if Perceptron, Inc. has been advised of the possibility of such damages.## **5.2. Indemnification.** You agree to indemnify and hold harmless Perceptron, Inc. from and against any claims, damages, or losses arising out of or related to Your use or Distribution of the Perceptron Models and Derivatives.## ## 6. Warranty# **6.1. Disclaimer.** Unless required by applicable law or agreed to in writing, Perceptron, Inc. provides the Perceptron Models and Derivatives on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. Perceptron, Inc. does not represent nor warrant that the Perceptron Models and Derivatives will be error-free, meet Your or any third party’s requirements, be secure or will allow You or any third party to achieve any kind of result or generate any kind of content. You are solely responsible for determining the appropriateness of using or Distributing the Perceptron Models and Derivatives and assume any risks associated with Your exercise of rights under this Agreement.## # 7. Termination# **7.1. Term.** This Agreement is effective as of the date of your acceptance of this Agreement or access to the concerned Perceptron Models or Derivatives and will continue until terminated in accordance with the following terms.## **7.2. Termination.** Perceptron, Inc. may terminate this Agreement at any time if You are in breach of this Agreement. Upon termination of this Agreement, You must cease to use all Perceptron Models and Derivatives and shall permanently delete any copy thereof. Sections 5, 6, 7 and 8 shall survive the termination of this Agreement.## **7.3. Litigation.** If You initiate any legal action or proceedings against Us or any other entity (including a cross-claim or counterclaim in a lawsuit), alleging that the Model or a Derivative, or any part thereof, infringe upon intellectual property or other rights owned or licensable by You, then any licenses granted to You under this Agreement will immediately terminate as of the date such legal action or claim is filed or initiated.## # 8. General provisions# 8.1. Governing Law. This Agreement will be governed by and construed in accordance with the laws of the State of Washington, without regard to its conflict of law principles.## 8.2. Jurisdiction. The state and federal courts located in King County, Washington shall have exclusive jurisdiction over any dispute arising out of or relating to this Agreement, and You and We consent to personal jurisdiction and venue in such courts.## **8.3. Severability.** If any provision of this Agreement is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.## # 9. Definitions# **“Agreement”**: means this Perceptron, Inc. Non-Production License agreement governing the access, use, and Distribution of the Perceptron Models and Derivatives.## **“Derivative”**: means any (i) modified version of the Perceptron Model (including but not limited to any customized or fine-tuned version thereof), (ii) work based on the Perceptron Model, or (iii) any other derivative work thereof. For the avoidance of doubt, Outputs are not considered as Derivatives under this Agreement.## **“Distribution”**, **“Distributing”**, **“Distribute”** or **“Distributed”**: means providing or making available, by any means, a copy of the Perceptron Models and/or the Derivatives as the case may be, subject to Section 3 of this Agreement.## **“Perceptron, Inc.”**, **“We”** or **“Us”**: means Perceptron, Inc., a Delaware corporation with its principal place of business at 10900 NE 8th St Suite 613, Bellevue, WA 98004.## **“Perceptron Model”**: means the foundational large language model(s), and its elements which include algorithms, software, instructed checkpoints, parameters, source code (inference code, evaluation code and, if applicable, fine-tuning code) and any other elements associated thereto made available by Perceptron, Inc. under this Agreement, including, if any, the technical documentation, manuals and instructions for the use and operation thereof.## **“Non-Production Environment”**: means any setting, use case, or application of the Perceptron Models or Derivatives that expressly excludes live, real-world conditions, commercial operations, revenue-generating activities, or direct interactions with or impacts on end users (such as, for instance, Your employees or customers). Non-Production Environment may include, but is not limited to, any setting, use case, or application for research, development, testing, quality assurance, training, internal evaluation (other than any internal usage by employees in the context of the company’s business activities), and demonstration purposes.## **“Outputs”**: means any content generated by the operation of the Perceptron Models or the Derivatives from a prompt (i.e., text instructions) provided by users. For the avoidance of doubt, Outputs do not include any components of a Perceptron Models, such as any fine-tuned versions of the Perceptron Models, the weights, or parameters.## **“Personal”**: means any use of a Perceptron Model or a Derivative that is (i) solely for personal, non-profit and non-commercial purposes and (ii) not directly or indirectly connected to any commercial activities, business operations, or employment responsibilities. For illustration purposes, Personal use of a Model or a Derivative does not include any usage by individuals employed in companies in the context of their daily tasks, any activity that is intended to generate revenue, or that is performed on behalf of a commercial entity.## **“You”**: means the individual or entity entering into this Agreement with Perceptron, Inc..from __future__ import annotationsimport copyimport mathimport refrom collections import defaultdictfrom typing import Any, Callable, Optional, Sequence, Unionimport PIL.Imageimport torchimport torch.nn as nnimport torch.nn.functional as Ffrom transformers import (AutoImageProcessor,AutoModel,AutoTokenizer,BatchFeature,Cache,3 unmodified lines)from transformers.cache_utils import SlidingWindowCache, StaticCachefrom transformers.generation.utils import GenerationMixinfrom transformers.image_processing_utils_fast import (BaseImageProcessorFast,SizeDict,group_images_by_shape,reorder_images,DefaultFastImageProcessorKwargs,)from transformers.image_utils import (ChannelDimension,PILImageResampling,)from transformers.modeling_attn_mask_utils import AttentionMaskConverterfrom transformers.modeling_outputs import BaseModelOutputWithPast, CausalLMOutputWithPastfrom transformers.modeling_utils import ALL_ATTENTION_FUNCTIONSfrom transformers.models.qwen2.tokenization_qwen2 import Qwen2Tokenizerfrom transformers.models.qwen2_5_vl.modeling_qwen2_5_vl import Qwen2_5_VLRotaryEmbeddingfrom transformers.models.siglip2.configuration_siglip2 import Siglip2VisionConfigfrom transformers.models.siglip2.modeling_siglip2 import (Siglip2Attention,Siglip2Encoder as HFSiglip2Encoder,Siglip2EncoderLayer as HFSiglip2EncoderLayer,Siglip2VisionEmbeddings as HFSiglip2VisionEmbeddings,)from transformers.processing_utils import ProcessorMixin, ProcessingKwargs, Unpackfrom transformers.tokenization_utils import TensorTypefrom transformers.utils import auto_docstringfrom transformers.utils.generic import can_return_tuple# Vision preprocessing constantsfrom transformers.utils.constants import IMAGENET_STANDARD_MEAN as VISION_MEANfrom transformers.utils.constants import IMAGENET_STANDARD_STD as VISION_STDfrom transformers.utils.import_utils import is_torchdynamo_compilingtry:from genesis.public.tensorstream.tensor_stream import (Event,Stream,TensorStream,TextType,VisionType,create_stream,group_streams,)from genesis.public.tensorstream.tensor_stream_utils import (compute_mrope_pos_tensor,modality_mask,reconstruct_tensor_stream_from_compact_dict,tensor_stream_token_view,)from genesis.public.tensorstream.tensor_stream_utils import (slice as ts_slice,)except ModuleNotFoundError as exc: # pragma: no cover - import guardraise ModuleNotFoundError("genesis.public.tensorstream is required for the Isaac HuggingFace integration. ""Ensure the TensorStream package is installed and on PYTHONPATH.") from exc_ORIGINAL_ATTENTION_FUNCTIONS: dict[str, Callable[..., tuple[torch.Tensor, Optional[torch.Tensor]]]] = {}for _attn_name in ("flash_attention_2", "sdpa", "eager"):if _attn_name in ALL_ATTENTION_FUNCTIONS:_ORIGINAL_ATTENTION_FUNCTIONS[_attn_name] = ALL_ATTENTION_FUNCTIONS[_attn_name]class IsaacVisionConfig(Siglip2VisionConfig):"""Vision configuration for Isaac with Pixel Shuffle support.Extends Siglip2VisionConfig with additional fields for pixel shuffle.Args:pixel_shuffle_scale_factor (`int`, *optional*, defaults to 1):Spatial factor applied before pixel shuffle reduces the resolution.num_patches (`int`, *optional*, defaults to 256):Maximum number of learnable positional embeddings to initialize."""model_type = "isaac_vision"base_config_key = "vision_config"_attn_implementation: str | None = Nonedef __init__(self,7 unmodified linesself.pixel_shuffle_scale_factor = pixel_shuffle_scale_factorself.num_patches = num_patchesif self._attn_implementation is None:self._attn_implementation = "flash_attention_2"class IsaacImageProcessorKwargs(DefaultFastImageProcessorKwargs, total=False):patch_size: int | Nonemax_num_patches: int | Nonemin_num_patches: int | Nonepixel_shuffle_scale: int | Noneclass IsaacProcessorKwargs(ProcessingKwargs, total=False):images_kwargs: IsaacImageProcessorKwargs# Ensure python<=3.9 compatibility with TypedDict overrides.IsaacProcessorKwargs.__annotations__["images_kwargs"] = IsaacImageProcessorKwargs@auto_docstringclass IsaacImageProcessorFast(BaseImageProcessorFast):MAX_PIXELS = 60_000_000 # 60‑megapixel ceiling ≈ 8200 × 7300 pxr"""Fast torch-based image processor for Isaac vision inputs."""resample = PILImageResampling.BILINEARmodel_input_names = ["patches", "token_grids"]valid_kwargs = IsaacImageProcessorKwargsunused_kwargs = ["size", "do_center_crop", "crop_size"]do_resize = Truesize: SizeDict | None = Nonedefault_to_square: bool | None = Nonedo_center_crop = Falsecrop_size: SizeDict | None = Nonepatch_size: int | None = 16max_num_patches: int | None = 256min_num_patches: int | None = Nonepixel_shuffle_scale: int | None = 1do_pad = Falsepad_size: SizeDict | None = Nonedo_rescale = Truerescale_factor = 1 / 255do_normalize = Trueimage_mean = list(VISION_MEAN)image_std = list(VISION_STD)do_convert_rgb = Truereturn_tensors = Nonedata_format = ChannelDimension.FIRSTinput_data_format = Nonedevice = Nonedisable_grouping = Falsesize_divisor: int | None = Nonedef __init__(self,**kwargs: Unpack[IsaacImageProcessorKwargs],) -> None:super().__init__(**kwargs)pixel_shuffle_scale = 1 if self.pixel_shuffle_scale is None else int(self.pixel_shuffle_scale)if pixel_shuffle_scale < 1:raise ValueError("`pixel_shuffle_scale` must be >= 1")self.pixel_shuffle_scale = pixel_shuffle_scaledef _validate_preprocess_kwargs(self, **kwargs):# Allow callers to omit resize-related placeholders that BaseImageProcessorFast checks for.kwargs.pop("do_resize", None)kwargs.pop("size", None)kwargs.pop("do_center_crop", None)kwargs.pop("crop_size", None)kwargs.pop("disable_grouping", None)return super()._validate_preprocess_kwargs(**kwargs)def resize(self,image: "torch.Tensor",size: SizeDict,interpolation: Optional[Any] = None,antialias: bool = True,**kwargs,) -> torch.Tensor:if size.height is None or size.width is None:raise ValueError("IsaacImageProcessorFast requires explicit `height` and `width` when resizing.")resize_mode: Any = interpolationif hasattr(resize_mode, "value"):resize_mode = resize_mode.valueelif hasattr(resize_mode, "name"):resize_mode = resize_mode.name.lower()elif resize_mode is None:resize_mode = "bilinear"if isinstance(resize_mode, str):mode_key = resize_mode.lower()else:mode_key = resize_moderesize_kwargs: dict[str, Any] = {}if mode_key in {"linear", "bilinear", "bicubic", "trilinear"}:resize_kwargs["align_corners"] = Falsereturn F.interpolate(image,size=(size.height, size.width),mode=resize_mode,**resize_kwargs,)def _preprocess(self,images: list["torch.Tensor"],do_resize: bool,size: Optional[SizeDict],interpolation: Optional[Any],do_center_crop: bool,crop_size: Optional[SizeDict],do_rescale: Optional[bool],rescale_factor: Optional[float],do_normalize: Optional[bool],image_mean: Optional[Union[float, Sequence[float]]],image_std: Optional[Union[float, Sequence[float]]],disable_grouping: Optional[bool] = None,return_tensors: Optional[Union[str, TensorType]] = None,do_pad: Optional[bool] = None,pad_size: Optional[SizeDict] = None,*,patch_size: int | None = None,max_num_patches: int | None = None,min_num_patches: int | None = None,pixel_shuffle_scale: int | None = None,**kwargs,) -> BatchFeature:if do_center_crop:raise ValueError("`do_center_crop` is not supported by IsaacImageProcessorFast.")if do_pad:raise ValueError("`do_pad` is not supported by IsaacImageProcessorFast.")grouped_images, grouped_images_index = group_images_by_shape(images, disable_grouping=disable_grouping)processed_patches_grouped: dict[tuple[int, ...], torch.Tensor] = {}token_grids_grouped: dict[tuple[int, ...], torch.Tensor] = {}virtual_dims_grouped: dict[tuple[int, ...], torch.Tensor] = {}real_dims_grouped: dict[tuple[int, ...], torch.Tensor] = {}for shape, stacked_images in grouped_images.items():if stacked_images.ndim != 4:raise ValueError("Expected batched channel-first image tensors.")batch_size, channels, original_height, original_width = stacked_images.shapeif bool(self.do_convert_rgb) and channels == 1:stacked_images = stacked_images.repeat(1, 3, 1, 1)channels = 3if original_height * original_width > self.MAX_PIXELS:raise ValueError(f"Image (w={original_width}, h={original_height}) > MAX=`{self.MAX_PIXELS}`")target_height, target_width = get_image_size_for_max_num_patches(original_height,original_width,patch_size,max_num_patches,min_num_patches=min_num_patches,pixel_shuffle_scale=pixel_shuffle_scale,)if do_resize:resize_size = SizeDict(height=target_height, width=target_width)image_batch = self.resize(image=stacked_images,size=resize_size,interpolation=interpolation,)else:if ((original_height % patch_size) != 0) or ((original_width % patch_size) != 0):raise ValueError("Image dimensions must be divisible by patch_size when resize is disabled.")image_batch = stacked_imagestarget_height, target_width = original_height, original_widthif do_rescale:image_batch = self.rescale_and_normalize(image_batch,do_rescale=do_rescale,rescale_factor=rescale_factor,do_normalize=do_normalize,image_mean=image_mean,image_std=image_std,)nhwc_images = image_batch.permute(0, 2, 3, 1)nhwc_images = _compute_residual_p_frames(nhwc_images, is_p_frame=[False] * batch_size)patches = patchify_vision(nhwc_images, patch_size=patch_size)_, height_tokens, width_tokens, _ = patches.shapetoken_grid = torch.tensor([height_tokens, width_tokens],dtype=torch.long,device=patches.device,).unsqueeze(0).repeat(batch_size, 1)real_dim = torch.tensor([1, height_tokens, width_tokens],dtype=torch.long,device=patches.device,).unsqueeze(0).repeat(batch_size, 1)if pixel_shuffle_scale > 1:if (height_tokens % pixel_shuffle_scale) or (width_tokens % pixel_shuffle_scale):raise ValueError("Spatial dimensions must be divisible by pixel_shuffle_scale when pixel shuffle is enabled.")virtual_height = height_tokens // pixel_shuffle_scalevirtual_width = width_tokens // pixel_shuffle_scaleelse:virtual_height = height_tokensvirtual_width = width_tokensvirtual_dim = torch.tensor([1, virtual_height, virtual_width],dtype=torch.long,device=patches.device,).unsqueeze(0).repeat(batch_size, 1)processed_patches_grouped[shape] = patchestoken_grids_grouped[shape] = token_gridvirtual_dims_grouped[shape] = virtual_dimreal_dims_grouped[shape] = real_dimpatches_slices = reorder_images(processed_patches_grouped, grouped_images_index)token_grid_slices = reorder_images(token_grids_grouped, grouped_images_index)virtual_dim_slices = reorder_images(virtual_dims_grouped, grouped_images_index)real_dim_slices = reorder_images(real_dims_grouped, grouped_images_index)patches_tensor = torch.stack(patches_slices, dim=0)token_grids_tensor = torch.stack(token_grid_slices, dim=0)virtual_dims_tensor = torch.stack(virtual_dim_slices, dim=0)real_dims_tensor = torch.stack(real_dim_slices, dim=0)return BatchFeature(data={"patches": patches_tensor,"token_grids": token_grids_tensor,"virtual_pixel_size": virtual_dims_tensor,"real_pixel_size": real_dims_tensor,},tensor_type=return_tensors,)def _max_from_cu(cu: torch.Tensor | None, fallback: int) -> int:3 unmodified linesreturn int((cu[1:] - cu[:-1]).max().item())def build_document_attention_mask(cu_seqlens: torch.Tensor | None,total_tokens: int,dtype: torch.dtype,device: torch.device,) -> torch.Tensor | None:"""Creates an additive attention mask that blocks cross-document attention."""if cu_seqlens is None:return Noneif cu_seqlens.numel() < 2:return Noneseq_sizes = (cu_seqlens[1:] - cu_seqlens[:-1]).long()if seq_sizes.numel() == 0:return Noneseg_ids = torch.repeat_interleave(torch.arange(seq_sizes.numel(), device=device), seq_sizes)block_mask = seg_ids[:, None] != seg_ids[None, :]additive_mask = torch.zeros((total_tokens, total_tokens), dtype=dtype, device=device)additive_mask.masked_fill_(block_mask, float("-inf"))return additive_mask.view(1, 1, total_tokens, total_tokens)def ensure_document_attention_mask(attention_mask: Optional[torch.Tensor],cu_seqlens: Optional[torch.Tensor],total_tokens: int,dtype: torch.dtype,device: torch.device,) -> Optional[torch.Tensor]:if attention_mask is not None or cu_seqlens is None:return attention_maskreturn build_document_attention_mask(cu_seqlens=cu_seqlens,total_tokens=total_tokens,dtype=dtype,device=device,)def flash_attention_document_mask_forward(module: torch.nn.Module,q_lhd: torch.Tensor, # (L, H, D)k_lhd: torch.Tensor, # (L, H, D)v_lhd: torch.Tensor, # (L, H, D)49 unmodified linesv_lhd: torch.Tensor, # (L, H, D)dropout: float,scaling: float | None,attention_mask: torch.Tensor | None = None,cu_seqlens: torch.Tensor | None = None,) -> torch.Tensor:"""SDPA with block-diagonal masking for variable-length sequences."""L, H, D = q_lhd.shape4 unmodified linesV = v_lhd.permute(1, 0, 2).unsqueeze(0)# Build block-diagonal mask for variable-length sequencesattn_mask = attention_maskif attn_mask is None:attn_mask = build_document_attention_mask(cu_seqlens=cu_seqlens,total_tokens=L,dtype=q_lhd.dtype,device=q_lhd.device,)if attn_mask is not None and attn_mask.dtype != Q.dtype:attn_mask = attn_mask.to(Q.dtype)Y = F.scaled_dot_product_attention(Q, K, V, attn_mask=attn_mask, dropout_p=dropout, scale=scaling)return Y.squeeze(0).permute(1, 0, 2) # Back to (L, H, D)class IsaacVisionEmbeddings(HFSiglip2VisionEmbeddings):"""Adapter around SigLIP2 vision embeddings that consumes packed patch sequences."""def __init__(self, config: IsaacVisionConfig):super().__init__(config)def forward(self, seq_patches: torch.Tensor, spatial_shapes: torch.Tensor) -> torch.Tensor:packed_pixel_values, seq_lengths = self._pack_to_batch(seq_patches, spatial_shapes)if packed_pixel_values is None:return seq_patches.new_zeros((0, self.embed_dim))embeddings = super().forward(packed_pixel_values, spatial_shapes)return self._unpack_from_batch(embeddings, seq_lengths)def _pack_to_batch(self,seq_patches: torch.Tensor,spatial_shapes: torch.Tensor,) -> tuple[torch.Tensor | None, torch.Tensor]:if seq_patches.ndim != 2:raise ValueError("`seq_patches` is expected to be 2D (total_patches, patch_dim).")if spatial_shapes.ndim != 2 or spatial_shapes.size(-1) != 2:raise ValueError("`spatial_shapes` must have shape (num_images, 2) with (height_tokens, width_tokens).")seq_lengths = spatial_shapes.long().prod(dim=-1)total_patches = int(seq_lengths.sum().item())if total_patches != seq_patches.size(0):raise ValueError("Mismatch between packed patches and spatial shapes: got "f"{seq_patches.size(0)} patches but spatial shapes imply {total_patches}.")batch_size = spatial_shapes.size(0)if batch_size == 0:return None, seq_lengthsmax_length = int(seq_lengths.max().item())patch_dim = seq_patches.size(-1)device = seq_patches.devicepacked_pixel_values = seq_patches.new_zeros((batch_size, max_length, patch_dim), device=device)start = 0for batch_idx, length in enumerate(seq_lengths.tolist()):if length == 0:continueend = start + lengthpacked_pixel_values[batch_idx, :length] = seq_patches[start:end]start = endreturn packed_pixel_values, seq_lengthsdef _unpack_from_batch(self, embeddings: torch.Tensor, seq_lengths: torch.Tensor) -> torch.Tensor:output_chunks: list[torch.Tensor] = []for batch_idx, length in enumerate(seq_lengths.tolist()):if length == 0:continueoutput_chunks.append(embeddings[batch_idx, :length])if not output_chunks:return embeddings.new_zeros((0, embeddings.size(-1)))return torch.cat(output_chunks, dim=0)class IsaacVisionAttention(Siglip2Attention):"""Custom attention that supports variable-length sequences with flash attention."""ATTENTION_KEY_MAP: dict[str, str] = {"flash_attention_2": "isaac_flash_attention_2","flash_attention_3": "isaac_flash_attention_3","isaac_flash_attention_2": "isaac_flash_attention_2","isaac_flash_attention_3": "isaac_flash_attention_3","sdpa": "isaac_sdpa","isaac_sdpa": "isaac_sdpa","eager": "isaac_eager","isaac_eager": "isaac_eager",}def __init__(self, vision_config):super().__init__(vision_config)self.vision_config = vision_configself._variable_length_metadata = Nonedef _variable_length_context(self, *, cu_seqlens=None, max_seqlen=None):"""Store packed-sequence metadata for the next forward call."""self._variable_length_metadata = (cu_seqlens, max_seqlen)def _consume_variable_length_metadata(self):if self._variable_length_metadata is None:return None, Nonecu_seqlens, max_seqlen = self._variable_length_metadataself._variable_length_metadata = Nonereturn cu_seqlens, max_seqlendef forward(self, hidden_states, attention_mask=None, **kwargs):cu_seqlens = kwargs.pop("cu_seqlens", None)max_seqlen = kwargs.pop("max_seqlen", None)kwargs.pop("output_attentions", None)kwargs.pop("output_hidden_states", None)kwargs.pop("return_dict", None)if kwargs:unexpected = ', '.join(sorted(kwargs))raise TypeError(f'Unexpected kwargs for IsaacVisionAttention.forward: {unexpected}')cached_cu, cached_max = self._consume_variable_length_metadata()if cu_seqlens is None:cu_seqlens = cached_cuif max_seqlen is None:max_seqlen = cached_max# Expect packed sequences with batch_size == 1batch_size, L, _ = hidden_states.shapeif batch_size != 1:9 unmodified linesk = self.k_proj(x).view(L, H, D)v = self.v_proj(x).view(L, H, D)attn_impl = getattr(self.vision_config, "_attn_implementation", "flash_attention_3")attn_mask = ensure_document_attention_mask(attention_mask,cu_seqlens,L,q.dtype,q.device,)resolved_key = self.ATTENTION_KEY_MAP.get(attn_impl)attention_fn = ALL_ATTENTION_FUNCTIONS.get(resolved_key) if resolved_key is not None else Noneif attention_fn is None:raise ValueError(f"Attention implementation {attn_impl} not found.")query_states = q.transpose(0, 1).unsqueeze(0)key_states = k.transpose(0, 1).unsqueeze(0)value_states = v.transpose(0, 1).unsqueeze(0)attention_kwargs: dict[str, Any] = {"dropout": p_drop,"scaling": self.scale,"is_causal": False,}if cu_seqlens is not None:attention_kwargs["cu_seq_lens_q"] = cu_seqlensattention_kwargs["cu_seq_lens_k"] = cu_seqlensif max_seqlen is not None:attention_kwargs["max_length_q"] = max_seqlenattention_kwargs["max_length_k"] = max_seqlenattn_output, _ = attention_fn(self,query_states,key_states,value_states,attn_mask,**attention_kwargs,)y_lhd = attn_output.squeeze(0).permute(1, 0, 2).contiguous()# Merge heads and projecty = self.out_proj(y_lhd.reshape(L, self.embed_dim))return y.unsqueeze(0), None # (1, L, E)class IsaacVisionEncoderLayer(HFSiglip2EncoderLayer):"""Isaac vision encoder layer with variable-length attention."""def __init__(self, vision_config: IsaacVisionConfig):super().__init__(vision_config)self.self_attn = IsaacVisionAttention(vision_config)def forward(self,hidden_states: torch.Tensor,attention_mask: Optional[torch.Tensor] = None,cu_seqlens: Optional[torch.Tensor] = None,max_seqlen: Optional[int] = None,output_attentions: bool = False,output_hidden_states: Optional[bool] = None,):if cu_seqlens is not None or max_seqlen is not None:self.self_attn._variable_length_context(cu_seqlens=cu_seqlens,max_seqlen=max_seqlen,)attention_mask = ensure_document_attention_mask(attention_mask,cu_seqlens,hidden_states.size(1),hidden_states.dtype,hidden_states.device,)return super().forward(hidden_states,attention_mask=attention_mask,output_attentions=output_attentions,)class IsaacVisionEncoder(HFSiglip2Encoder):"""Encoder using Isaac encoder layers with variable-length attention support."""def __init__(self, config: IsaacVisionConfig):super().__init__(config)self.layers = nn.ModuleList([IsaacVisionEncoderLayer(config) for _ in range(config.num_hidden_layers)])def __variable_length_context(self, cu_seqlens, max_seqlen) -> None:if cu_seqlens is None and max_seqlen is None:returnfor layer in self.layers:if isinstance(layer, IsaacVisionEncoderLayer):layer.self_attn._variable_length_context(cu_seqlens=cu_seqlens,max_seqlen=max_seqlen,)@can_return_tupledef forward(self,inputs_embeds,attention_mask: Optional[torch.Tensor] = None,cu_seqlens: Optional[torch.Tensor] = None,max_seqlen: Optional[int] = None,output_attentions: Optional[bool] = None,output_hidden_states: Optional[bool] = None,return_dict: Optional[bool] = None,):self.__variable_length_context(cu_seqlens, max_seqlen)attention_mask = ensure_document_attention_mask(attention_mask,cu_seqlens,inputs_embeds.size(1),inputs_embeds.dtype,inputs_embeds.device,)return super().forward(inputs_embeds,attention_mask=attention_mask,output_attentions=output_attentions,#output_hidden_states=output_hidden_states,#return_dict=return_dict,)def _isaac_flash_attention_forward(module: nn.Module,query: torch.Tensor,key: torch.Tensor,value: torch.Tensor,attention_mask: Optional[torch.Tensor],dropout: float = 0.0,scaling: Optional[float] = None,is_causal: bool = False,**kwargs,) -> tuple[torch.Tensor, Optional[torch.Tensor]]:base_fn = _ORIGINAL_ATTENTION_FUNCTIONS.get("flash_attention_2")if not isinstance(module, IsaacVisionAttention) or base_fn is None:if base_fn is None:raise ValueError("Base flash attention function unavailable for fallback.")return base_fn(module,query,key,value,attention_mask,dropout=dropout,scaling=scaling,is_causal=is_causal,**kwargs,)if query.dim() != 4 or query.size(0) != 1:raise ValueError("IsaacVisionAttention expects packed sequences with batch size 1 when using packed attention.")_, num_heads, seq_len, head_dim = query.shapeq_lhd = query.transpose(1, 2).reshape(seq_len, num_heads, head_dim)k_lhd = key.transpose(1, 2).reshape(seq_len, num_heads, head_dim)v_lhd = value.transpose(1, 2).reshape(seq_len, num_heads, head_dim)cum_seq_q = kwargs.get("cu_seq_lens_q")cum_seq_k = kwargs.get("cu_seq_lens_k", cum_seq_q)max_seqlen = kwargs.get("max_length_q")effective_dropout = dropout if dropout is not None else (module.dropout if module.training else 0.0)effective_scaling = module.scale if scaling is None else scalingattn_mask = attention_maskif attn_mask is None:attn_mask = build_document_attention_mask(cu_seqlens=cum_seq_q,total_tokens=seq_len,dtype=q_lhd.dtype,device=q_lhd.device,)attn_output_lhd, attn_weights = flash_attention_document_mask_forward(module,q_lhd,k_lhd,v_lhd,attention_mask=attn_mask,dropout=effective_dropout,scaling=effective_scaling,cum_seq_q=cum_seq_q,cum_seq_k=cum_seq_k,max_seqlen=max_seqlen,is_causal=is_causal,)attn_output = attn_output_lhd.permute(1, 0, 2).unsqueeze(0)return attn_output, attn_weightsdef _isaac_sdpa_forward(module: nn.Module,query: torch.Tensor,key: torch.Tensor,value: torch.Tensor,attention_mask: Optional[torch.Tensor],dropout: float = 0.0,scaling: Optional[float] = None,is_causal: bool = False,**kwargs,) -> tuple[torch.Tensor, Optional[torch.Tensor]]:base_fn = _ORIGINAL_ATTENTION_FUNCTIONS.get("sdpa")if not isinstance(module, IsaacVisionAttention) or base_fn is None:if base_fn is None:raise ValueError("Base SDPA function unavailable for fallback.")return base_fn(module,query,key,value,attention_mask,dropout=dropout,scaling=scaling,is_causal=is_causal,**kwargs,)if query.dim() != 4 or query.size(0) != 1:raise ValueError("IsaacVisionAttention expects packed sequences with batch size 1 when using packed attention.")_, num_heads, seq_len, head_dim = query.shapeq_lhd = query.transpose(1, 2).reshape(seq_len, num_heads, head_dim)k_lhd = key.transpose(1, 2).reshape(seq_len, num_heads, head_dim)v_lhd = value.transpose(1, 2).reshape(seq_len, num_heads, head_dim)cum_seq = kwargs.get("cu_seq_lens_q")effective_dropout = dropout if dropout is not None else (module.dropout if module.training else 0.0)effective_scaling = module.scale if scaling is None else scalingattn_mask = attention_maskif attn_mask is None:attn_mask = build_document_attention_mask(cu_seqlens=cum_seq,total_tokens=seq_len,dtype=q_lhd.dtype,device=q_lhd.device,)attn_output_lhd = sdpa_document_mask_forward(q_lhd,k_lhd,v_lhd,dropout=effective_dropout,scaling=effective_scaling,attention_mask=attn_mask,cu_seqlens=cum_seq,)attn_output = attn_output_lhd.permute(1, 0, 2).unsqueeze(0)return attn_output, Nonedef _isaac_eager_forward(module: nn.Module,query: torch.Tensor,key: torch.Tensor,value: torch.Tensor,attention_mask: Optional[torch.Tensor],dropout: float = 0.0,scaling: Optional[float] = None,is_causal: bool = False,**kwargs,) -> tuple[torch.Tensor, Optional[torch.Tensor]]:base_fn = _ORIGINAL_ATTENTION_FUNCTIONS.get("eager")if not isinstance(module, IsaacVisionAttention) or base_fn is None:if base_fn is None:raise ValueError("Base eager attention function unavailable for fallback.")return base_fn(module,query,key,value,attention_mask,dropout=dropout,scaling=scaling,is_causal=is_causal,**kwargs,)if query.dim() != 4 or query.size(0) != 1:raise ValueError("IsaacVisionAttention expects packed sequences with batch size 1 when using packed attention.")_, num_heads, seq_len, head_dim = query.shapeq_lhd = query.transpose(1, 2).reshape(seq_len, num_heads, head_dim)k_lhd = key.transpose(1, 2).reshape(seq_len, num_heads, head_dim)v_lhd = value.transpose(1, 2).reshape(seq_len, num_heads, head_dim)effective_scaling = module.scale if scaling is None else scalingattn_weights = torch.matmul(q_lhd, k_lhd.transpose(1, 2)) * effective_scalingif attention_mask is not None:mask = attention_maskif mask.dim() == 4:mask = mask.squeeze(0).squeeze(0)attn_weights = attn_weights + maskattn_weights = torch.softmax(attn_weights, dim=-1)if dropout and module.training:attn_weights = F.dropout(attn_weights, p=dropout, training=True)attn_output_lhd = torch.matmul(attn_weights, v_lhd)attn_output = attn_output_lhd.permute(1, 0, 2).unsqueeze(0)return attn_output, attn_weightsALL_ATTENTION_FUNCTIONS.register("isaac_flash_attention_2", _isaac_flash_attention_forward)ALL_ATTENTION_FUNCTIONS.register("isaac_flash_attention_3", _isaac_flash_attention_forward)ALL_ATTENTION_FUNCTIONS.register("isaac_sdpa", _isaac_sdpa_forward)ALL_ATTENTION_FUNCTIONS.register("isaac_eager", _isaac_eager_forward)def create_pixel_shuffle_index_map(23 unmodified linesif device is None:device = seq_sizes.devicescale_factor = int(scale_factor)if scale_factor < 2:raise ValueError("`scale_factor` must be ≥ 2")# Safety: all spatial dims must be divisible by the scale factor# Cannot run under torch compile fullgraph mode henceif not is_torchdynamo_compiling():if not ((token_grids[:, 0] % scale_factor == 0).all() and (token_grids[:, 1] % scale_factor == 0).all()):raise AssertionError("Every (H,W) in `token_grids` must be divisible by "f"scale_factor={scale_factor}, got {token_grids.tolist()}")gather_chunks: list[torch.Tensor] = []5 unmodified linesgrid = grid.view(h, w) # (H, W)# -------- identical ordering to your fixed-res routine --------# Step 1: split width into blocks of scale_factorgrid = grid.view(h, w // scale_factor, scale_factor) # (H, W/scale_factor, scale_factor)# Step 2: now split height into blocks of scale_factorgrid = grid.view(h // scale_factor, scale_factor, w // scale_factor, scale_factor)# (H/scale_factor, scale_factor, W/scale_factor, scale_factor)# Step 3: final permutation to (H/scale_factor, W/scale_factor, scale_factor, scale_factor)grid = grid.permute(0, 2, 1, 3).contiguous() # (H/scale_factor, W/scale_factor, scale_factor, scale_factor)# Step 4: each (scale_factor, scale_factor) block forms one output tokengather_chunks.append(grid.reshape(-1, scale_factor * scale_factor))# (H*W / scale_factor**2, scale_factor**2)tok_offset += seq_len# Concatenate over all images in the packed batchgather_idx = torch.cat(gather_chunks, dim=0) # (Σ_i HᵢWᵢ/scale_factor**2, scale_factor**2)return gather_idx32 unmodified linesx_ = x # (seq, embed)embed_dim = x_.size(-1)scale_factor = int(scale_factor)# Calculate seq_sizes from token_gridsseq_sizes = torch.prod(token_grids, dim=-1)2 unmodified linesgather_idx = create_pixel_shuffle_index_map(seq_sizes=seq_sizes,token_grids=token_grids,scale_factor=scale_factor,device=x_.device,) # (new_seq, scale_factor**2)# Gather → (new_seq, scale_factor**2, embed_dim)gathered = x_[gather_idx] # fancy indexing keeps gradient# Merge the scale_factor**2 group dimension into channels to finish the shuffleout = gathered.reshape(gathered.size(0), embed_dim * scale_factor * scale_factor)# Restore batch dimension if neededif keep_batch_dim:1 unmodified linereturn outclass IsaacVisionTransformer(nn.Module):def __init__(self, config: IsaacVisionConfig):super().__init__()self.config = configself.embeddings = IsaacVisionEmbeddings(config)self.encoder = IsaacVisionEncoder(config)self.post_layernorm = nn.LayerNorm(config.hidden_size, eps=config.layer_norm_eps)self.pixel_shuffle_scale_factor = config.pixel_shuffle_scale_factor2 unmodified linesseq_sizes = torch.prod(token_grids, dim=-1)# Get embeddings from packed sequencehidden_states = self.embeddings(seq_patches, token_grids)# Add a pseudo batch dimension for the encoderhidden_states = hidden_states.unsqueeze(0)# Generate cumulative sequence lengths for variable-length attentioncu_seqlens = torch.zeros(seq_sizes.size(0) + 1, dtype=torch.int32, device=hidden_states.device)cu_seqlens[1:] = seq_sizes.cumsum(0)max_seqlen = int(seq_sizes.max().item()) if seq_sizes.numel() > 0 else 0# Pass through encoder with variable-length attention parametersencoder_outputs = self.encoder(inputs_embeds=hidden_states,cu_seqlens=cu_seqlens,max_seqlen=max_seqlen,return_dict=True,)hidden_states = encoder_outputs.last_hidden_state# Apply final layer normalizationhidden_states = self.post_layernorm(hidden_states)11 unmodified linesreturn hidden_statesdef get_scaled_image_size(scale: float,original_size: int,patch_size: int,pixel_shuffle_scale: int,) -> int:scaled_size = scale * original_sizedivisor = patch_size * pixel_shuffle_scalescaled_size = math.ceil(scaled_size / divisor) * divisorscaled_size = max(divisor, scaled_size)return int(scaled_size)def get_image_size_for_max_num_patches(28 unmodified linesand respect both the maximum and optional minimum patch-count constraints."""# Ensure divisibilitydivisor = patch_size * pixel_shuffle_scaleadjusted_height = math.ceil(image_height / divisor) * divisor39 unmodified linesreturn target_height, target_widthdef patchify_vision(image: torch.Tensor, patch_size: int) -> torch.Tensor:r"""Convert normalized images into flattened ViT-style patches.19 unmodified linesreturn patchesclass IsaacConfig(Qwen3Config):"""Configuration class for Isaac multimodal model."""model_type = "isaac"sub_configs = {"vision_config": IsaacVisionConfig, "text_config": Qwen3Config}image_processor_type = "IsaacImageProcessor"def __init__(self,vision_config: IsaacVisionConfig | None = None,text_config: Qwen3Config | dict | None = None,vision_rescale_factor: float = 1/255,max_sequence_length: int = 16384,vision_token: str = "<image>",**kwargs,):self._rope_scaling: dict[str, Any] | None = Noneresolved_text_config = kwargs.pop("text_config", text_config)if isinstance(resolved_text_config, Qwen3Config):text_config_kwargs = copy.deepcopy(resolved_text_config.to_dict())elif isinstance(resolved_text_config, dict):text_config_kwargs = copy.deepcopy(resolved_text_config)elif resolved_text_config is None:text_config_kwargs = {}else:raise TypeError("`text_config` must be a mapping or `Qwen3Config` instance when provided.")text_config_kwargs.update(kwargs)super().__init__(**text_config_kwargs)self.text_config = Qwen3Config(**text_config_kwargs)if self._rope_scaling is None:self._rope_scaling = getattr(self.text_config, "rope_scaling", None)else:self.text_config.rope_scaling = self._rope_scaling# Handle vision config - either dict or IsaacVisionConfig instanceif isinstance(vision_config, dict):self.vision_config = self.sub_configs["vision_config"](**vision_config)elif isinstance(vision_config, IsaacVisionConfig):self.vision_config = vision_configelif vision_config is None:self.vision_config = self.sub_configs["vision_config"]()# Vision normalization parametersself.vision_rescale_factor = float(vision_rescale_factor)# Processing parametersself.max_sequence_length = max_sequence_lengthself.vision_token = vision_tokendef get_text_config(self, *_, **kwargs) -> Qwen3Config:# Accept optional decoder/encoder flags to align with HF composite configskwargs.pop("decoder", None)kwargs.pop("encoder", None)return self.text_config@propertydef rope_scaling(self):if hasattr(self, "text_config") and self.text_config is not None:return getattr(self.text_config, "rope_scaling", None)return self._rope_scaling@rope_scaling.setterdef rope_scaling(self, value):self._rope_scaling = valueif hasattr(self, "text_config") and self.text_config is not None:self.text_config.rope_scaling = value@propertydef vision_attn_implementation(self) -> str | None:value = getattr(self.vision_config, "_attn_implementation", None)if value is None:value = getattr(self.vision_config, "attn_implementation", None)return value@vision_attn_implementation.setterdef vision_attn_implementation(self, value: str | None) -> None:self.vision_config._attn_implementation = valueif value is not None:self.vision_config.attn_implementation = valueelif hasattr(self.vision_config, "attn_implementation"):delattr(self.vision_config, "attn_implementation")# ============================================================================45 unmodified linesclass IsaacProcessor(ProcessorMixin):attributes = ["image_processor", "tokenizer"]image_processor_class = ("IsaacImageProcessorFast",)tokenizer_class = ("Qwen2Tokenizer", "Qwen2TokenizerFast")valid_processor_kwargs = IsaacProcessorKwargsdef __init__(self,image_processor: IsaacImageProcessorFast | None = None,tokenizer: Qwen2Tokenizer | None = None,*,vision_token: str = "<image>",max_sequence_length: int = 16384,rescale_factor: float | None = None,config: IsaacConfig | dict | None = None,) -> None:if tokenizer is None:raise ValueError("`tokenizer` must be provided to initialize IsaacProcessor.")if isinstance(config, dict):config = IsaacConfig(**config)if config is not None:max_sequence_length = config.max_sequence_lengthvision_token = config.vision_tokenrescale_factor = config.vision_rescale_factorresolved_rescale_factor = (float(rescale_factor) if rescale_factor is not None else float(1/255))if config is not None:config.vision_rescale_factor = resolved_rescale_factorself.image_processor = image_processorsuper().__init__(image_processor, tokenizer)self.current_processor = self.image_processorself.config = config# Mirror tokenizer chat template so ProcessorMixin.apply_chat_template works.self.chat_template = getattr(self.tokenizer, "chat_template", None)self.vision_token = vision_tokenself.max_sequence_length = max_sequence_lengthdef build_event_stream_simple(self,11 unmodified linesfor current_time, part in enumerate(parts):if part == self.vision_token:# Replace vision token with image eventif images is None or image_idx >= len(images):raise ValueError("Encountered vision token without a corresponding image.")features = self.image_processor(images=images[image_idx],return_tensors=TensorType.PYTORCH,)patches = features["patches"][0] # (H_tokens, W_tokens, embed)virtual_dims = features["virtual_pixel_size"][0].tolist()real_dims = features["real_pixel_size"][0].tolist()vision_event = Event(data=patches.reshape(-1, patches.shape[-1]),type=VisionType.image,time=(current_time, current_time),dims_virtual=virtual_dims,dims_real=real_dims,idx_range=(0, math.prod(virtual_dims)),)events.append(vision_event)image_idx += 1elif part: # Non-empty text part# tokens = self.text_processor.tokenize(part, add_special_tokens=False)text_event = create_text_event(self.tokenizer, part, time=current_time)events.append(text_event)# Create stream without scheduling (events already in order)return create_stream(events, priority=[TextType.text, VisionType.image], schedule=True)93 unmodified linesclass IsaacRotaryEmbedding(nn.Module):EXTRA_ROPE_KEYS = {"mrope_section", "mrope_interleaved"}def __init__(self, config: IsaacConfig, device=None):super().__init__()rope_source_cfg = config.get_text_config() if hasattr(config, "get_text_config") else configrope_scaling = getattr(rope_source_cfg, "rope_scaling", None) or {}sanitized_scaling = {k: v for k, v in rope_scaling.items() if k not in self.EXTRA_ROPE_KEYS}config_for_rope = copy.copy(rope_source_cfg)config_for_rope.rope_scaling = sanitized_scaling if sanitized_scaling else Noneinit_device = device if device is not None and getattr(device, "type", None) != "meta" else Noneself._qwen_rotary = Qwen2_5_VLRotaryEmbedding(config_for_rope, device=init_device)rotary_half_dim = self._qwen_rotary.inv_freq.shape[0]self.mrope_section = self._resolve_mrope_section(rope_scaling.get("mrope_section"), rotary_half_dim)self.hidden_size = getattr(rope_source_cfg, "hidden_size", None) or config.hidden_size@staticmethoddef _resolve_mrope_section(section: list[int] | None, rotary_half_dim: int) -> list[int]:if section is None:weights = (2, 1, 1)base = [rotary_half_dim * w // sum(weights) for w in weights]base[0] += rotary_half_dim - sum(base)return basesection = [int(v) for v in section]if len(section) != 3:raise ValueError("`mrope_section` must contain exactly three elements (temporal, height, width)")if sum(section) != rotary_half_dim:raise ValueError(f"`mrope_section` must sum to the rotary half-dimension ({rotary_half_dim}). Received {section}.")return sectiondef _combine_axes(self, tensor: torch.Tensor) -> torch.Tensor:split_sections = tuple(self.mrope_section * 2)chunks = tensor.split(split_sections, dim=-1)return torch.cat([chunk[i % 3] for i, chunk in enumerate(chunks)], dim=-1)@propertydef inv_freq(self) -> torch.Tensor:return self._qwen_rotary.inv_freqdef forward(self,position_ids: torch.Tensor,modality_tensor: torch.Tensor,hidden_states: torch.Tensor | None = None,) -> tuple[torch.Tensor, torch.Tensor]:if position_ids.ndim != 3 or position_ids.size(-1) != 3:raise ValueError("`position_ids` must have shape (batch, seq_len, 3) for MRoPE")if modality_tensor.shape != position_ids.shape[:2]:raise ValueError("`modality_tensor` must align with the first two dims of `position_ids`")if hidden_states is None:batch, seq_len, _ = position_ids.shapehidden_states = torch.zeros(batch,seq_len,self.hidden_size,dtype=torch.float32,device=position_ids.device,)with torch.no_grad():pos = position_ids.clone()not_spatial = modality_tensor != VisionType.image.valueif not_spatial.any():data_1d = pos[not_spatial][..., 0].unsqueeze(-1)pos[not_spatial] = data_1d.expand(-1, pos.shape[-1])pos_axes = pos.permute(2, 0, 1).contiguous()cos_axes, sin_axes = self._qwen_rotary(hidden_states, pos_axes)cos_axes = cos_axes.to(hidden_states.dtype)sin_axes = sin_axes.to(hidden_states.dtype)cos_combined = self._combine_axes(cos_axes)sin_combined = self._combine_axes(sin_axes)return cos_combined, sin_combinedclass IsaacModel(Qwen3PreTrainedModel):supports_gradient_checkpointing = Truedef __init__(self, config: IsaacConfig):Qwen3PreTrainedModel.__init__(self, config)text_cfg_source = getattr(config, "get_text_config", lambda: config)()text_cfg = copy.deepcopy(text_cfg_source)text_cfg._attn_implementation = config._attn_implementationself.text_model = AutoModel.from_config(text_cfg)# Ensure downstream callers observe the composed configself.text_model.config = configself.rotary_emb = IsaacRotaryEmbedding(config, device=self.device)if config.vision_config is None:raise ValueError("IsaacConfig should always have vision_config")hidden_dim = config.vision_config.hidden_size * (config.vision_config.pixel_shuffle_scale_factor**2)self.vision_embedding = nn.Sequential(IsaacVisionTransformer(config.vision_config),nn.Linear(hidden_dim,4 * hidden_dim,9 unmodified linesVisionType: self.embed_vision,}def get_input_embeddings(self) -> nn.Module:return self.text_model.get_input_embeddings()def set_input_embeddings(self, value: nn.Module) -> None:self.text_model.set_input_embeddings(value)@propertydef embed_tokens(self) -> nn.Module:return self.text_model.embed_tokens@embed_tokens.setterdef embed_tokens(self, value: nn.Module) -> None:self.text_model.embed_tokens = value@propertydef layers(self) -> nn.ModuleList:return self.text_model.layers@propertydef norm(self) -> nn.Module:return self.text_model.normdef _set_gradient_checkpointing(self, enable: bool = True, gradient_checkpointing_func=None):self.text_model._set_gradient_checkpointing(enable=enable, gradient_checkpointing_func=gradient_checkpointing_func)def embed_text_tokens(self, token_ids: torch.Tensor) -> torch.Tensor:"""Embed text tokens, squeezing singleton dimensions."""# Text events are shaped as (..., 1); squeeze the singleton index dimh = self.text_model.embed_tokens(token_ids)if h.dim() >= 2 and h.size(-2) == 1:h = h[..., 0, :]return h75 unmodified lineselif input_ids is not None and inputs_embeds is not None:raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time")elif input_ids is not None:inputs_embeds = self.text_model.embed_tokens(input_ids)# Create text modality tensor if not providedif modality_tensor is None:batch_size, seq_length = input_ids.shape11 unmodified linesposition_ids = compute_position_ids_input_ids(input_ids)# Compute MRoPE position embeddings if we have custom rotary_embcos, sin = self.rotary_emb(position_ids,modality_tensor,hidden_states=inputs_embeds,)cos = cos.to(inputs_embeds.dtype)sin = sin.to(inputs_embeds.dtype)6 unmodified lines# Initialize hidden stateshidden_states = inputs_embedsfor decoder_layer in self.text_model.layers:layer_outputs = decoder_layer(hidden_states,attention_mask=attention_mask,8 unmodified lineshidden_states = layer_outputs[0] if isinstance(layer_outputs, tuple) else layer_outputs# Final layer normhidden_states = self.text_model.norm(hidden_states)return BaseModelOutputWithPast(last_hidden_state=hidden_states,157 unmodified linesconfig_class = IsaacConfigdef __init__(self, config: IsaacConfig):super().__init__(config)self.model = IsaacModel(config) # Use our custom modelself.vocab_size = config.vocab_sizeself.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)# Tracks rotary position offsets computed during a full forward pass so decode steps can reuse them.self.rope_deltas = Nonedef get_rope_index(self,input_ids: torch.Tensor | None,149 unmodified linesreturn TrueAutoImageProcessor.register(IsaacConfig,fast_image_processor_class=IsaacImageProcessorFast,exist_ok=True,)__all__ = ["IsaacConfig","IsaacModel","IsaacForConditionalGeneration","IsaacImageProcessorFast","IsaacProcessor",]def _compute_residual_p_frames(frames: torch.Tensor, is_p_frame: list[bool]) -> torch.Tensor:"""Compute residuals for P-frames to stay in sync with the training pipeline."""if not any(is_p_frame):return framesframe_indices = torch.arange(len(is_p_frame), device=frames.device)i_frame_mask = torch.tensor([not flag for flag in is_p_frame], device=frames.device)last_i_indices = torch.cummax((i_frame_mask * (1 + frame_indices)), dim=0).values.long() - 1p_indices = frame_indices[torch.tensor(is_p_frame, device=frames.device)]frames[p_indices] = frames[p_indices] - frames[last_i_indices[p_indices]]return frames
1 unmodified line234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082091 unmodified line"auto_map": {"AutoProcessor": "modular_isaac.IsaacProcessor"},"config": {"_name_or_path": "","add_cross_attention": false,"architectures": ["IsaacForConditionalGeneration"],"attention_bias": false,"attention_dropout": 0.0,"auto_map": {"AutoModelForCausalLM": "modular_isaac.IsaacForConditionalGeneration"},"bad_words_ids": null,"begin_suppress_tokens": null,"bos_token_id": 151643,"chunk_size_feed_forward": 0,"cross_attention_hidden_size": null,"decoder_start_token_id": null,"diversity_penalty": 0.0,"do_sample": false,"dtype": "float32","early_stopping": false,"encoder_no_repeat_ngram_size": 0,"eos_token_id": 151645,"exponential_decay_length_penalty": null,"finetuning_task": null,"forced_bos_token_id": null,"forced_eos_token_id": null,"head_dim": 128,"hidden_act": "silu","hidden_size": 2048,"id2label": {"0": "LABEL_0","1": "LABEL_1"},"initializer_range": 0.02,"intermediate_size": 6144,"is_decoder": false,"is_encoder_decoder": false,"label2id": {"LABEL_0": 0,"LABEL_1": 1},"layer_types": ["full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention"],"length_penalty": 1.0,"max_length": 20,"max_position_embeddings": 40960,"max_sequence_length": 16384,"max_window_layers": 28,"min_length": 0,"model_type": "isaac","no_repeat_ngram_size": 0,"num_attention_heads": 16,"num_beam_groups": 1,"num_beams": 1,"num_hidden_layers": 28,"num_key_value_heads": 8,"num_return_sequences": 1,"output_attentions": false,"output_hidden_states": false,"output_scores": false,"pad_token_id": null,"pixel_shuffle_scale": 2,"prefix": null,"problem_type": null,"pruned_heads": {},"remove_invalid_values": false,"repetition_penalty": 1.0,"return_dict": true,"return_dict_in_generate": false,"rms_norm_eps": 1e-06,"rope_scaling": {"mrope_interleaved": true,"mrope_section": null,"rope_type": "default"},"rope_theta": 1000000.0,"sep_token_id": null,"sliding_window": null,"suppress_tokens": null,"task_specific_params": null,"temperature": 1.0,"tf_legacy_loss": false,"tie_encoder_decoder": false,"tie_word_embeddings": false,"tokenizer_class": null,"top_k": 50,"top_p": 1.0,"torchscript": false,"transformers_version": "4.56.1","typical_p": 1.0,"use_bfloat16": false,"use_cache": true,"use_sliding_window": false,"video_patch_size": 16,"vision_config": {"_name_or_path": "","add_cross_attention": false,"architectures": null,"attention_dropout": 0.0,"bad_words_ids": null,"begin_suppress_tokens": null,"bos_token_id": null,"chunk_size_feed_forward": 0,"cross_attention_hidden_size": null,"decoder_start_token_id": null,"diversity_penalty": 0.0,"do_sample": false,"dtype": null,"early_stopping": false,"encoder_no_repeat_ngram_size": 0,"eos_token_id": null,"exponential_decay_length_penalty": null,"finetuning_task": null,"forced_bos_token_id": null,"forced_eos_token_id": null,"hidden_act": "gelu_pytorch_tanh","hidden_size": 1152,"id2label": {"0": "LABEL_0","1": "LABEL_1"},"image_size": 256,"intermediate_size": 4304,"is_decoder": false,"is_encoder_decoder": false,"label2id": {"LABEL_0": 0,"LABEL_1": 1},"layer_norm_eps": 1e-06,"length_penalty": 1.0,"max_length": 20,"min_length": 0,"model_type": "pixel_shuffle_siglip2","no_repeat_ngram_size": 0,"num_attention_heads": 16,"num_beam_groups": 1,"num_beams": 1,"num_channels": 3,"num_hidden_layers": 27,"num_patches": 256,"num_return_sequences": 1,"output_attentions": false,"output_hidden_states": false,"output_scores": false,"pad_token_id": null,"patch_size": 16,"pixel_shuffle_scale_factor": 2,"prefix": null,"problem_type": null,"pruned_heads": {},"remove_invalid_values": false,"repetition_penalty": 1.0,"return_dict": true,"return_dict_in_generate": false,"sep_token_id": null,"suppress_tokens": null,"task_specific_params": null,"temperature": 1.0,"tf_legacy_loss": false,"tie_encoder_decoder": false,"tie_word_embeddings": true,"tokenizer_class": null,"top_k": 50,"top_p": 1.0,"torchscript": false,"typical_p": 1.0,"use_bfloat16": false},"vision_max_num_patches": 6144,"vision_min_num_patches": 256,"vision_token": "<image>","vocab_size": 151936},"processor_class": "IsaacProcessor"}1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546471 unmodified line"auto_map": {"AutoProcessor": "modular_isaac.IsaacProcessor"},"config": null,"image_processor": {"_processor_class": null,"auto_map": {"AutoProcessor": "modular_isaac.IsaacProcessor"},"crop_size": null,"data_format": "channels_first","default_to_square": null,"device": null,"disable_grouping": false,"do_center_crop": false,"do_convert_rgb": true,"do_normalize": true,"do_pad": false,"do_rescale": true,"do_resize": true,"image_mean": [0.5,0.5,0.5],"image_processor_type": "IsaacImageProcessorFast","image_std": [0.5,0.5,0.5],"input_data_format": null,"max_num_patches": 6144,"min_num_patches": 256,"pad_size": null,"patch_size": 16,"pixel_shuffle_scale": 2,"resample": 2,"rescale_factor": 0.00392156862745098,"return_tensors": null,"size": null},"max_sequence_length": 16384,"processor_class": "IsaacProcessor","vision_token": "<image>"}
123version https://git-lfs.github.com/spec/v1oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4size 11422654123version https://git-lfs.github.com/spec/v1oid sha256:0c670a45d54b226b4213f50c920332be152acff8fafaabdafd5586e772c3d500size 11473541
208 unmodified lines209210211212213214208 unmodified lines"rstrip": false,"single_word": false,"special": false}},"additional_special_tokens": [208 unmodified lines2092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350208 unmodified lines"rstrip": false,"single_word": false,"special": false},"151669": {"content": "<reserved_0>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151670": {"content": "<reserved_1>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151671": {"content": "<reserved_2>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151672": {"content": "<reserved_3>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151673": {"content": "<reserved_4>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151674": {"content": "<reserved_5>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151675": {"content": "<reserved_6>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151676": {"content": "<reserved_7>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151677": {"content": "<reserved_8>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151678": {"content": "<reserved_9>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151679": {"content": "<reserved_10>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151680": {"content": "<reserved_11>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151681": {"content": "<reserved_12>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151682": {"content": "<reserved_13>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151683": {"content": "<reserved_14>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151684": {"content": "<reserved_15>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151685": {"content": "<reserved_16>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151686": {"content": "<reserved_17>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151687": {"content": "<reserved_18>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151688": {"content": "<reserved_19>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151689": {"content": "<reserved_20>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151690": {"content": "<reserved_21>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151691": {"content": "<reserved_22>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151692": {"content": "<reserved_23>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151693": {"content": "<reserved_24>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151694": {"content": "<reserved_25>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151695": {"content": "<reserved_26>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151696": {"content": "<reserved_27>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151697": {"content": "<reserved_28>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151698": {"content": "<reserved_29>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151699": {"content": "<reserved_30>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151700": {"content": "<reserved_31>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151701": {"content": "<reserved_32>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151702": {"content": "<reserved_33>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151703": {"content": "<reserved_34>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151704": {"content": "<reserved_35>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151705": {"content": "<reserved_36>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151706": {"content": "<reserved_37>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151707": {"content": "<reserved_38>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151708": {"content": "<reserved_39>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151709": {"content": "<reserved_40>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151710": {"content": "<reserved_41>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151711": {"content": "<reserved_42>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151712": {"content": "<reserved_43>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151713": {"content": "<reserved_44>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151714": {"content": "<reserved_45>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151715": {"content": "<reserved_46>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151716": {"content": "<reserved_47>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151717": {"content": "<reserved_48>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151718": {"content": "<reserved_49>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151719": {"content": "<reserved_50>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151720": {"content": "<reserved_51>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151721": {"content": "<reserved_52>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151722": {"content": "<reserved_53>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151723": {"content": "<reserved_54>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151724": {"content": "<reserved_55>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151725": {"content": "<reserved_56>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151726": {"content": "<reserved_57>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151727": {"content": "<reserved_58>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151728": {"content": "<reserved_59>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151729": {"content": "<reserved_60>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151730": {"content": "<reserved_61>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151731": {"content": "<reserved_62>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151732": {"content": "<reserved_63>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151733": {"content": "<reserved_64>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151734": {"content": "<reserved_65>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151735": {"content": "<reserved_66>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151736": {"content": "<reserved_67>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151737": {"content": "<reserved_68>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151738": {"content": "<reserved_69>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151739": {"content": "<reserved_70>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151740": {"content": "<reserved_71>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151741": {"content": "<reserved_72>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151742": {"content": "<reserved_73>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151743": {"content": "<reserved_74>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151744": {"content": "<reserved_75>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151745": {"content": "<reserved_76>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151746": {"content": "<reserved_77>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151747": {"content": "<reserved_78>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151748": {"content": "<reserved_79>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151749": {"content": "<reserved_80>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151750": {"content": "<reserved_81>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151751": {"content": "<reserved_82>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151752": {"content": "<reserved_83>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151753": {"content": "<reserved_84>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151754": {"content": "<reserved_85>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151755": {"content": "<reserved_86>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151756": {"content": "<reserved_87>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151757": {"content": "<reserved_88>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151758": {"content": "<reserved_89>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151759": {"content": "<reserved_90>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151760": {"content": "<reserved_91>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151761": {"content": "<reserved_92>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151762": {"content": "<reserved_93>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151763": {"content": "<reserved_94>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151764": {"content": "<reserved_95>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151765": {"content": "<reserved_96>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151766": {"content": "<reserved_97>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151767": {"content": "<reserved_98>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151768": {"content": "<reserved_99>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151769": {"content": "<reserved_100>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151770": {"content": "<reserved_101>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151771": {"content": "<reserved_102>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151772": {"content": "<reserved_103>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151773": {"content": "<reserved_104>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151774": {"content": "<reserved_105>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151775": {"content": "<reserved_106>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151776": {"content": "<reserved_107>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151777": {"content": "<reserved_108>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151778": {"content": "<reserved_109>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151779": {"content": "<reserved_110>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151780": {"content": "<reserved_111>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151781": {"content": "<reserved_112>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151782": {"content": "<reserved_113>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151783": {"content": "<reserved_114>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151784": {"content": "<reserved_115>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151785": {"content": "<reserved_116>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151786": {"content": "<reserved_117>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151787": {"content": "<reserved_118>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151788": {"content": "<reserved_119>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151789": {"content": "<reserved_120>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151790": {"content": "<reserved_121>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151791": {"content": "<reserved_122>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151792": {"content": "<reserved_123>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151793": {"content": "<reserved_124>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151794": {"content": "<reserved_125>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151795": {"content": "<reserved_126>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151796": {"content": "<reserved_127>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151797": {"content": "<reserved_128>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151798": {"content": "<reserved_129>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151799": {"content": "<reserved_130>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151800": {"content": "<reserved_131>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151801": {"content": "<reserved_132>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151802": {"content": "<reserved_133>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151803": {"content": "<reserved_134>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151804": {"content": "<reserved_135>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151805": {"content": "<reserved_136>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151806": {"content": "<reserved_137>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151807": {"content": "<reserved_138>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151808": {"content": "<reserved_139>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151809": {"content": "<reserved_140>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151810": {"content": "<reserved_141>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151811": {"content": "<reserved_142>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151812": {"content": "<reserved_143>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151813": {"content": "<reserved_144>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151814": {"content": "<reserved_145>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151815": {"content": "<reserved_146>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151816": {"content": "<reserved_147>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151817": {"content": "<reserved_148>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151818": {"content": "<reserved_149>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151819": {"content": "<reserved_150>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151820": {"content": "<reserved_151>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151821": {"content": "<reserved_152>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151822": {"content": "<reserved_153>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151823": {"content": "<reserved_154>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151824": {"content": "<reserved_155>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151825": {"content": "<reserved_156>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151826": {"content": "<reserved_157>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151827": {"content": "<reserved_158>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151828": {"content": "<reserved_159>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151829": {"content": "<reserved_160>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151830": {"content": "<reserved_161>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151831": {"content": "<reserved_162>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151832": {"content": "<reserved_163>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151833": {"content": "<reserved_164>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151834": {"content": "<reserved_165>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151835": {"content": "<reserved_166>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151836": {"content": "<reserved_167>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151837": {"content": "<reserved_168>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151838": {"content": "<reserved_169>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151839": {"content": "<reserved_170>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151840": {"content": "<reserved_171>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151841": {"content": "<reserved_172>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151842": {"content": "<reserved_173>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151843": {"content": "<reserved_174>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151844": {"content": "<reserved_175>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151845": {"content": "<reserved_176>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151846": {"content": "<reserved_177>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151847": {"content": "<reserved_178>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151848": {"content": "<reserved_179>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151849": {"content": "<reserved_180>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151850": {"content": "<reserved_181>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151851": {"content": "<reserved_182>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151852": {"content": "<reserved_183>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151853": {"content": "<reserved_184>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151854": {"content": "<reserved_185>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151855": {"content": "<reserved_186>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151856": {"content": "<reserved_187>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151857": {"content": "<reserved_188>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151858": {"content": "<reserved_189>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151859": {"content": "<reserved_190>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151860": {"content": "<reserved_191>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151861": {"content": "<reserved_192>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151862": {"content": "<reserved_193>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151863": {"content": "<reserved_194>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151864": {"content": "<reserved_195>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151865": {"content": "<reserved_196>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151866": {"content": "<reserved_197>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151867": {"content": "<reserved_198>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151868": {"content": "<reserved_199>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151869": {"content": "<reserved_200>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151870": {"content": "<reserved_201>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151871": {"content": "<reserved_202>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151872": {"content": "<reserved_203>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151873": {"content": "<reserved_204>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151874": {"content": "<reserved_205>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151875": {"content": "<reserved_206>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151876": {"content": "<reserved_207>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151877": {"content": "<reserved_208>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151878": {"content": "<reserved_209>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151879": {"content": "<reserved_210>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151880": {"content": "<reserved_211>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151881": {"content": "<reserved_212>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151882": {"content": "<reserved_213>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151883": {"content": "<reserved_214>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151884": {"content": "<reserved_215>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151885": {"content": "<reserved_216>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151886": {"content": "<reserved_217>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151887": {"content": "<reserved_218>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151888": {"content": "<reserved_219>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151889": {"content": "<reserved_220>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151890": {"content": "<reserved_221>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151891": {"content": "<reserved_222>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151892": {"content": "<reserved_223>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151893": {"content": "<reserved_224>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151894": {"content": "<reserved_225>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151895": {"content": "<reserved_226>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151896": {"content": "<reserved_227>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151897": {"content": "<reserved_228>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151898": {"content": "<reserved_229>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151899": {"content": "<reserved_230>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151900": {"content": "<reserved_231>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151901": {"content": "<reserved_232>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151902": {"content": "<reserved_233>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151903": {"content": "<reserved_234>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151904": {"content": "<reserved_235>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151905": {"content": "<reserved_236>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151906": {"content": "<reserved_237>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151907": {"content": "<reserved_238>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151908": {"content": "<reserved_239>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151909": {"content": "<reserved_240>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151910": {"content": "<reserved_241>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151911": {"content": "<reserved_242>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151912": {"content": "<reserved_243>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151913": {"content": "<reserved_244>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151914": {"content": "<reserved_245>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151915": {"content": "<reserved_246>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151916": {"content": "<reserved_247>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151917": {"content": "<reserved_248>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151918": {"content": "<reserved_249>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151919": {"content": "<reserved_250>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151920": {"content": "<reserved_251>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151921": {"content": "<reserved_252>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151922": {"content": "<reserved_253>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151923": {"content": "<reserved_254>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151924": {"content": "<reserved_255>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151925": {"content": "<reserved_256>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151926": {"content": "<reserved_257>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151927": {"content": "<reserved_258>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151928": {"content": "<reserved_259>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151929": {"content": "<reserved_260>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151930": {"content": "<reserved_261>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151931": {"content": "<reserved_262>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151932": {"content": "<reserved_263>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151933": {"content": "<reserved_264>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151934": {"content": "<reserved_265>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"151935": {"content": "<reserved_266>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true}},"additional_special_tokens": [
added_tokens.json+267
config.json+97-8
generation_config.json+1-1
model-00001-of-00003.safetensors+2-2
model-00002-of-00003.safetensors+2-2
model.safetensors.index.json+310-310
modular_isaac.py+1169-578
processor_config.json+37-199
tokenizer.json+2-2
tokenizer_config.json+2136