class_docstr: Accelerator for Metal Apple Silicon GPU devices.
  
  .. warning::  Use of this accelerator beyond import and instantiation is experimental.
class_docstr_tok: ["Accelerator","for","Metal","Apple","Silicon","GPU","devices",".","..","warning",":",":","Use","of","this","accelerator","beyond","import","and","instantiation","is","experimental","."]
docstr: MPS is only available on a machine with the ARM-based Apple Silicon processors.
docstr_tok: ["MPS","is","only","available","on","a","machine","with","the","ARM-based","Apple","Silicon","processors","."]
code: def is_available() -> bool:
      """MPS is only available on a machine with the ARM-based Apple Silicon processors."""
      return (
          torch.backends.mps.is_available()
          and platform.processor() in ("arm", "arm64")
      )
  
file_path: pytorch-lightning/src/lightning/fabric/accelerators/mps.py
imports: import platform
  from functools import lru_cache
  from typing import List, Optional, Union
  import torch
  from typing_extensions import override
  from lightning.fabric.accelerators.accelerator import Accelerator
  from lightning.fabric.accelerators.registry import _AcceleratorRegistry
label_desc: Use image node_id 6 for calling the MPSAccelerator obj's underlying member method code with example usage: obj.is_available() and returns: unknown