Skip to content

Commit

Permalink
Fix benchmark script type issue (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZijunZhou authored Apr 25, 2024
1 parent 9469054 commit f290bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

import argparse
import asyncio
from dataclasses import dataclass
from dataclasses import dataclass, field
from datetime import datetime
import json
import random
Expand Down Expand Up @@ -106,7 +106,7 @@ class InputRequest:
@dataclass
class RequestFuncOutput:
input_request: Optional[InputRequest] = None
generated_token_list: list[str] = []
generated_token_list: list[str] = field(default_factory=list)
generated_text: str = ""
success: bool = False
latency: float = 0
Expand Down

0 comments on commit f290bdc

Please sign in to comment.