Make sure you are on a system with WebGPU enabled. In Safari, first make sure the Developer Menu is visible (Preferences > Advanced), then Develop > Experimental Features > WebGPU.
In addition, you must be using Safari Technology Preview 92 or above. You can get the latest STP here.