Archived
nemotron 3.5 implementation
This commit is contained in:
1 parent
33108e488b
commit
94c90b17ad
59 files changed
+6046
-76
No files matched your search
@@ -0,0 +1,19 @@
|
||||
OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)
|
||||
|
||||
By exercising rights granted to you under this agreement, you accept and agree to its terms.
|
||||
|
||||
As used in this agreement, “Model Materials” means the materials provided to you under this agreement, consisting of: (1) one or more machine learning models (including architecture and parameters); and (2) all related artifacts (including associated data, documentation and software) that are provided to you hereunder.
|
||||
|
||||
Subject to your compliance with this agreement, permission is hereby granted, free of charge, to deal in the Model Materials without restriction, including under all copyright, patent, database, and trade secret rights included or embodied therein.
|
||||
|
||||
If you distribute any portion of the Model Materials, you shall retain in your distribution (1) a copy of this agreement, and (2) all copyright notices and other notices of origin included in the Model Materials that are applicable to your distribution.
|
||||
|
||||
If you file, maintain, or voluntarily participate in a lawsuit against any person or entity asserting that the Model Materials directly or indirectly infringe any patent or copyright, then all rights and grants made to you hereunder are terminated, unless that lawsuit was in response to a corresponding lawsuit first brought against you.
|
||||
|
||||
This agreement does not impose any restrictions or obligations with respect to any use, modification, or sharing of any outputs generated by using the Model Materials.
|
||||
|
||||
THE MODEL MATERIALS ARE PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NONINFRINGEMENT, ACCURACY, OR THE ABSENCE OF LATENT OR OTHER DEFECTS OR ERRORS, WHETHER OR NOT DISCOVERABLE, ALL TO THE GREATEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW.
|
||||
|
||||
YOU ARE SOLELY RESPONSIBLE FOR (1) CLEARING RIGHTS OF OTHER PERSONS THAT MAY APPLY TO THE MODEL MATERIALS OR ANY USE THEREOF, INCLUDING WITHOUT LIMITATION ANY PERSON’S COPYRIGHTS OR OTHER RIGHTS INCLUDED OR EMBODIED IN THE MODEL MATERIALS; (2) OBTAINING ANY NECESSARY CONSENTS, PERMISSIONS OR OTHER RIGHTS REQUIRED FOR ANY USE OF THE MODEL MATERIALS; OR (3) PERFORMING ANY DUE DILIGENCE OR UNDERTAKING ANY OTHER INVESTIGATIONS INTO THE MODEL MATERIALS OR ANYTHING INCORPORATED OR EMBODIED THEREIN.
|
||||
|
||||
IN NO EVENT SHALL THE PROVIDERS OF THE MODEL MATERIALS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODEL MATERIALS, THE USE THEREOF OR OTHER DEALINGS THEREIN.
|
||||
@@ -0,0 +1,25 @@
|
||||
# Nemotron 3.5 input fixtures
|
||||
|
||||
Source: [nvidia/Nemotron-3.5-Embed-8B-BF16](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-BF16/tree/781e779ee4ca9c2d2a4f38321993556baeab49a1),
|
||||
revision `781e779ee4ca9c2d2a4f38321993556baeab49a1`.
|
||||
|
||||
The source checkpoint's model card identifies OpenMDW-1.1 as its governing license. A copy is
|
||||
retained in [LICENSE](LICENSE) for the copied template and model-derived tokenizer fixture;
|
||||
these upstream assets are separate from the engine's Apache-2.0 code. See the pinned
|
||||
[model card](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-BF16/blob/781e779ee4ca9c2d2a4f38321993556baeab49a1/README.md).
|
||||
|
||||
`template.jinja` copies that checkpoint's retrieval template. `tokenizer-subset.json` is a test
|
||||
fixture retaining the original token IDs, all byte tokens and added tokens, the normalizer,
|
||||
pre-tokenizer and decoder, and the BPE candidates needed by the checked-in input cases. Serving
|
||||
requires the complete checkpoint tokenizer. The subset is tested against the full Hugging Face
|
||||
tokenizer before generation and exercised by Radiance's real tokenizer in CTest.
|
||||
|
||||
Regenerate the subset and `tests/data/golden/nemotron35_input.json` offline:
|
||||
|
||||
```sh
|
||||
python3 tests/mknemotron35inputgolden.py --tokenizer /path/to/checkpoint/tokenizer.json
|
||||
```
|
||||
|
||||
The generator needs Jinja2, Hugging Face tokenizers, and the checked-in vision fixture. The
|
||||
golden records the source template, full tokenizer, and subset SHA-256 hashes. It runs no model
|
||||
weights and is never called by CMake or CTest.
|
||||
@@ -0,0 +1,67 @@
|
||||
{# nemo-mistral-retrieval-v1
|
||||
Derived from the Mistral Ministral-3 instruct chat template render_content
|
||||
macro and its image-before-text canonicalization. Retrieval adaptation:
|
||||
system content is the retrieval prefix; generation wrappers and BOS/EOS are
|
||||
deliberately omitted so message inference matches training token for token.
|
||||
#}
|
||||
{%- macro mark_user_text(text) -%}
|
||||
{{- text | replace("[", "[") | replace("<", "<") -}}
|
||||
{%- endmacro -%}
|
||||
{%- macro render_text_content(content, context_name) -%}
|
||||
{%- if content is string -%}
|
||||
{{- content -}}
|
||||
{%- elif content is sequence -%}
|
||||
{%- set ns = namespace(has_output=false) -%}
|
||||
{%- for block in content -%}
|
||||
{%- if block["type"] == "text" -%}
|
||||
{%- if ns.has_output %}{{ "\n\n" }}{% endif -%}
|
||||
{{- block["text"] -}}
|
||||
{%- set ns.has_output = true -%}
|
||||
{%- else -%}
|
||||
{{- raise_exception(context_name + " may contain only text blocks") -}}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- else -%}
|
||||
{{- raise_exception(context_name + " must be a string or a list of text blocks") -}}
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
{%- macro render_user_content(content) -%}
|
||||
{%- if content is string -%}
|
||||
{{- mark_user_text(content) -}}
|
||||
{%- elif content is sequence -%}
|
||||
{%- set ns = namespace(has_output=false) -%}
|
||||
{%- for block in content -%}
|
||||
{%- if block["type"] in ["image", "image_url"] -%}
|
||||
{%- if ns.has_output %}{{ " " }}{% endif -%}
|
||||
{{- "[IMG]" -}}
|
||||
{%- set ns.has_output = true -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- for block in content -%}
|
||||
{%- if block["type"] == "text" -%}
|
||||
{%- if ns.has_output %}{{ " " }}{% endif -%}
|
||||
{{- mark_user_text(block["text"]) -}}
|
||||
{%- set ns.has_output = true -%}
|
||||
{%- elif block["type"] not in ["image", "image_url"] -%}
|
||||
{{- raise_exception("User content supports only text and image blocks") -}}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- else -%}
|
||||
{{- raise_exception("User content must be a string or a list of text and image blocks") -}}
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
{%- if not ((messages | length == 1 and messages[0]["role"] == "user")
|
||||
or (messages | length == 2
|
||||
and messages[0]["role"] == "system"
|
||||
and messages[1]["role"] == "user")) -%}
|
||||
{{- raise_exception("Retrieval inputs require one user message with an optional leading system prefix") -}}
|
||||
{%- endif -%}
|
||||
{# Iterate messages so vLLM can trace message.content into the rendering macros. #}
|
||||
{%- for message in messages -%}
|
||||
{%- if message["role"] == "system" -%}
|
||||
{%- set prefix = render_text_content(message["content"], "System content") -%}
|
||||
{{- prefix.rstrip(" ") ~ " " -}}
|
||||
{%- else -%}
|
||||
{{- render_user_content(message["content"]) -}}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":"1.0","truncation":null,"padding":null,"added_tokens":[{"id":0,"content":"<unk>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":1,"content":"<s>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":2,"content":"</s>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":3,"content":"[INST]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":4,"content":"[/INST]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":5,"content":"[AVAILABLE_TOOLS]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":6,"content":"[/AVAILABLE_TOOLS]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":7,"content":"[TOOL_RESULTS]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":8,"content":"[/TOOL_RESULTS]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":9,"content":"[TOOL_CALLS]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":10,"content":"[IMG]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":11,"content":"<pad>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":12,"content":"[IMG_BREAK]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":13,"content":"[IMG_END]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":14,"content":"[PREFIX]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":15,"content":"[MIDDLE]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":16,"content":"[SUFFIX]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":17,"content":"[SYSTEM_PROMPT]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":18,"content":"[/SYSTEM_PROMPT]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":19,"content":"[TOOL_CONTENT]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":20,"content":"<SPECIAL_20>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":21,"content":"<SPECIAL_21>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":22,"content":"<SPECIAL_22>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":23,"content":"<SPECIAL_23>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":24,"content":"[AUDIO]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":25,"content":"[BEGIN_AUDIO]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":26,"content":"<SPECIAL_26>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":27,"content":"<SPECIAL_27>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":28,"content":"<SPECIAL_28>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":29,"content":"<SPECIAL_29>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":30,"content":"<SPECIAL_30>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":31,"content":"<SPECIAL_31>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":32,"content":"[ARGS]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":33,"content":"[CALL_ID]","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":34,"content":"<SPECIAL_34>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":35,"content":"<SPECIAL_35>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":36,"content":"<SPECIAL_36>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":37,"content":"<SPECIAL_37>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":38,"content":"<SPECIAL_38>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":39,"content":"<SPECIAL_39>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":40,"content":"<SPECIAL_40>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":41,"content":"<SPECIAL_41>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":trueLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"provenance":{"transformers":"5.20.0","torch":"2.14.1+cpu","seed":413,"attention":"eager","dtype":"bfloat16","rotary_dtype":"float32"},"weights":{"language_model.embed_tokens.weight":{"shape":[32,16],"bf16":[47996,15398,48191,48310,15541,48481,15412,48365,15039,15526,15419,15342,15614,48219,15232,15632,15609,15502,15282,48140,15536,47964,15568,48002,15195,48206,15426,48357,15594,48141,48350,15370,47946,48391,15392,48175,48367,15397,48301,48273,15602,48089,47986,48213,48288,15531,47621,48391,15182,48337,48145,48359,47155,48085,15279,48145,15301,15460,48268,47942,15211,48110,15436,15652,48315,14968,48170,15332,48277,15233,15563,48335,15471,48314,15015,15128,48317,48255,48377,48028,15340,14862,48245,15495,48261,15502,48331,14653,48377,15269,15364,48250,15680,48287,15395,15457,48427,48347,15268,48134,48150,48129,48036,15273,48411,15373,15635,15631,15480,48111,48284,15420,48256,48259,14772,15277,15483,48462,15714,15368,47922,48175,15514,48171,15356,47712,48279,15649,48364,15444,15530,15694,15496,15538,15428,48263,48326,15544,15367,15517,48180,48212,48243,48348,15477,48045,48340,48378,48447,48178,15123,15275,15508,47892,15504,48301,48147,48329,15482,48207,15477,15593,15581,48291,48346,15517,15733,48374,15308,48405,15621,48389,48331,48261,15599,15329,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48048,15411,48103,48326,15437,15505,15174,15155,15375,15270,15499,48194,47890,48311,48358,47813,48129,15423,48454,15273,15521,48450,15322,48107,14547,15614,15434,15497,48107,15362,15409,48399,15538,47945,48434,48008,15401,15169,48112,47825,48209,14990,48146,15665,15540,15368,15154,15507,48161,15094,15624,15222,15156,48347,15544,15268,48242,48468,48255,48088,48067,15193,48138,15504,48388,15068,14734,15615,48182,15568,48358,15048,48221,48347,15494,48301,48386,48224,15425,48319,15596,15487,47956,15650,48118,48312,15382,15314,15403,14976,15418,15409,15579,15646,48244,48188,48217,47955,48250,15636,15593,15546,15644,48007,15299,15453,15494,15621,48159,48390,48308,48283,48280,15369,47841,15292,15693,48428,47887,48393,47803,15197,48171,15629,15429,48137,15374,48139,48147,15598,48319,48295,15375,15037,48294,48145,48100,15234,15644,47776,48269,15437,48274,48038,15294,47647,15155,48153,15676,48307,48255,48431,48157,15305,15301,15367,48082,48164,47996,15494,15658,48394,15161,47988,15515,47848,48235,15411,48427,48341,48250,48362,48398,48161,15160,15433,15437,48209,15517,15428,48155,48223,47878,15393,15597,48011,15403,48297,47963,47753,48104,15361,15111,48327,15491,15103,15344,47987,15369,48174,15660,48255,15514,48177,48239,48169,15530,48283,48249,48252,15301,48285,48299,48309,15199,15599,48167,48304,47748,48002,15240,15313,15381,48142,15381,48253,47916,15558,48396,47691,15088,15218,48357,15600,47924,15396,48302,48316,48065,48391,15134,15393,48431,15281,15503,48294,47293,48108,15546,48049,15511,48279,48315,15234,48329,48262,48263,48374,48418,48072,48332,47798,15370,15665,47616,15552,48401,48150,15461,15500,15257,15287,15366,48187,15001,15140,15564,15422,15580,15523,48307,15386,15578,48276,15486,48459,48412,48408,15201,15505,15526,15248,15496,48149,48344,48235,48338,15182,47992,48117,48163,14752,15556,15377,48204,48348,48169,14923,15485,15386,48185,48284,15522,48217,15280,15703,48074,48455,15605,48285]},"language_model.layers.0.self_attn.q_proj.weight":{"shape":[512,16],"bf16":[48251,48384,15286,15361,48125,48353,15564,15507,48045,15671,48309,14490,48197,48041,15159,15489,48161,47787,15541,48446,48328,48289,48241,48028,15141,15592,15374,15292,15295,48215,48059,15642,15149,15439,47852,15643,15554,48236,48170,48101,48310,15384,15503,15056,48136,48398,48287,47567,47949,15594,15567,48051,48369,48256,15060,48057,15366,15628,15602,15522,48282,48259,48376,48156,15541,48409,47686,15441,48234,15241,48404,48339,48345,15014,15346,15376,48135,15247,47815,15514,48187,48170,48251,15554,48142,48228,15343,48270,48205,47865,48095,47902,15096,15523,48301,15519,48178,48392,15522,15504,47896,15589,48423,47529,48104,15296,15604,47932,15368,15289,48347,48122,48087,48396,47566,48337,48419,15473,15545,47924,48236,47982,48201,48272,48234,15336,48347,15255,15559,48038,15515,47693,15381,48289,47892,48032,48211,48022,15713,48282,14866,48114,15520,48296,15497,15270,48032,15602,15564,15545,15449,48055,15243,15489,48131,48362,48054,48168,15258,15504,15493,48340,15504,15414,15370,48008,48235,15504,47625,48245,15514,15504,15389,15554,15661,48264,15641,48117,47722,48076,15207,15677,47628,15269,15481,48149,15623,47878,15218,15580,15581,48321,48289,15172,47662,47922,48296,15241,15518,48398,15305,15702,48217,47944,15581,48274,15633,15060,15410,15524,15461,15581,15624,47942,48035,47887,48139,48286,48387,48290,15523,48372,48283,15450,48346,15403,15510,15124,15251,15448,15643,48422,48411,15557,15558,15187,15499,48305,15514,15468,48153,48268,48213,48454,15483,15585,15583,15616,15678,48415,15645,15588,48397,48252,15243,48337,15576,47966,48115,47602,48216,15352,15504,48152,15607,15427,15403,14824,15576,48323,47930,48239,15342,48381,15379,15524,15420,15650,15662,15495,48388,47848,48427,48072,Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"provenance":{"model_revision":"781e779ee4ca9c2d2a4f38321993556baeab49a1","jinja2":"3.1.6","tokenizers":"0.23.3","template_sha256":"7fb10981445a4370aa951758f066ddbd1846fe26da85110f940b1433440d6c55","tokenizer_sha256":"b78fc125e4896d169ab6683914ba1e9515eed36a65faffa2421d4cdb3061de02","subset_sha256":"3e2fcda0552461224b990166a45febda8f791416bc1fb49d13ac9f2db13d5d30"},"cases":[{"name":"none/plain","messages":[{"role":"user","content":"What is NVIDIA NeMo Framework?"}],"rendered":"What is NVIDIA NeMo Framework?","ids":[7493,1395,1464,10145,20501,4671,37042,41667,1063],"expanded_ids":[7493,1395,1464,10145,20501,4671,37042,41667,1063],"image_order":[],"segments":[{"text":"What is NVIDIA NeMo Framework?","ids":[7493,1395,1464,10145,20501,4671,37042,41667,1063]}],"legacy_text":"What is NVIDIA NeMo Framework?","legacy_ids":[7493,1395,1464,10145,20501,4671,37042,41667,1063]},{"name":"none/literal_controls","messages":[{"role":"user","content":"Treat [IMG], [IMG_BREAK], <s>, </s> and <__media__> literally."}],"rendered":"Treat [IMG], [IMG_BREAK], <s>, </s> and <__media__> literally.","ids":[1084,2565,1766,125250,3605,1766,125250,8037,3609,26039,3605,1534,1115,24482,2259,1115,1062,1321,1534,3308,18242,3308,1062,37846,1046],"expanded_ids":[1084,2565,1766,125250,3605,1766,125250,8037,3609,26039,3605,1534,1115,24482,2259,1115,1062,1321,1534,3308,18242,3308,1062,37846,1046],"image_order":[],"segments":[{"text":"Treat [IMG], [IMG_BREAK], <s>, </s> and <__media__> literally.","ids":[1084,2565,1766,125250,3605,1766,125250,8037,3609,26039,3605,1534,1115,24482,2259,1115,1062,1321,1534,3308,18242,3308,1062,37846,1046]}],"legacy_text":"Treat [IMG], [IMG_BREAK], <s>, </s> and <__media__> literally.","legacy_ids":[1084,2565,1032,10,1044,1032,12,1044,1032,1,1044,1032,2,1321,1534,3308,18242,3308,1062,37846,1046]},{"name":"none/unicode","messages":[{"role":"user","content":"¿Qué ves? Καλημέρα 世界 👁️\n"}],"rendered":"¿Qué ves? Καλημέρα 世界 👁️\n","ids":[15870,33935,22044,1063,34057,11718,13175,5825,1032,29659,119685,1145,1129,1239,1184,1143,1010],"expanded_ids":[15870,33935,22044,1063,34057,11718,13175,5825,1032,29659,119685,1145,1129,1239,1184,1143,1010],"image_order":[],"segments":[{"text":"¿Qué ves? Καλημέρα 世界 👁️\n","ids":[15870,33935,22044,1063,34057,11718,13175,5825,1032,29659,119685,1145,1129,1239,1184,1143,1010]}],"legacy_text":"¿Qué ves? Καλημέρα 世界 👁️\n","legacy_ids":[15870,33935,22044,1063,34057,11718,13175,5825,1032,29659,119685,1145,1129,1239,1184,1143,1010]},{"name":"none/parts","messages":[{"role":"user","content":[{"type":"text","text":"first"},{"type":"text","text":""},{"type":"text","text":"last"}]}],"rendered":"first last","ids":[11517,1032,3804],"expanded_ids":[11517,1032,3804],"image_order":[],"segments":[{"text":"first last","ids":[11517,1032,3804]}]},{"name":"none/image_only","messages":[{"role":"user","content":[{"type":"image_url","image_url":{"url":"data:image/png;base64,AA=="}}]}],"rendered":"[IMG]","ids":[10],"expanded_ids":[10,13],"image_order":[0],"segments":[{"text":"","ids":[]},{"text":"","ids":[]}]},{"name":"none/text_before_images","messages":[{"role":"user","content":[{"type":"text","text":"A [page]"},{"type":"image_url","image_url":{"url":"data:image/png;base64,AQ=="}},{"type":"text","text":"<details>"},{"type":"image_url","image_url":{"url":"data:image/png;base64,Ag=="}}]}],"rendered":"[IMG] [IMG] A [page] <details>","ids":[10,1032,10,1349,1766,9813,1093,1534,42561,1062],"expanded_ids":[10,10,13,1032,10,10,10,12,10,10,10,13,1349,1766,9813,1093,1534,42561,1062],"image_order":[1,2],"segments":[{"text":"","ids":[]},{"text":" ","ids":[1032]},{"text":" A [page] <details>","ids":[1349,1766,9813,1093,1534,42561,1062]}]},{"name":"none/empty_blocks","messages":[{"role":"user","content":[{"type":"text","text":""},{"type":"image_url","image_url":{"url":"data:image/png;base64,Aw=="}},{"type":"text","text":""}]}],"rendered":"[IMG] ","ids":[10,1256],"expanded_ids":[10,12,10,13,1256],"image_order":[3],"segments":[{"text":"","ids":[]},{"text":" ","ids":[1256]}]},{"name":"query/plain","messages":[{"role":"system","content":"query: "},{"role":"user","content":"What is NVIDIA NeMo Framework?"}],"rendered":"query: What is NVIDIA NeMo Framework?","ids":[5272,1058,5675,1395,1464,10145,20501,4671,37042,41667,1063],"expanded_ids":[5272,1058,5675,1395,1464,10145,20501,4671,37042,41667,1063],"image_order":[],"segments":[{"text":"query: What is NVIDIA NeMo Framework?","ids":[5272,1058,5675,1395,1464,10145,20501,4671,37042,41667,1063]}]},{"name":"query/literal_controls","messages":[{"role":"system","content":"query: "},{"role":"user","content":"Treat [IMG], [IMG_BREAK], <s>, </s> and <__media__> literally."}],"rendered":"query: Treat [IMG], [IMG_BREAK], <s>, </s> and <__media__> literally.","ids":[5272,1058,35280,1766,125250,3605,1766,125250,8037,3609,26039,3605,1534,1115,24482,2259,1115,1Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"provenance":{"transformers":"5.20.0","torch":"2.14.1+cpu","attention":"eager","dtype":"bfloat16","rotary_dtype":"float32","weights":["nemotron35.json","nemotron35_vision.json"]},"cases":[{"name":"image_only","inputs":[{"tokens":[10,10,13],"placements":[{"image":1,"tok":0}]}],"pooled":[[-0.78125,-0.099609375,0.55859375,0.306640625,0.51953125,0.58203125,0.2470703125,-2.140625,1.5,-0.435546875,0.1474609375,0.412109375,-2.25,-0.3671875,0.431640625,-1.2578125]],"hidden":[[[-0.76171875,-0.15234375,0.9921875,0.2197265625,0.34375,1.1015625,0.2431640625,-2.09375,1.546875,-0.66015625,-0.026123046875,0.3515625,-2.28125,-0.44140625,0.392578125,-0.96875],[-0.69921875,-0.2392578125,0.98046875,0.3828125,0.390625,0.953125,0.18359375,-2.234375,1.5546875,-0.72265625,0.07568359375,0.25,-2.234375,-0.392578125,0.330078125,-0.84375],[-0.875,0.0927734375,-0.294921875,0.318359375,0.8203125,-0.302734375,0.314453125,-2.109375,1.390625,0.07666015625,0.392578125,0.6328125,-2.21875,-0.26953125,0.578125,-1.96875]]]},{"name":"image_text","inputs":[{"tokens":[3,4,10,10,10,12,10,10,10,13,5,7,8,6],"placements":[{"image":2,"tok":2}]}],"pooled":[[-0.11181640625,0.26171875,0.5859375,0.5078125,1.7890625,1.0546875,0.35546875,-0.79296875,0.94140625,1.1484375,0.349609375,1.109375,-1.3984375,-0.5703125,-0.89453125,1.375]],"hidden":[[[0.17578125,-0.43359375,0.453125,-0.28515625,1.6796875,0.859375,0.34765625,-0.9296875,1.1796875,1.3515625,-0.333984375,0.9375,-1.2734375,-0.61328125,-0.392578125,2.59375],[-0.53125,0.314453125,0.39453125,0.59765625,1.0859375,1.125,0.75390625,-1.296875,1.3046875,0.48046875,0.2041015625,1.015625,-2.03125,-0.77734375,-1.4375,0.9921875],[0.0791015625,0.455078125,0.78515625,0.427734375,1.8671875,1.3984375,0.314453125,-0.71484375,1.15625,1.1796875,0.099609375,1.1875,-1.6953125,-0.486328125,-0.8359375,1.3125],[0.109375,0.46875,0.75,0.439453125,1.796875,1.375,0.314453125,-0.76953125,1.21875,1.1953125,0.24609375,1.1328125,-1.7421875,-0.5078125,-0.8359375,1.296875],[0.11474609375,0.337890625,0.79296875,0.58203125,2.03125,1.1953125,0.29296875,-0.7421875,1.1328125,1.109375,0.1103515625,1.2265625,-1.6484375,-0.375,-0.82421875,1.4453125],[-0.061767578125,0.578125,0.45703125,-0.1796875,1.953125,1.5234375,0.2734375,-0.61328125,1.1953125,1.0859375,0.66796875,0.69140625,-1.40625,-0.9375,-1.3828125,1.09375],[0.048583984375,0.318359375,0.77734375,0.53515625,2.015625,1.265625,0.302734375,-0.7578125,1.1171875,1.171875,0.1708984375,1.1875,-1.6875,-0.41796875,-0.76171875,1.421875],[0.1953125,0.279296875,0.703125,0.578125,1.96875,1.21875,0.27734375,-0.84375,1.140625,1.1640625,0.2275390625,1.171875,-1.6484375,-0.416015625,-0.87109375,1.4453125],[0.10546875,0.384765625,0.8046875,0.53515625,1.859375,1.2890625,0.2392578125,-0.8359375,1.21875,1.15625,0.177734375,1.1015625,-1.609375,-0.498046875,-0.94921875,1.4453125],[-0.1513671875,0.6015625,-0.61328125,0.5703125,2.15625,-0.296875,0.376953125,-0.84375,0.97265625,1.703125,0.53515625,1.3828125,-1.5625,-0.220703125,-0.44921875,0.01153564453125],[0.359375,0.39453125,0.3359375,1.1015625,1.4609375,1.9375,-0.427734375,-0.85546875,0.296875,1.3828125,0.54296875,0.79296875,0.033447265625,-1.1328125,-0.5703125,2.046875],[-0.330078125,-0.1416015625,0.6796875,0.55859375,1.984375,-0.369140625,1.40625,-0.4453125,0.87109375,0.7421875,0.69921875,0.69140625,-1.0703125,-0.41015625,-1.1328125,2.40625],[-0.59375,0.52734375,1.03125,1.421875,1.734375,1.375,0.400390625,-0.8984375,0.32421875,1.2421875,0.341796875,1.2109375,-1.3984375,-0.60546875,-0.90234375,0.21484375],[-1.078125,-0.41015625,0.8359375,0.220703125,1.375,0.84765625,0.08154296875,-0.546875,0.048828125,1.2109375,1.21875,1.8359375,-0.9375,-0.5859375,-1.1796875,1.5703125]]]},{"name":"two_images","inputs":[{"tokens":[3,10,10,13,5,10,12,10,13,5,7,9],"placements":[{"image":1,"tok":1},{"image":3,"tok":5}]}],"pooled":[[-0.59765625,1.3359375,0.423828125,0.53125,0.057861328125,-0.1748046875,0.84765625,-1.125,0.033203125,1.0390625,0.341796875,0.040771484375,-1.46875,-0.95703125,0.16015625,1.8984375]],"hidden":[[[-0.42578125,0.3359375,0.5390625,-0.375,0.1484375,-0.171875,0.8828125,-1.3046875,0.31640625,1.1875,-0.5625,0.0625,-1.4453125,-0.91015625,0.4921875,3.359375],[-0.7265625,1.65625,1.0625,0.6953125,0.1796875,0.2216796875,1.0234375,-1.1640625,0.1787109375,0.96875,-0.0380859375,0.306640625,-2.046875,-0.80078125,0.142578125,2.0625],[-0.62890625,1.515625,1.0546875,0.9765625,0.255859375,-0.023681640625,0.92578125,-1.3984375,0.1962890625,0.8671875,0.1123046875,0.1396484375,-1.9453125,-0.734375,0.056640625,2.25],[-0.80859375,1.53125,-0.80859375,0.66796875,0.76171875,-1.5234375,0.890625,-1.1484375,0.1142578125,1.5859375,0.52734375,0.64453125,-1.765625,-0.40625,0.390625,0.1455078125],[-0.33203125,1.4375,0.341796875,1.265625,-0.55859375,0.8203125,0.0250244140625,-1.1640625,-0.9453125,1.0859375,0.466796875,-0.33984375,0.1943359375,-1.484375,0.443359375,2.53125],[-0.78515625,1.625,1.0703125,0.69921875,0.08056640625,0.201171875,0.984375,-1.234375,0.072265625,0.91015625,0.166015Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"provenance":{"transformers":"5.20.0","torch":"2.14.1+cpu","torchvision":"0.29.1+cpu","pillow":"13.0.0","seed":8275,"processor":"PixtralImageProcessorPil","attention":"eager","dtype":"bfloat16","rotary_dtype":"float32"},"images":[{"f":0,"h":1,"w":1,"size":[28,28],"fnv":"d1a67e73b84cde45","expand":[10,13],"patches":[48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,16286,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,15990,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,48924,4Line truncated
|
||||
Reference in new issue
Block a user