We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd27b86 commit 66993bdCopy full SHA for 66993bd
examples/speculative_decoding/collect_hidden_states/compute_hidden_states_hf.py
@@ -84,7 +84,7 @@ async def main(args: argparse.Namespace) -> None:
84
with args.input_file.open("r", encoding="utf-8") as f:
85
all_conversations.extend([json.loads(line) for line in f if line.strip()])
86
87
- if any(not entry.get("conversation_id") for entry in all_conversations):
+ if any(entry.get("conversation_id") is None for entry in all_conversations):
88
msg = "All conversations must have a 'conversation_id' field."
89
raise ValueError(msg)
90
0 commit comments