Files
llm-atlas/experiments/deepseek/v2_lite_chat_cross_source_sampling_probe.py
2026-07-30 03:57:17 +08:00

64 lines
1.7 KiB
Python

#!/usr/bin/env python3
"""Run the preregistered cross-source DeepSeek Chat sampling grid.
The implementation deliberately reuses the audited Round 06 runner while
installing a new immutable protocol identity, four SHA-256-derived seeds, and
the fixed system x EOS/period four-row batch. Keeping the execution path
shared avoids silently forking model loading, RNG capture, generation, and
trajectory summaries.
"""
from __future__ import annotations
import v2_lite_chat_sampling_probe as sampling
PROTOCOL_ID = "llm-atlas-deepseek-chat-cross-source-sampling-v1"
CONDITIONS = (
"s0_eos",
"s1_eos",
"s0_period",
"s1_period",
)
BASE_SEEDS = (
2101325316,
2511573438,
1677220094,
2412346607,
)
COMPARISONS = (
("system_eos", "s0_eos", "s1_eos"),
("system_period", "s0_period", "s1_period"),
("period_at_s0", "s0_eos", "s0_period"),
("period_at_s1", "s1_eos", "s1_period"),
)
def install_protocol() -> None:
special = sampling.special
factors = {
condition: special.FACTORS[condition]
for condition in CONDITIONS
}
special.BOUNDARY_LEVELS = ("eos", "period")
special.CONDITIONS = CONDITIONS
special.FACTORS = factors
special.SYSTEM_CELLS = {
"eos": ("s0_eos", "s1_eos"),
"period": ("s0_period", "s1_period"),
}
special.SYSTEM_EDGE_CONTRASTS = {
"period_minus_eos": ("eos", "period"),
}
special.COMPARISONS = COMPARISONS
special.ALIGNMENT_COMPARISONS = COMPARISONS
sampling.PROTOCOL_ID = PROTOCOL_ID
sampling.PREREGISTERED_BASE_SEEDS = BASE_SEEDS
sampling.EXPECTED_CONDITIONS = CONDITIONS
if __name__ == "__main__":
install_protocol()
sampling.main()