Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 20, 2024
1 parent 4c79f8a commit 7ed73fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions evals/benchmark/stresscli/locust/aistress.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def bench_main(self):
first_token_ts = time.perf_counter()
try:
data = json.loads(event.data)
for op in data['ops']:
if op['path'] == '/logs/HuggingFaceEndpoint/final_output':
generations = op['value'].get('generations', [])
for op in data["ops"]:
if op["path"] == "/logs/HuggingFaceEndpoint/final_output":
generations = op["value"].get("generations", [])
for generation in generations:
for item in generation:
text = item.get("text", "")
Expand Down
2 changes: 1 addition & 1 deletion evals/benchmark/stresscli/locust/faqgenfixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def getUrl():

def getReqData():
return {
"messages": "Text Embeddings Inference (TEI) is a toolkit for deploying and serving open source text embeddings and sequence classification models. TEI enables high-performance extraction for the most popular models, including FlagEmbedding, Ember, GTE and E6.",
"messages": "Text Embeddings Inference (TEI) is a toolkit for deploying and serving open source text embeddings and sequence classification models. TEI enables high-performance extraction for the most popular models, including FlagEmbedding, Ember, GTE and E6.",
"max_tokens": 128,
"top_k": 1,
}
Expand Down

0 comments on commit 7ed73fe

Please sign in to comment.