0

e2-f5-tts: ImportError: cannot import name 'DTensor' from 'torch.distributed.tensor' (…/tensor/__init__.py)

@timlorenz2008posted 7/19/2026, 7:57:43 PM·3 replies

App: e2-f5-tts (e2-f5-tts.git)
Repo: https://github.com/pinokiofactory/e2-f5-tts.git
Generated: 2026-07-19T19:57:13.631Z
Pinokio: 8.0.35
Platform: darwin arm64
Node: v22.21.1

Summary

System

{
  "pinokio": {
    "version": "8.0.35",
    "node": "v22.21.1",
    "platform": "darwin",
    "arch": "arm64"
  },
  "hardware": {
    "gpu": "apple",
    "gpu_model": "apple m1",
    "ram_gb": 8,
    "vram_gb": 0
  },
  "os": {
    "platform": "darwin",
    "distro": "macOS",
    "release": "15.7.3",
    "codename": "Sequoia",
    "kernel": "24.6.0",
    "arch": "arm64",
    "build": "24G419",
    "uefi": true
  },
  "system": {
    "manufacturer": "Apple Inc.",
    "model": "MacBookAir10,1",
    "version": "MacBook Air (13-inch, M1, 2020)",
    "virtual": false
  },
  "cpu": {
    "manufacturer": "Apple",
    "brand": "M1",
    "vendor": "Apple",
    "family": "458787763",
    "stepping": "2",
    "speed": 2.4,
    "speedMin": 2.4,
    "speedMax": 2.4,
    "cores": 8,
    "physicalCores": 8,
    "processors": 1,
    "performanceCores": 4,
    "efficiencyCores": 4,
    "virtualization": true,
    "cache": {
      "l1d": 131072,
      "l1i": 65536,
      "l2": 4194304
    }
  },
  "memory": {
    "total": 8589934592,
    "free": 146685952,
    "used": 8443248640,
    "active": 6923386880,
    "available": 1666547712,
    "buffers": 0,
    "cached": 0,
    "slab": 0,
    "buffcache": 1519861760,
    "swaptotal": 5368709120,
    "swapused": 4190508154.88,
    "swapfree": 1178200965.12
  },
  "gpus": [
    {
      "model": "apple m1"
    }
  ],
  "graphics": {
    "controllers": [
      {
        "vendor": "Apple",
        "model": "Apple M1",
        "bus": "Built-In",
        "vramDynamic": true,
        "cores": "7"
      }
    ],
    "displays": [
      {
        "model": "Color LCD",
        "main": true,
        "builtin": true,
        "connection": "Internal",
        "currentResX": 1680,
        "currentResY": 1050,
        "resolutionX": 3360,
        "resolutionY": 2100,
        "currentRefreshRate": 60
      }
    ]
  }
}

Logs

logs/api/start.js/1784491012827

Source: api / start.js
Lines: 42 total, last 42 included

[api shell.run]

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
<<PINOKIO_SHELL>>eval "$(conda shell.bash hook)" ; conda deactivate ; conda deactivate ; conda deactivate ; conda activate base ; source /Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/bin/activate /Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env && f5-tts_infer-gradio
/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/google/api_core/_python_version_support.py:255: FutureWarning: You are using a Python version (3.10.20) which Google will stop supporting in new releases of google.api_core once it reaches its end of life (2026-10-04). Please upgrade to the latest Python version, or at least Python 3.11, to continue receiving updates for google.api_core past that date.
  warnings.warn(message, FutureWarning)
Traceback (most recent call last):
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/bin/f5-tts_infer-gradio", line 4, in <module>
    from f5_tts.infer.infer_gradio import main
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/src/f5_tts/infer/infer_gradio.py", line 38, in <module>
    from f5_tts.infer.utils_infer import (
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/src/f5_tts/infer/utils_infer.py", line 28, in <module>
    from transformers import pipeline
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 2342, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 2576, in _get_module
    raise e
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 2574, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "/Users/timlorenz/pinokio/bin/miniforge/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 27, in <module>
    from ..image_processing_utils import BaseImageProcessor
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/image_processing_utils.py", line 34, in <module>
    from .processing_utils import ImagesKwargs, Unpack
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/processing_utils.py", line 66, in <module>
    from .utils.type_validators import (
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/utils/type_validators.py", line 19, in <module>
    from ..activations import ACT2FN
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/activations.py", line 22, in <module>
    from .integrations.hub_kernels import use_kernel_forward_from_hub
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/integrations/hub_kernels.py", line 24, in <module>
    from ..conversion_mapping import get_checkpoint_conversion_mapping, register_checkpoint_conversion_mapping
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/conversion_mapping.py", line 21, in <module>
    from .core_model_loading import (
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/core_model_loading.py", line 33, in <module>
    from .distributed.sharding_utils import DtensorShardOperation, _dtensor_from_local_like
  File "/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/transformers/distributed/sharding_utils.py", line 28, in <module>
    from torch.distributed.tensor import DTensor
ImportError: cannot import name 'DTensor' from 'torch.distributed.tensor' (/Users/timlorenz/pinokio/api/e2-f5-tts.git/app/env/lib/python3.10/site-packages/torch/distributed/tensor/__init__.py)
Replies (3)
Up to 10 files, 25MB each. Images are optimized; GIFs -> MP4; videos 720p (max 120s).
e2-f5-tts: ImportError: cannot import name 'DTensor' from 'torch.distributed.tensor' (…/tensor/__init__.py) · Pinokio