fix: resolve lint issue (#10181)
This commit is contained in:
@@ -706,7 +706,9 @@ def get_dataset(args, tokenizer):
|
|||||||
local_path = args.dataset_path
|
local_path = args.dataset_path
|
||||||
|
|
||||||
if not os.path.exists(local_path):
|
if not os.path.exists(local_path):
|
||||||
download_and_cache_file(MOONCAKE_DATASET_URL[args.mooncake_workload], local_path)
|
download_and_cache_file(
|
||||||
|
MOONCAKE_DATASET_URL[args.mooncake_workload], local_path
|
||||||
|
)
|
||||||
|
|
||||||
with open(local_path, "r") as f:
|
with open(local_path, "r") as f:
|
||||||
all_requests_data = [json.loads(line) for line in f if line.strip()]
|
all_requests_data = [json.loads(line) for line in f if line.strip()]
|
||||||
|
|||||||
Reference in New Issue
Block a user