-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Softcapping for gemma2. * Less clutter. * No access to transformers config, only config_dict here. * 0.0 is the null value in the C++ API.
- Loading branch information
Showing
13 changed files
with
2,013 additions
and
616 deletions.
There are no files selected for viewing
254 changes: 254 additions & 0 deletions
254
integration-tests/models/__snapshots__/test_flash_gemma2/test_flash_gemma2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,254 @@ | ||
{ | ||
"details": { | ||
"best_of_sequences": null, | ||
"finish_reason": "length", | ||
"generated_tokens": 10, | ||
"prefill": [ | ||
{ | ||
"id": 2, | ||
"logprob": null, | ||
"text": "<bos>" | ||
}, | ||
{ | ||
"id": 106, | ||
"logprob": -47.25, | ||
"text": "<start_of_turn>" | ||
}, | ||
{ | ||
"id": 1645, | ||
"logprob": -18.875, | ||
"text": "user" | ||
}, | ||
{ | ||
"id": 235292, | ||
"logprob": -7.15625, | ||
"text": ":" | ||
}, | ||
{ | ||
"id": 108, | ||
"logprob": -4.78125, | ||
"text": "\n" | ||
}, | ||
{ | ||
"id": 5559, | ||
"logprob": -10.0, | ||
"text": "Write" | ||
}, | ||
{ | ||
"id": 476, | ||
"logprob": -0.1171875, | ||
"text": " a" | ||
}, | ||
{ | ||
"id": 19592, | ||
"logprob": -2.46875, | ||
"text": " poem" | ||
}, | ||
{ | ||
"id": 577, | ||
"logprob": -5.84375, | ||
"text": " to" | ||
}, | ||
{ | ||
"id": 1707, | ||
"logprob": -6.375, | ||
"text": " help" | ||
}, | ||
{ | ||
"id": 682, | ||
"logprob": -2.125, | ||
"text": " me" | ||
}, | ||
{ | ||
"id": 5434, | ||
"logprob": -1.546875, | ||
"text": " remember" | ||
}, | ||
{ | ||
"id": 573, | ||
"logprob": -0.62890625, | ||
"text": " the" | ||
}, | ||
{ | ||
"id": 1370, | ||
"logprob": -6.65625, | ||
"text": " first" | ||
}, | ||
{ | ||
"id": 235248, | ||
"logprob": -1.84375, | ||
"text": " " | ||
}, | ||
{ | ||
"id": 235274, | ||
"logprob": -0.45117188, | ||
"text": "1" | ||
}, | ||
{ | ||
"id": 235276, | ||
"logprob": -0.07421875, | ||
"text": "0" | ||
}, | ||
{ | ||
"id": 6635, | ||
"logprob": -2.109375, | ||
"text": " elements" | ||
}, | ||
{ | ||
"id": 611, | ||
"logprob": -0.4140625, | ||
"text": " on" | ||
}, | ||
{ | ||
"id": 573, | ||
"logprob": -0.0009536743, | ||
"text": " the" | ||
}, | ||
{ | ||
"id": 26163, | ||
"logprob": -0.033203125, | ||
"text": " periodic" | ||
}, | ||
{ | ||
"id": 3037, | ||
"logprob": -0.0002670288, | ||
"text": " table" | ||
}, | ||
{ | ||
"id": 235269, | ||
"logprob": -4.75, | ||
"text": "," | ||
}, | ||
{ | ||
"id": 7385, | ||
"logprob": -11.625, | ||
"text": " giving" | ||
}, | ||
{ | ||
"id": 1853, | ||
"logprob": -4.875, | ||
"text": " each" | ||
}, | ||
{ | ||
"id": 5356, | ||
"logprob": -0.38867188, | ||
"text": " element" | ||
}, | ||
{ | ||
"id": 1277, | ||
"logprob": -3.65625, | ||
"text": " its" | ||
}, | ||
{ | ||
"id": 1997, | ||
"logprob": -4.4375, | ||
"text": " own" | ||
}, | ||
{ | ||
"id": 2017, | ||
"logprob": -0.29882812, | ||
"text": " line" | ||
}, | ||
{ | ||
"id": 235265, | ||
"logprob": -0.16699219, | ||
"text": "." | ||
}, | ||
{ | ||
"id": 107, | ||
"logprob": -25.625, | ||
"text": "<end_of_turn>" | ||
}, | ||
{ | ||
"id": 108, | ||
"logprob": -6.75, | ||
"text": "\n" | ||
}, | ||
{ | ||
"id": 106, | ||
"logprob": -39.5, | ||
"text": "<start_of_turn>" | ||
}, | ||
{ | ||
"id": 2516, | ||
"logprob": -32.5, | ||
"text": "model" | ||
}, | ||
{ | ||
"id": 235292, | ||
"logprob": -10.125, | ||
"text": ":" | ||
}, | ||
{ | ||
"id": 108, | ||
"logprob": -3.421875, | ||
"text": "\n" | ||
} | ||
], | ||
"seed": null, | ||
"tokens": [ | ||
{ | ||
"id": 688, | ||
"logprob": -0.546875, | ||
"special": false, | ||
"text": "**" | ||
}, | ||
{ | ||
"id": 103889, | ||
"logprob": -0.49023438, | ||
"special": false, | ||
"text": "Hydrogen" | ||
}, | ||
{ | ||
"id": 190213, | ||
"logprob": -0.48632812, | ||
"special": false, | ||
"text": "**," | ||
}, | ||
{ | ||
"id": 2611, | ||
"logprob": -0.58203125, | ||
"special": false, | ||
"text": " light" | ||
}, | ||
{ | ||
"id": 578, | ||
"logprob": -0.099121094, | ||
"special": false, | ||
"text": " and" | ||
}, | ||
{ | ||
"id": 2223, | ||
"logprob": -1.078125, | ||
"special": false, | ||
"text": " free" | ||
}, | ||
{ | ||
"id": 235269, | ||
"logprob": -0.025756836, | ||
"special": false, | ||
"text": "," | ||
}, | ||
{ | ||
"id": 108, | ||
"logprob": -0.29101562, | ||
"special": false, | ||
"text": "\n" | ||
}, | ||
{ | ||
"id": 688, | ||
"logprob": -0.0035858154, | ||
"special": false, | ||
"text": "**" | ||
}, | ||
{ | ||
"id": 1949, | ||
"logprob": -4.1007996e-05, | ||
"special": false, | ||
"text": "He" | ||
} | ||
], | ||
"top_tokens": null | ||
}, | ||
"generated_text": "**Hydrogen**, light and free,\n**He" | ||
} |
Oops, something went wrong.