PAIR-code / PAIR-code/tiny-transformers

Support running scripts with Nodejs or Deno, including webgpu support

Open
#62 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
24
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Lets make it possible to test WebGPU accelerated code via scripts, e.g. when running: https://github.com/PAIR-code/tiny-transformers/blob/main/animated-transformer/src/lib/seqtasks/tiny_worlds_train_self_att.script.ts

This may help us debug memory leaks too.

Breadcrumbs:

General TFJS platform guide: https://www.tensorflow.org/js/guide/platform_environment

WebGPU support for tfjs:

TFJS Node support (references GPU support too, but for linux and windows, not yet mac)

Key issues for Deno (looks resolved... uses tfjs-backend-webgpu and seems to use Chrome GPU backend support):

Possible alternative paths... webgpu for node and then make tfjs-node-gpu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with animated-transformer/src/lib/seqtasks/tiny_worlds_train_self.script.ts and the linked TensorFlow.js platform guide. Compare the documented Node.js and Deno paths, including the referenced WebGPU backend and runtime issues. Done means the script can be run for WebGPU-accelerated testing in the supported runtime(s), with memory-leak debugging possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, nodejs, typescript
Domain
machine-learning, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.