DeepSeek-R1 · 推論制御
ゼロショット <think> 誘導と不変条件の明示
DeepSeek-R1 では冗長な Few-Shot 例を省き、システム不変条件・境界条件・検証チェックリストを明示することで、<think> での自己検証精度が最大化されます。
[DeepSeek-R1 Reasoning Contract] Goal: Fix the race condition in async connection pool checkout. Invariants: 1. Never hold the pool mutex across an await boundary. 2. Preserve FIFO fairness for waiting coroutines on timeout cancellation. 3. In <think>, trace 2 concurrent cancellation interleavings first. Output: Minimal unified diff + 1 deterministic reproduction pytest.