-
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.
Mostly straightforward, changes to existing code: * Wrap quantizer parameters in a small wrapper to avoid passing around untyped tuples and needing to repack them as a dict. * Move scratch space computation to warmup, because we need the maximum input sequence length to avoid allocating huge scratch buffers that OOM.
- Loading branch information
Showing
23 changed files
with
972 additions
and
177 deletions.
There are no files selected for viewing
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
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
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
84 changes: 84 additions & 0 deletions
84
integration-tests/models/__snapshots__/test_flash_llama_exl2/test_flash_llama_exl2.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,84 @@ | ||
{ | ||
"details": { | ||
"best_of_sequences": null, | ||
"finish_reason": "length", | ||
"generated_tokens": 10, | ||
"prefill": [ | ||
{ | ||
"id": 2323, | ||
"logprob": null, | ||
"text": "Test" | ||
}, | ||
{ | ||
"id": 1715, | ||
"logprob": -11.4375, | ||
"text": " request" | ||
} | ||
], | ||
"seed": null, | ||
"tokens": [ | ||
{ | ||
"id": 25, | ||
"logprob": -2.9316406, | ||
"special": false, | ||
"text": ":" | ||
}, | ||
{ | ||
"id": 330, | ||
"logprob": -3.5136719, | ||
"special": false, | ||
"text": " \"" | ||
}, | ||
{ | ||
"id": 489, | ||
"logprob": -0.7783203, | ||
"special": false, | ||
"text": " +" | ||
}, | ||
{ | ||
"id": 1715, | ||
"logprob": -1.2314453, | ||
"special": false, | ||
"text": " request" | ||
}, | ||
{ | ||
"id": 489, | ||
"logprob": -2.0019531, | ||
"special": false, | ||
"text": " +" | ||
}, | ||
{ | ||
"id": 2990, | ||
"logprob": -1.5009766, | ||
"special": false, | ||
"text": " \"\\" | ||
}, | ||
{ | ||
"id": 77, | ||
"logprob": -0.057434082, | ||
"special": false, | ||
"text": "n" | ||
}, | ||
{ | ||
"id": 702, | ||
"logprob": -1.4912109, | ||
"special": false, | ||
"text": "\"\n" | ||
}, | ||
{ | ||
"id": 262, | ||
"logprob": -1.2636719, | ||
"special": false, | ||
"text": " " | ||
}, | ||
{ | ||
"id": 557, | ||
"logprob": -2.4042969, | ||
"special": false, | ||
"text": " }\n\n" | ||
} | ||
], | ||
"top_tokens": null | ||
}, | ||
"generated_text": ": \" + request + \"\\n\"\n }\n\n" | ||
} |
84 changes: 84 additions & 0 deletions
84
...on-tests/models/__snapshots__/test_flash_llama_exl2/test_flash_llama_exl2_all_params.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,84 @@ | ||
{ | ||
"details": { | ||
"best_of_sequences": null, | ||
"finish_reason": "length", | ||
"generated_tokens": 10, | ||
"prefill": [ | ||
{ | ||
"id": 2323, | ||
"logprob": null, | ||
"text": "Test" | ||
}, | ||
{ | ||
"id": 1715, | ||
"logprob": -11.453125, | ||
"text": " request" | ||
} | ||
], | ||
"seed": 0, | ||
"tokens": [ | ||
{ | ||
"id": 13, | ||
"logprob": -1.9980469, | ||
"special": false, | ||
"text": "." | ||
}, | ||
{ | ||
"id": 578, | ||
"logprob": -0.15795898, | ||
"special": false, | ||
"text": " The" | ||
}, | ||
{ | ||
"id": 3622, | ||
"logprob": -1.0458984, | ||
"special": false, | ||
"text": " server" | ||
}, | ||
{ | ||
"id": 31680, | ||
"logprob": -1.3623047, | ||
"special": false, | ||
"text": " responds" | ||
}, | ||
{ | ||
"id": 449, | ||
"logprob": 0.0, | ||
"special": false, | ||
"text": " with" | ||
}, | ||
{ | ||
"id": 264, | ||
"logprob": 0.0, | ||
"special": false, | ||
"text": " a" | ||
}, | ||
{ | ||
"id": 330, | ||
"logprob": -0.5678711, | ||
"special": false, | ||
"text": " \"" | ||
}, | ||
{ | ||
"id": 1049, | ||
"logprob": -0.12322998, | ||
"special": false, | ||
"text": "200" | ||
}, | ||
{ | ||
"id": 10619, | ||
"logprob": 0.0, | ||
"special": false, | ||
"text": " OK" | ||
}, | ||
{ | ||
"id": 1, | ||
"logprob": 0.0, | ||
"special": false, | ||
"text": "\"" | ||
} | ||
], | ||
"top_tokens": null | ||
}, | ||
"generated_text": "Test request. The server responds with a \"200 OK\"" | ||
} |
Oops, something went wrong.