Skip to content

Commit b186360

Browse files
disable compilation for Python 3.14+
1 parent 2a0e866 commit b186360

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pina/trainer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ def __init__(
107107
if compile is None or sys.platform == "win32":
108108
compile = False
109109

110+
# If python version >= 3.14, disable torch.compile
111+
if sys.version_info > (3, 13):
112+
compile = False
113+
110114
repeat = repeat if repeat is not None else False
111115

112116
automatic_batching = (

0 commit comments

Comments
 (0)