BenchCheck-Pool / code /exp /analysis /pool /pool_prompts.py
Enxin's picture
Upload code/exp/analysis/pool/pool_prompts.py with huggingface_hub
5856f5e verified
Raw
History Blame Contribute Delete
822 Bytes
"""Prompt intro strings of the pool screening steps.
Copied verbatim from exp/pipeline/stage_p1_runner.py (INTRO_BLIND / INTRO_VISUAL) so the pool
client runs off-cluster without the P1 runner and its dependencies. When stage_p1_runner is
importable the strings are asserted equal at import time.
"""
INTRO_VISUAL = ("You are given {n} frame(s) sampled from a video. "
"Answer the question based on these frames.")
INTRO_BLIND = ("You are given NO frames from the video. "
"Answer the question from the text alone.")
try: # keep the two copies in lockstep on the cluster
import stage_p1_runner as _p1 # noqa: E402
assert _p1.INTRO_VISUAL == INTRO_VISUAL and _p1.INTRO_BLIND == INTRO_BLIND, \
"pool_prompts.py drifted from stage_p1_runner.py"
except ImportError:
pass