Skip to main content
torch.jstorch.jstorch.js
Getting StartedPlaygroundContact
Login
torch.jstorch.jstorch.js
Documentation
IntroductionType SafetyTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformance
Introduction
torch.js· 2026
LegalTerms of UsePrivacy Policy
  1. docs
  2. Dawn
  3. Introduction

Dawn

The @torchjsorg/dawn package provides an alternative WebGPU backend for Node.js environments based on Google's Dawn project (the same engine used in Chrome).

Google Dawn Logo

Why choose Dawn?

  • Chrome Parity: If your model must behave exactly like it does in the browser, Dawn offers the highest compatibility.
  • Robustness: Benefit from the massive engineering effort put into the Chrome browser's WebGPU implementation.

Installation

npm install @torchjsorg/dawn;

Usage

import { dawn } from '@torchjsorg/dawn';
import torch from '@torchjsorg/torch.js';

// Register Dawn as the global WebGPU provider
torch.webgpu.setProvider(dawn);
Next
AdapterHandle