mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-19 22:02:06 +00:00
fix: update expected output from town to village
This commit is contained in:
parent
571ac9b507
commit
38b06b90b9
@ -6,7 +6,7 @@
|
|||||||
"index": 0,
|
"index": 0,
|
||||||
"logprobs": null,
|
"logprobs": null,
|
||||||
"message": {
|
"message": {
|
||||||
"content": "In a small town, a chicken named Cluck",
|
"content": "In a small village, a chicken named Cluck",
|
||||||
"name": null,
|
"name": null,
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"tool_calls": null
|
"tool_calls": null
|
||||||
@ -32,7 +32,7 @@
|
|||||||
"index": 0,
|
"index": 0,
|
||||||
"logprobs": null,
|
"logprobs": null,
|
||||||
"message": {
|
"message": {
|
||||||
"content": "In a small town, a chicken named Cluck",
|
"content": "In a small village, a chicken named Cluck",
|
||||||
"name": null,
|
"name": null,
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"tool_calls": null
|
"tool_calls": null
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"index": 0,
|
"index": 0,
|
||||||
"logprobs": null,
|
"logprobs": null,
|
||||||
"message": {
|
"message": {
|
||||||
"content": "In a small town, a chicken named Cluck",
|
"content": "In a small village, a chicken named Cluck",
|
||||||
"name": null,
|
"name": null,
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"tool_calls": null
|
"tool_calls": null
|
||||||
|
@ -47,7 +47,8 @@ async def test_mllama_simpl(mllama, response_snapshot):
|
|||||||
"total_tokens": 60,
|
"total_tokens": 60,
|
||||||
}
|
}
|
||||||
assert (
|
assert (
|
||||||
response.choices[0].message.content == "In a small town, a chicken named Cluck"
|
response.choices[0].message.content
|
||||||
|
== "In a small village, a chicken named Cluck"
|
||||||
)
|
)
|
||||||
assert response == response_snapshot
|
assert response == response_snapshot
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ async def test_mllama_load(mllama, generate_load, response_snapshot):
|
|||||||
generated_texts = [response.choices[0].message.content for response in responses]
|
generated_texts = [response.choices[0].message.content for response in responses]
|
||||||
|
|
||||||
# XXX: TODO: Fix this test.
|
# XXX: TODO: Fix this test.
|
||||||
assert generated_texts[0] == "In a small town, a chicken named Cluck"
|
assert generated_texts[0] == "In a small village, a chicken named Cluck"
|
||||||
assert len(generated_texts) == 2
|
assert len(generated_texts) == 2
|
||||||
assert generated_texts, all(
|
assert generated_texts, all(
|
||||||
[text == generated_texts[0] for text in generated_texts]
|
[text == generated_texts[0] for text in generated_texts]
|
||||||
|
Loading…
Reference in New Issue
Block a user