How to check mps availability?

Hey, the announcement says:

To get started, just install the latest Preview (Nightly) build on your Apple silicon Mac running macOS 12.3 or later with a native version (arm64) of Python.

I followed the instructions and used pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu to install torch on my mac with M1 Pro (macOS 12.4, Python 3.9 arm64). However, the installed pytorch is still 1.11 and does not allow mps as a device.

How may I install the latest version via pip? Thanks in advance!