# transformers 5.24.1 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input

        Prefetch the next offloaded layer on its device, starting at `layer_idx` and circling back to the beginning
        if needed. Linear-attention layers are never offloaded and are skipped, as are sliding layers when
        `only_non_sliding`. Note that we use a non-default stream for this, to avoid blocking.
        
=== parse google
short_description: |
  Prefetch the next offloaded layer on its device, starting at `layer_idx` and circling back to the beginning
  if needed. Linear-attention layers are never offloaded and are skipped, as are sliding layers when
  `only_non_sliding`. Note that we use a non-default stream for this, to avoid blocking.
blank_after_short_description: False
blank_after_long_description: False
style: google
=== detect
rest
=== compose google
Prefetch the next offloaded layer on its device, starting at `layer_idx` and circling back to the beginning
if needed. Linear-attention layers are never offloaded and are skipped, as are sliding layers when
`only_non_sliding`. Note that we use a non-default stream for this, to avoid blocking.
