mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 00:12:08 +00:00
Updating mllama after strftime.
This commit is contained in:
parent
36223f834e
commit
a91127c24b
@ -6,7 +6,7 @@
|
|||||||
"index": 0,
|
"index": 0,
|
||||||
"logprobs": null,
|
"logprobs": null,
|
||||||
"message": {
|
"message": {
|
||||||
"content": "In a bustling city, a chicken named Cluck",
|
"content": "In a small town, a chicken named Cluck",
|
||||||
"name": null,
|
"name": null,
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"tool_calls": null
|
"tool_calls": null
|
||||||
@ -14,11 +14,11 @@
|
|||||||
"usage": null
|
"usage": null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"created": 1727773835,
|
"created": 1738753835,
|
||||||
"id": "",
|
"id": "",
|
||||||
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
||||||
"object": "chat.completion",
|
"object": "chat.completion",
|
||||||
"system_fingerprint": "2.4.2-dev0-native",
|
"system_fingerprint": "3.1.1-dev0-native",
|
||||||
"usage": {
|
"usage": {
|
||||||
"completion_tokens": 10,
|
"completion_tokens": 10,
|
||||||
"prompt_tokens": 50,
|
"prompt_tokens": 50,
|
||||||
@ -32,7 +32,7 @@
|
|||||||
"index": 0,
|
"index": 0,
|
||||||
"logprobs": null,
|
"logprobs": null,
|
||||||
"message": {
|
"message": {
|
||||||
"content": "In a world where even chickens could dream big,",
|
"content": "In a small town, a chicken named Cluck",
|
||||||
"name": null,
|
"name": null,
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"tool_calls": null
|
"tool_calls": null
|
||||||
@ -40,63 +40,11 @@
|
|||||||
"usage": null
|
"usage": null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"created": 1727773835,
|
"created": 1738753835,
|
||||||
"id": "",
|
"id": "",
|
||||||
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
||||||
"object": "chat.completion",
|
"object": "chat.completion",
|
||||||
"system_fingerprint": "2.4.2-dev0-native",
|
"system_fingerprint": "3.1.1-dev0-native",
|
||||||
"usage": {
|
|
||||||
"completion_tokens": 10,
|
|
||||||
"prompt_tokens": 50,
|
|
||||||
"total_tokens": 60
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"choices": [
|
|
||||||
{
|
|
||||||
"finish_reason": "length",
|
|
||||||
"index": 0,
|
|
||||||
"logprobs": null,
|
|
||||||
"message": {
|
|
||||||
"content": "In a world where even chickens could dream big,",
|
|
||||||
"name": null,
|
|
||||||
"role": "assistant",
|
|
||||||
"tool_calls": null
|
|
||||||
},
|
|
||||||
"usage": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"created": 1727773835,
|
|
||||||
"id": "",
|
|
||||||
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
|
||||||
"object": "chat.completion",
|
|
||||||
"system_fingerprint": "2.4.2-dev0-native",
|
|
||||||
"usage": {
|
|
||||||
"completion_tokens": 10,
|
|
||||||
"prompt_tokens": 50,
|
|
||||||
"total_tokens": 60
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"choices": [
|
|
||||||
{
|
|
||||||
"finish_reason": "length",
|
|
||||||
"index": 0,
|
|
||||||
"logprobs": null,
|
|
||||||
"message": {
|
|
||||||
"content": "In a world where even chickens could dream big,",
|
|
||||||
"name": null,
|
|
||||||
"role": "assistant",
|
|
||||||
"tool_calls": null
|
|
||||||
},
|
|
||||||
"usage": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"created": 1727773835,
|
|
||||||
"id": "",
|
|
||||||
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
|
||||||
"object": "chat.completion",
|
|
||||||
"system_fingerprint": "2.4.2-dev0-native",
|
|
||||||
"usage": {
|
"usage": {
|
||||||
"completion_tokens": 10,
|
"completion_tokens": 10,
|
||||||
"prompt_tokens": 50,
|
"prompt_tokens": 50,
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"index": 0,
|
"index": 0,
|
||||||
"logprobs": null,
|
"logprobs": null,
|
||||||
"message": {
|
"message": {
|
||||||
"content": "In a bustling city, 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
|
||||||
@ -13,11 +13,11 @@
|
|||||||
"usage": null
|
"usage": null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"created": 1727556016,
|
"created": 1738753833,
|
||||||
"id": "",
|
"id": "",
|
||||||
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
|
||||||
"object": "chat.completion",
|
"object": "chat.completion",
|
||||||
"system_fingerprint": "2.4.2-dev0-native",
|
"system_fingerprint": "3.1.1-dev0-native",
|
||||||
"usage": {
|
"usage": {
|
||||||
"completion_tokens": 10,
|
"completion_tokens": 10,
|
||||||
"prompt_tokens": 50,
|
"prompt_tokens": 50,
|
||||||
|
@ -48,7 +48,7 @@ async def test_mllama_simpl(mllama, response_snapshot):
|
|||||||
}
|
}
|
||||||
assert (
|
assert (
|
||||||
response.choices[0].message.content
|
response.choices[0].message.content
|
||||||
== "In a bustling city, a chicken named Cluck"
|
== "In a small village, a chicken named Cluck"
|
||||||
)
|
)
|
||||||
assert response == response_snapshot
|
assert response == response_snapshot
|
||||||
|
|
||||||
@ -84,12 +84,12 @@ async def test_mllama_load(mllama, generate_load, response_snapshot):
|
|||||||
]
|
]
|
||||||
responses = await asyncio.gather(*futures)
|
responses = await asyncio.gather(*futures)
|
||||||
|
|
||||||
_ = [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 bustling city, a chicken named Cluck"
|
assert generated_texts[0] == "In a small town, a chicken named Cluck"
|
||||||
# assert len(generated_texts) == 4
|
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]
|
||||||
# )
|
)
|
||||||
# assert responses == response_snapshot
|
assert responses == response_snapshot
|
||||||
|
Loading…
Reference in New Issue
Block a user