From 29007c7b976de556723cbc4fbf29661f183dede6 Mon Sep 17 00:00:00 2001 From: ViperEkura <3081035982@qq.com> Date: Thu, 7 May 2026 22:25:25 +0800 Subject: [PATCH] chore: remove T0-T3 demo tokens from position-grouped decode section --- continuous_batching.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/continuous_batching.py b/continuous_batching.py index 05052da..9d2d447 100644 --- a/continuous_batching.py +++ b/continuous_batching.py @@ -264,20 +264,6 @@ class ContinuousBatching(Scene): # 7. Position-Grouped Decode highlight # ═══════════════════════════════════════════════════ # show multiple tokens grouped at Decode - d_pos = run_lane.get_center() # RUNNING = Decode state - d_tokens = [ - mk_tok("T" + str(i), BATCH_COLORS[i], "RUNNING", 5 + i * 2) for i in range(4) - ] - positions = [ - d_pos + RIGHT * 1.2 + UP * 0.45, - d_pos + RIGHT * 1.2, - d_pos + RIGHT * 2.5 + UP * 0.45, - d_pos + RIGHT * 2.5, - ] - for i in range(4): - d_tokens[i].move_to(positions[i]) - self.play(FadeIn(d_tokens[i], scale=0.6), run_time=0.2) - ring = SurroundingRectangle(run_lane, color=YELLOW, buff=0.12, stroke_width=3) ring_txt = Text( "Position-Grouped Batching\nSame decode position → single matmul", @@ -285,8 +271,7 @@ class ContinuousBatching(Scene): ).next_to(run_lane, DOWN, buff=0.5) self.play(Create(ring), Write(ring_txt)) self.wait(2.0) - self.play(FadeOut(ring), FadeOut(ring_txt), - *[FadeOut(t) for t in d_tokens]) + self.play(FadeOut(ring), FadeOut(ring_txt)) # ═══════════════════════════════════════════════════ # 8. O(1) Bitmask Slot Allocation