Skip to content

Commit 66993bd

Browse files
committed
temp fix for offline ci
Signed-off-by: h-guo18 <[email protected]>
1 parent bd27b86 commit 66993bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/speculative_decoding/collect_hidden_states/compute_hidden_states_hf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def main(args: argparse.Namespace) -> None:
8484
with args.input_file.open("r", encoding="utf-8") as f:
8585
all_conversations.extend([json.loads(line) for line in f if line.strip()])
8686

87-
if any(not entry.get("conversation_id") for entry in all_conversations):
87+
if any(entry.get("conversation_id") is None for entry in all_conversations):
8888
msg = "All conversations must have a 'conversation_id' field."
8989
raise ValueError(msg)
9090

0 commit comments

Comments
 (0)