phi-1 / modeling_phi.py

Commit History

  1. fix(modeling_phi): Fixes cached generation when above maximum context length.

    ecfe56e

  1. Fixes exceeding maximum sequence length when using generate().

    759d148

  1. Uses native torch decorator for disabling autocast.

    5819d04
  2. Adds disable_autocast support for different device types.

    67ecc75
  3. Fixes any potential overflow when calculating attention weights.

    b5c5161

  1. Update to new model interface.

    bbace88