mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Update the conftest to allow NaN (first logprob).
This commit is contained in:
parent
772f0d1c80
commit
188ceb2fef
@ -118,6 +118,8 @@ class ResponseComparator(JSONSnapshotExtension):
|
||||
and token.text == other.text
|
||||
and (
|
||||
self.ignore_logprob
|
||||
or token.logprob == other.logprob
|
||||
and token.logprob is None
|
||||
or math.isclose(token.logprob, other.logprob, rel_tol=self.rtol)
|
||||
)
|
||||
and token.special == other.special
|
||||
|
@ -7,7 +7,7 @@
|
||||
"prefill": [
|
||||
{
|
||||
"id": 128000,
|
||||
"logprob": 0.0,
|
||||
"logprob": null,
|
||||
"text": "<|begin_of_text|>"
|
||||
},
|
||||
{
|
||||
@ -96,7 +96,7 @@
|
||||
"prefill": [
|
||||
{
|
||||
"id": 128000,
|
||||
"logprob": 0.0,
|
||||
"logprob": null,
|
||||
"text": "<|begin_of_text|>"
|
||||
},
|
||||
{
|
||||
@ -185,7 +185,7 @@
|
||||
"prefill": [
|
||||
{
|
||||
"id": 128000,
|
||||
"logprob": 0.0,
|
||||
"logprob": null,
|
||||
"text": "<|begin_of_text|>"
|
||||
},
|
||||
{
|
||||
@ -274,7 +274,7 @@
|
||||
"prefill": [
|
||||
{
|
||||
"id": 128000,
|
||||
"logprob": 0.0,
|
||||
"logprob": null,
|
||||
"text": "<|begin_of_text|>"
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user