qmetrics.net

TensorFlow.js

Hardware-accelerated JavaScript machine learning training and deployment library

TensorFlow.js screenshot

TensorFlow.js is an open-source JavaScript library for training and deploying machine learning models in the browser and on Node.js. It provides layered APIs, model converters, and several compute backends.

Overview

TensorFlow.js is an open-source, hardware-accelerated JavaScript library for training and deploying machine learning models. Developers can run machine learning directly in the browser or under the Node.js runtime using the same APIs, and the project is part of the broader TensorFlow ecosystem aimed at JavaScript and web development.

The library ships several APIs for different levels of abstraction. TensorFlow.js Core offers a flexible low-level API for neural networks and numerical computation. TensorFlow.js Layers provides a high-level API with functionality similar to Keras. TensorFlow.js Data loads and prepares data in a way analogous to tf.data. The Converter imports TensorFlow SavedModels into TensorFlow.js, while TensorFlow.js Vis adds in-browser visualization for models. TensorFlow.js AutoML loads and runs models produced by AutoML Edge.

Compute backends include a pure JavaScript CPU backend for the browser and Node.js, plus browser backends for WebGL, WebAssembly, and WebGPU. On Node.js, native TensorFlow runs through a C++ adapter. A React Native integration uses an expo-gl adapter. Individual packages can be imported separately when bundle size matters.

You can install TensorFlow.js from NPM with a bundler or load it via script tags in HTML. Pre-trained models are available for common tasks, and existing TensorFlow, Keras, and SavedModel checkpoints can be converted for use in JavaScript. Tutorials, examples, and demos illustrate end-to-end workflows such as transfer learning with your own data or running converted Python models in the browser.

Key features

  • Low-level Core API for neural networks
  • High-level Layers API similar to Keras
  • Data loading and preparation API
  • SavedModel and Keras model conversion
  • In-browser model visualization
  • WebGL, WASM, and WebGPU browser backends
  • Node.js execution via TensorFlow C++ adapter
  • AutoML Edge model loading APIs

Use cases

  • Training machine learning models in JavaScript
  • Running inference in the browser
  • Deploying models on Node.js
  • Converting existing TensorFlow or Keras models
  • Retraining models with client-side data

Tags

Similar software

PyTorch

Python tensor and deep learning library with GPU acceleration

PyTorch is a Python package for GPU-backed tensor math and tape-based automatic differentiation. It includes flexible neural network building blocks for research and production workflows.

  • CPU and GPU tensor operations
  • Tape-based automatic differentiation
  • torch.nn neural network modules
PythonLinux, macOS, Windows, DockerDetails →
★ 106k⟳ todayBSD-2-Clause

scikit-learn

Python toolkit for classical machine learning

scikit-learn provides algorithms and utilities for classification, regression, clustering, and model selection in Python. It builds on NumPy and SciPy.

  • Classification and regression estimators
  • Clustering and dimensionality reduction
  • Model selection and cross-validation
PythonDetails →
★ 68.5k⟳ yesterdayBSD-3-Clause

whisper.cpp

Portable C/C++ inference for Whisper speech recognition

Whisper.cpp runs OpenAI Whisper ASR with a dependency-light C/C++ core and CLI tools. It targets CPUs and many GPU and NPU accelerators across common operating systems.

  • Plain C/C++ Whisper implementation
  • Integer quantization for smaller models
  • Metal, CUDA, Vulkan, and OpenVINO backends
C++DockerDetails →
★ 55.9k⟳ 4 days agoMIT

AirLLM

Layer-streaming inference for huge models on small GPUs

AirLLM loads one transformer layer at a time so very large language models can infer or fine-tune on GPUs with only a few gigabytes of VRAM.

  • Single-layer GPU residency
  • AutoModel for many HF architectures
  • Optional 4-bit or 8-bit compression
Jupyter NotebookDetails →
★ 43.9k⟳ yesterdayApache-2.0

DeepSpeed

PyTorch distributed training and inference optimizations

DeepSpeed is a Python library that speeds large-model training and inference with ZeRO memory optimizations, parallelism modes, and MoE support. Install via pip with JIT-built CUDA ops.

  • ZeRO and ZeRO-Infinity memory sharding
  • 3D and tensor parallelism options
  • Mixture-of-experts training support
PythonWindowsDetails →
★ 43.4k⟳ yesterdayApache-2.0

Faiss

Library for dense vector similarity search and clustering

Indexes and searches large sets of embedding vectors with CPU or GPU backends. Python and C++ APIs support exact and approximate nearest-neighbor methods.

  • Dense vector indexes
  • L2 and inner product search
  • Approximate and exact methods
C++Details →
★ 42k⟳ yesterdayMIT
Open Source Alternative to:Pinecone