Skip to content

all kernels segfaults on load/import on Python 3.14-nogil #312

Closed

Description

@Qubitium

Env:

Intel Xeon Granite Rapids
Ubuntu 24.04

Python 3.14-nogil (freethreading enabled)

pip show torch transformers kernels
Name: torch
Version: 2.10.0+cpu

Name: transformers
Version: 5.3.0

Name: kernels
Version: 0.12.2

@danieldk @MekkCyber

I have no idea what's go. Was the kernel incorrectly compiled (possiblity 1), thread race in the importer (strange but possibility 2).

Run below:

OMP_NUM_THREADS=32 MKL_NUM_THREADS=32 OPENBLAS_NUM_THREADS=32 NUMEXPR_NUM_THREADS=32 python scripts/repro_hf_kernel_import_crash.py --mode both

Reproducing Script:

#!/usr/bin/env python3
"""
Standalone reproducer for HF kernels import crashes.

This script intentionally does not import gptqmodel.
It only uses torch + kernels package APIs.
"""

from __future__ import annotations

import argparse
import faulthandler
import os
import platform
import sys
import sysconfig
import traceback
from pathlib import Path


def _print_runtime_env() -> None:
    print("=== Runtime ===", flush=True)
    print(f"python: {sys.version}", flush=True)
    print(f"platform: {platform.platform()}", flush=True)
    print(f"machine: {platform.machine()}", flush=True)
    print(f"Py_GIL_DISABLED: {sysconfig.get_config_var('Py_GIL_DISABLED')}", flush=True)
    if hasattr(sys, "_is_gil_enabled"):
        print(f"sys._is_gil_enabled(): {sys._is_gil_enabled()}", flush=True)

    for key in (
        "PYTHON_GIL",
        "OMP_NUM_THREADS",
        "MKL_NUM_THREADS",
        "OPENBLAS_NUM_THREADS",
        "NUMEXPR_NUM_THREADS",
    ):
        print(f"{key}={os.getenv(key)}", flush=True)

    try:
        import torch

        print(f"torch: {torch.__version__}", flush=True)
        print(f"torch.compiled_with_cxx11_abi(): {torch.compiled_with_cxx11_abi()}", flush=True)
    except Exception as exc:
        print(f"torch import failed: {exc!r}", flush=True)

    try:
        import kernels

        print(f"kernels package: {kernels.__file__}", flush=True)
    except Exception as exc:
        print(f"kernels import failed: {exc!r}", flush=True)


def _select_cpu_variant(variants: list[Path]) -> Path:
    cpu_variants = [path for path in variants if "-cpu-" in path.name]
    if not cpu_variants:
        raise RuntimeError("No CPU kernel variants found in build directory.")

    machine = platform.machine().lower()
    matched = [path for path in cpu_variants if machine in path.name.lower()]
    if matched:
        return sorted(matched, key=lambda p: p.name)[0]
    return sorted(cpu_variants, key=lambda p: p.name)[0]


def _repro_get_kernel(repo_id: str) -> None:
    print("\n=== Repro Path: kernels.get_kernel ===", flush=True)
    from kernels import get_kernel

    print(f"calling get_kernel({repo_id!r})", flush=True)
    kernel = get_kernel(repo_id)
    print(f"kernel object: {kernel!r}", flush=True)
    print(f"gemm_int4_forward: {getattr(kernel, 'gemm_int4_forward')!r}", flush=True)


def _repro_import_variant(repo_id: str, revision: str) -> None:
    print("\n=== Repro Path: kernels.utils._import_from_path ===", flush=True)
    from kernels.utils import _import_from_path, install_kernel_all_variants, package_name_from_repo_id

    print(f"installing kernel variants for repo={repo_id!r}, revision={revision!r}", flush=True)
    build_dir = Path(install_kernel_all_variants(repo_id, revision=revision))
    print(f"build_dir: {build_dir}", flush=True)
    variants = sorted([path for path in build_dir.iterdir() if path.is_dir()], key=lambda p: p.name)
    for variant in variants:
        print(f"variant: {variant.name}", flush=True)

    selected = _select_cpu_variant(variants)
    package_name = package_name_from_repo_id(repo_id)
    print(f"selected cpu variant: {selected.name}", flush=True)
    print(f"package_name: {package_name}", flush=True)
    print("importing extension module via _import_from_path(...)", flush=True)
    module = _import_from_path(package_name, selected)
    print(f"module: {module!r}", flush=True)
    print(f"gemm_int4_forward: {getattr(module, 'gemm_int4_forward')!r}", flush=True)


def main() -> int:
    parser = argparse.ArgumentParser(description="Standalone HF kernel import crash reproducer.")
    parser.add_argument("--repo-id", default="kernels-community/quantization-gptq")
    parser.add_argument("--revision", default="main")
    parser.add_argument(
        "--mode",
        choices=("both", "get-kernel", "import-variant"),
        default="both",
        help="Which import path to run.",
    )
    args = parser.parse_args()

    faulthandler.enable(all_threads=True)
    _print_runtime_env()

    try:
        if args.mode in ("both", "get-kernel"):
            _repro_get_kernel(args.repo_id)
        if args.mode in ("both", "import-variant"):
            _repro_import_variant(args.repo_id, args.revision)
    except Exception:
        print("\nException caught (non-segfault path):", flush=True)
        traceback.print_exc()
        return 1

    print("\nCompleted without Python exception.", flush=True)
    return 0


if __name__ == "__main__":
    raise SystemExit(main())

Segfault Output

(vm314t) root@gpu:~/gptqmodel#  OMP_NUM_THREADS=32 MKL_NUM_THREADS=32 OPENBLAS_NUM_THREADS=32 NUMEXPR_NUM_THREADS=32 python scripts/repro_hf_kernel_import_crash.py --mode both                                                            
=== Runtime ===   20   0   24672   5320   3356 S   0.0   0.0   0:00.08 systemd-udevd                                                                                                                                                          
python: 3.14.3 free-threading build (main, Feb  4 2026, 09:28:29) [GCC 13.3.0]
platform: Linux-6.18.6-x86_64-with-glibc2.39
machine: x86_64
Py_GIL_DISABLED: 1
sys._is_gil_enabled(): False
PYTHON_GIL=None
OMP_NUM_THREADS=32
MKL_NUM_THREADS=32
OPENBLAS_NUM_THREADS=32
NUMEXPR_NUM_THREADS=32
torch: 2.10.0+cpu
torch.compiled_with_cxx11_abi(): True
kernels package: /root/vm314t/lib/python3.14t/site-packages/kernels/__init__.py

=== Repro Path: kernels.get_kernel ===
calling get_kernel('kernels-community/quantization-gptq')
Fetching 6 files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00, 3978.79it/s]
Download complete: : 0.00B [00:00, ?B/s]              Fatal Python error: Segmentation fault                                                                                                                            | 0/6 [00:00<?, ?it/s]

Thread 0x00007839257646c0 [Thread-1] (most recent call first):
  File "/usr/lib/python3.14/threading.py", line 373 in wait
  File "/usr/lib/python3.14/threading.py", line 670 in wait
  File "/root/vm314t/lib/python3.14t/site-packages/tqdm/_monitor.py", line 60 in run
  File "/usr/lib/python3.14/threading.py", line 1082 in _bootstrap_inner
  File "/usr/lib/python3.14/threading.py", line 1044 in _bootstrap

Current thread 0x000078398f2cd080 [python] (most recent call first):
  File "<frozen importlib._bootstrap>", line 491 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1053 in create_module
  File "<frozen importlib._bootstrap>", line 816 in module_from_spec
  File "<frozen importlib._bootstrap>", line 924 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1342 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1371 in _find_and_load
  File "<frozen importlib._bootstrap>", line 491 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1426 in _handle_fromlist
  File "/root/.cache/huggingface/hub/models--kernels-community--quantization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build/torch210-cxx11-cpu-x86_64-linux/_ops.py", line 2 in <module>
  File "<frozen importlib._bootstrap>", line 491 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 759 in exec_module
  File "<frozen importlib._bootstrap>", line 938 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1342 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1371 in _find_and_load
  File "/root/.cache/huggingface/hub/models--kernels-community--quantization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build/torch210-cxx11-cpu-x86_64-linux/custom_ops.py", line 2 in <module>
  File "<frozen importlib._bootstrap>", line 491 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 759 in exec_module
  File "<frozen importlib._bootstrap>", line 938 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1342 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1371 in _find_and_load
  File "/root/.cache/huggingface/hub/models--kernels-community--quantization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build/torch210-cxx11-cpu-x86_64-linux/__init__.py", line 1 in <module>
  File "<frozen importlib._bootstrap>", line 491 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 759 in exec_module
  File "/root/vm314t/lib/python3.14t/site-packages/kernels/utils.py", line 158 in _import_from_path
  File "/root/vm314t/lib/python3.14t/site-packages/kernels/utils.py", line 315 in get_kernel
  File "/root/gptqmodel/scripts/repro_hf_kernel_import_crash.py", line 75 in _repro_get_kernel
  File "/root/gptqmodel/scripts/repro_hf_kernel_import_crash.py", line 118 in main
  File "/root/gptqmodel/scripts/repro_hf_kernel_import_crash.py", line 131 in <module>

Current thread's C stack trace (most recent call first):
  Binary file "python", at _Py_DumpStack+0x4a [0x67808a]
  Binary file "python" [0x71377a]
  Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x45330 [0x78398f313330]
  Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x19b136 [0x78398f469136]
  Binary file "python" [0x518169]
  Binary file "python" [0x62e9d3]
  Binary file "python" [0x7d56ff]
  Binary file "python" [0x7d6032]
  Binary file "python", at _PyEval_EvalFrameDefault+0x8ed1 [0x4303e1]
  Binary file "python" [0x5efa6e]
  Binary file "python" [0x49e9ae]
  Binary file "python", at PyObject_CallMethodObjArgs+0xec [0x49f4ec]
  Binary file "python", at PyImport_ImportModuleLevelObject+0x791 [0x635621]
  Binary file "python" [0x5e3ba4]
  Binary file "python", at _PyEval_EvalFrameDefault+0x8ed1 [0x4303e1]
  Binary file "python" [0x5efa6e]
  Binary file "python" [0x49e9ae]
  Binary file "python", at PyObject_CallMethodObjArgs+0xec [0x49f4ec]
  Binary file "python", at PyImport_ImportModuleLevelObject+0x7ea [0x63567a]
  Binary file "python", at _PyEval_ImportName+0xcf [0x5f141f]
  Binary file "python", at _PyEval_EvalFrameDefault+0xde0 [0x4282f0]
  Binary file "python" [0x7c2f95]
  Binary file "python", at PyEval_EvalCode+0xab [0x5ec80b]
  Binary file "python" [0x5e55ac]
  Binary file "python", at _PyEval_EvalFrameDefault+0x8ed1 [0x4303e1]
  Binary file "python" [0x5efa6e]
  Binary file "python" [0x49e9ae]
  Binary file "python", at PyObject_CallMethodObjArgs+0xec [0x49f4ec]
  Binary file "python", at PyImport_ImportModuleLevelObject+0x791 [0x635621]
  Binary file "python", at _PyEval_ImportName+0xcf [0x5f141f]
  Binary file "python", at _PyEval_EvalFrameDefault+0xde0 [0x4282f0]
  Binary file "python" [0x7c2f95]
  <truncated rest of calls>

Extension modules: numpy._core._multiarray_umath, numpy.linalg._umath_linalg, torch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards, torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, yaml._yaml (total: 14)
Segmentation fault

Activity

  1. jiqing-feng commented on Mar 5, 2026

    @jiqing-feng
    Contributor

    Output on my side:

    (opt) root@a4bf018d7be8:/home/jiqing/other/GPTQModel/tests/kernels# OMP_NUM_THREADS=32 MKL_NUM_THREADS=32 OPENBLAS_NUM_THREADS=32 NUM
    EXPR_NUM_THREADS=32 python repro_hf_kernel_import_crash.py --mode both
    === Runtime ===
    python: 3.12.12 (main, Jan 14 2026, 19:35:58) [Clang 21.1.4 ]
    platform: Linux-6.11.0-29-generic-x86_64-with-glibc2.39
    machine: x86_64
    Py_GIL_DISABLED: None                                                                                                                PYTHON_GIL=None
    OMP_NUM_THREADS=32
    MKL_NUM_THREADS=32
    OPENBLAS_NUM_THREADS=32
    NUMEXPR_NUM_THREADS=32
    torch: 2.10.0+cpu
    torch.compiled_with_cxx11_abi(): True
    kernels package: /opt/.venv/lib/python3.12/site-packages/kernels/__init__.py
    
    === Repro Path: kernels.get_kernel ===
    calling get_kernel('kernels-community/quantization-gptq')
    Fetching 6 files: 100%|██████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00, 3851.52it/s]
    Download complete: : 0.00B [00:00, ?B/s]              kernel object: <module 'quantization_gptq_7e971b96598ba915' from '/home/jiqing/
    .cache/huggingface/hub/models--kernels-community--quantization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build/torch210
    -cxx11-cpu-x86_64-linux/__init__.py'>
    gemm_int4_forward: <function gemm_int4_forward at 0x7051835b8e00>
    
    === Repro Path: kernels.utils._import_from_path ===
    installing kernel variants for repo='kernels-community/quantization-gptq', revision='main'
    Download complete: : 0.00B [00:00, ?B/s]
    Fetching 18 files: 100%|███████████████████████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 4019.03it/s]
                                                          build_dir: /home/jiqing/.cache/huggingface/hub/models--kernels-community--quant
    ization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build
    variant: torch210-cxx11-cpu-x86_64-linux
    variant: torch28-cxx11-cpu-x86_64-linux
    variant: torch29-cxx11-cpu-x86_64-linux
    selected cpu variant: torch210-cxx11-cpu-x86_64-linux
    package_name: quantization_gptq
    importing extension module via _import_from_path(...)
    module: <module 'quantization_gptq_7e971b96598ba915' from '/home/jiqing/.cache/huggingface/hub/models--kernels-community--quantizatio
    n-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build/torch210-cxx11-cpu-x86_64-linux/__init__.py'>
    gemm_int4_forward: <function gemm_int4_forward at 0x7051835b8e00>
    
    Completed without Python exception.
    Download complete: : 0.00B [00:00, ?B/s]
    

    my env:
    kernels 0.12.2
    transformers 5.3.0.dev0
    torch 2.10.0+cpu

    We can sync it on Teams

  2. Qubitium commented on Mar 6, 2026

    @Qubitium
    Author

    Worked under Python 3.12 so this is something unique to Python 3.14-nogil.

    (vm312) root@gpu-xl:~/gptqmodel#  OMP_NUM_THREADS=32 MKL_NUM_THREADS=32 OPENBLAS_NUM_THREADS=32 NUMEXPR_NUM_THREADS=32 python scripts/repro_hf_kernel_import_crash.py --mode both
    === Runtime ===
    python: 3.12.3 (main, Jan 22 2026, 20:57:42) [GCC 13.3.0]
    platform: Linux-6.18.6-x86_64-with-glibc2.39
    machine: x86_64
    Py_GIL_DISABLED: None
    PYTHON_GIL=None
    OMP_NUM_THREADS=32
    MKL_NUM_THREADS=32
    OPENBLAS_NUM_THREADS=32
    NUMEXPR_NUM_THREADS=32
    torch: 2.10.0+cpu
    torch.compiled_with_cxx11_abi(): True
    kernels package: /root/vm312/lib/python3.12/site-packages/kernels/__init__.py
    
    === Repro Path: kernels.get_kernel ===
    calling get_kernel('kernels-community/quantization-gptq')
    Fetching 6 files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00, 77433.30it/s]
    Download complete: : 0.00B [00:00, ?B/s]              kernel object: <module 'quantization_gptq_169511a2028ebabf' from '/root/.cache/huggingface/hub/models--kernels-community--quantization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build/torch210-cxx11-cpu-x86_64-linux/__init__.py'>
    gemm_int4_forward: <function gemm_int4_forward at 0x7d229f2c2480>
    
    === Repro Path: kernels.utils._import_from_path ===
    installing kernel variants for repo='kernels-community/quantization-gptq', revision='main'
    Download complete: : 0.00B [00:00, ?B/s]
    Fetching 18 files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 18/18 [00:04<00:00,  4.29it/s]
    Downloading (incomplete total...): 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.05M/2.05M [00:04<00:00, 752kB/s]
    build_dir: /root/.cache/huggingface/hub/models--kernels-community--quantization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build█████████████████████████████████████████████████████████████| 2.05M/2.05M [00:04<00:00, 752kB/s]
    variant: torch210-cxx11-cpu-x86_64-linux
    variant: torch28-cxx11-cpu-x86_64-linux
    variant: torch29-cxx11-cpu-x86_64-linux
    selected cpu variant: torch210-cxx11-cpu-x86_64-linux
    package_name: quantization_gptq
    importing extension module via _import_from_path(...)
    module: <module 'quantization_gptq_169511a2028ebabf' from '/root/.cache/huggingface/hub/models--kernels-community--quantization-gptq/snapshots/cf6f3f1052ececfc65659134b4ac534eae4dea15/build/torch210-cxx11-cpu-x86_64-linux/__init__.py'>
    gemm_int4_forward: <function gemm_int4_forward at 0x7d229f2c2480>
    
    Completed without Python exception.
    Download complete: 100%|██████████████████████████
    
  3. danieldk commented on Mar 13, 2026

    @danieldk
    Member

    @jiqing-feng any chance you could test on 3.14-nogil? I don't have the hardware. I'll try if this issue occurs on CUDA kernels on 3.14-nogil to exclude a loading issue.

  4. jiqing-feng commented on Mar 16, 2026

    @jiqing-feng
    Contributor

    Sure, I will sync it offline with @Qubitium

  5. jiqing-feng commented on Mar 17, 2026

    @jiqing-feng
    Contributor

    Summary

    Pre-built kernel binaries crash with a segfault when loaded under CPython 3.14 free-threaded build (python3.14t, Py_GIL_DISABLED=1). The .so files on the Hub are compiled against the standard CPython ABI and are incompatible with the free-threaded ABI (cp314t).

    Environment

    • Python: 3.14.3 free-threading build (Py_GIL_DISABLED: 1, sys._is_gil_enabled(): False)
    • torch: 2.10.0+cpu (compiled_with_cxx11_abi: True)
    • kernels: latest from PyPI
    • OS: Ubuntu 24.04 (x86_64)
    • Kernel repo: kernels-community/quantization-gptq

    Steps to Reproduce

    from kernels import get_kernel
    kernel = get_kernel("kernels-community/quantization-gptq")

    Error

    Fatal Python error: Segmentation fault
    
    Stack (most recent call first):
      File "<frozen importlib._bootstrap>", line 491 in _call_with_frames_removed
      File "<frozen importlib._bootstrap_external>", line 1053 in create_module
      ...
      File ".../build/torch210-cxx11-cpu-x86_64-linux/_ops.py", line 2 in <module>
    

    The segfault occurs when importing the pre-built .so extension module. The downloaded variant torch210-cxx11-cpu-x86_64-linux was compiled for standard CPython, which is ABI-incompatible with the free-threaded interpreter.

    Expected Behavior

    The build infrastructure should produce and publish free-threaded variants (e.g. torch210-cxx11-cpu-x86_64-linux-freethreaded or with cp314t ABI tag), so get_kernel() can select the correct binary when running under python3.14t.

    Workaround

    Currently the only workaround is to use standard CPython 3.14 (non-free-threaded).

    cc @Qubitium @danieldk

  6. Qubitium commented on Mar 24, 2026

    @Qubitium
    Author

    @danieldk Looks like the ci needs to build wheels with the proper abi tag for pypi release?

  7. Qubitium commented on Mar 25, 2026

    @Qubitium
    Author

    Another user ran into the same issue. He is on 3.13t (nogil) build. So this is for all nogil builds.

    ModelCloud/GPTQModel#2608 (comment)

  8. Qubitium commented on Apr 4, 2026

    @Qubitium
    Author

    @danieldk Any tracking on this? Someone needs to fix the ci/wheels? End-users has no control of how a repo upload it's wheels. If you point me to the code that push your wheels to pypi, I can help fix it?

  9. Qubitium commented on Apr 9, 2026

    @Qubitium
    Author

    @danieldk @ArthurZucker Please get ci and pypi release up to speed with nogil wheels. This bug is no longer isolated to gptq but also models that rely on lazy_load_kernel("causal-conv1d") or lazy_load_kernel("mamba-ssm").

    The following models are failing to forward on nogil python:

      - granitemoehybrid
      - jamba
      - nemotron_h
      - zamba2
  10. changed the title [-]gptq kernel segfaults on load/import on Python 3.14-nogil[/-] [+]all kernels segfaults on load/import on Python 3.14-nogil[/+] on Apr 9, 2026
  11. danieldk commented on Apr 21, 2026

    @danieldk
    Member

    I don't think the kernels wheel itself is the issue, at least in 0.13 it is pure-Python. It's most likely each kernel's dylib as @jiqing-feng mentions. The weird thing is that the upstream documentation states:

    The GIL may also automatically be enabled when importing a C-API extension module that is not explicitly marked as supporting free threading. A warning will be printed in this case.

    https://docs.python.org/3/howto/free-threading-python.html#the-global-interpreter-lock-in-free-threaded-python

    Since we don not explicitly mark the extension as supporting free threading, this should kick in, but for some reason it doesn't.

    We cannot just build kernels with free threading, because we need them to be ABI-stable. The new abi3t ABI was devised for this, but the PEP has only been accepted on Mach 30 and the ecosystem around it still seems to settle.

    At any rate, I'll look into this now. First we need to check why the interpreter does not act in accordance to the docs. If we cannot fix that, we have to disable arch-variants for interpreters with free-threading until we have support for abi3t build variants (which depends the various upstreams supporting it properly).

  12. danieldk commented on Apr 21, 2026

    @danieldk
    Member

    The free-threaded build does not currently support the Limited C API or the stable ABI.

    https://docs.python.org/3.13/howto/free-threading-extensions.html#limited-c-api-and-stable-abi

    So we have to opt-out arch build variants in nogil interpreters until abi3t is ready to use.

  13. Qubitium commented on Apr 21, 2026

    @Qubitium
    Author

    We cannot just build kernels with free threading, because we need them to be ABI-stable. The new abi3t ABI was devised for this, but the PEP has only been accepted on Mach 30 and the ecosystem around it still seems to settle.

    @danieldk Thank you for working on this. Yes, the burden is squarely on Python group not release an official abi for t variants until March 30th, which in itself is unbelievable. It is not like the t variants sprung up nowhere via vibe coding.

  14. rgommers commented on May 12, 2026

    @rgommers

    You can ignore Python 3.13t by now (it was experimental, only >=3.14t is stable, and other projects are all removing cp313t wheels), so it's only 3.14t at this point. 3.15t will have Stable ABI support, but that will still be a separate build given that abi3 and abi3t are not the same. So at this point, supporting cp314t wheels for free-threaded 3.14 interpreters would be quite useful.

  15. danieldk commented on Jun 6, 2026

    @danieldk
    Member

    Thanks for the information @rgommers! Since we do not have t variants of kernels, we have added a code path that does not load arch kernels on 3.13t/3.14t. We would like to support free-threaded, but only once we can use abi3t, so starting with 3.15t.

    I will close this issue now, since the segfault is resolved in the latest kernels releases. We'll pick up free-threaded support with abi3t.

  16. rgommers commented on Jun 6, 2026

    @rgommers

    We would like to support free-threaded, but only once we can use abi3t, so starting with 3.15t.

    That sounds like a very reasonable plan.

    Note that the check to not load kernels under a free-threaded interpreter in gh-494 will still cause failures on 3.15 until you've added abi3t kernels, so you might want to extend that check to all free-threaded interpreters (i.e., just drop the sys.version_info < (3, 15) and)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions