Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 751bcee

Browse files
committed
Flip the imports back for ET
1 parent 4f3c593 commit 751bcee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchchat/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,10 @@ def apply_rotary_emb(x: Tensor, freqs_cis: Tensor) -> Tensor:
770770
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
771771

772772
try:
773-
from executorch.examples.models.llama2.custom_ops import sdpa_with_kv_cache # no-qa
773+
from executorch.extension.pybindings import portable_lib as exec_lib
774774

775775
# ET changed the way it's loading the custom ops so it's not included in portable_lib but has to be loaded separately.
776-
from executorch.extension.pybindings import portable_lib as exec_lib
776+
from executorch.examples.models.llama2.custom_ops import sdpa_with_kv_cache # no-qa
777777

778778
class PTEModel(nn.Module):
779779
def __init__(self, config, path) -> None:

0 commit comments

Comments
 (0)