IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

is_prefill_row

def is_prefill_row(row_len: Int, num_draft_tokens: Int) -> Bool

Whether a row carries real tokens beyond its first.

Args:

  • ​row_len (Int): The row's token count.
  • ​num_draft_tokens (Int): The step's draft-token count per row.

Returns:

Bool: True when the row is a prompt chunk with placeholder drafts.

Was this page helpful?