Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/exo/worker/engines/mlx/generator/generate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import contextlib
import functools
import math
import os
import time
import uuid
from typing import Callable, Generator, cast, get_args
Expand Down Expand Up @@ -331,7 +332,7 @@ def combined_progress_callback(processed: int, total: int) -> None:

is_pipeline = _has_pipeline_communication_layer(model)

prefill_step_size = 4096
prefill_step_size = int(os.getenv("EXO_PREFILL_STEP_SIZE", "4096"))

try:
if is_pipeline and num_tokens >= prefill_step_size:
Expand Down