Skip to main content
NVIDIA
Explore
Models
Skills
Blueprints
GPUs
Docs
Help Center
Getting Started
  1. Create and verify your account to unlock full access to NVIDIA NIM APIs.
ResourcesDeveloper ForumsContact Support
FAQs
  • View All Playbooks
    View All Playbooks

    onboarding

    • Connect Two DGX Stations for Distributed Workloads
    • MIG on DGX Station

    data science

    • Topic Modeling
    • Build Knowledge Graphs with txt2kg

    tools

    • Quantize Models to NVFP4 with NVIDIA Model Optimizer

    fine tuning

    • Train a Chat Model with NanoChat
    • NVFP4 Pretraining with Megatron Bridge

    use case

    • Run NemoClaw with a Local LLM
    • DGX Station AI Skills and dgx-assist
    • Secure AI Agents with OpenShell
    • Local Coding Agent
    • Profiler-Driven Kernel Optimization for Fine-Tuning
    • Local Healthcare Agent on DGX Station

    inference

    • Serve LLMs with vLLM
    • Generate Images and Videos with ComfyUI
    • Isaac GR00T N1.6 Fine-Tuning
    • Serve LLMs with SGLang

    Topic Modeling

    45 MIN

    Extract insights from massive text datasets using cuML's GPU-accelerated BERTopic

    • BERTopic
    • Data Science
    • Machine Learning
    • NLP
    • cuML
    View on GitHub
    OverviewOverviewInstructionsInstructions

    Basic idea

    Topic modeling helps you discover hidden themes in large document collections—but traditional methods crawl when datasets grow to millions of records. This playbook shows how to process 40 million Amazon product reviews in minutes using GPU-accelerated BERTopic.

    BERTopic combines transformer embeddings with clustering to extract human-readable topics from text. By swapping CPU-based UMAP and HDBSCAN with GPU-accelerated versions from RAPIDS cuML, you get the same results dramatically faster—no code changes required.

    • Drop-in GPU acceleration: Load cuml.accel and your existing UMAP/HDBSCAN code runs on GPU automatically
    • Scale to millions: Process datasets that would take hours on CPU in minutes on GPU
    • Interactive visualizations: Explore topic distributions, relationships, and document clusters

    What you'll accomplish

    You'll run a complete topic modeling pipeline on 40 million product reviews and generate interactive visualizations of discovered topics.

    By the end, you'll be able to:

    • Use cuML's drop-in accelerators for UMAP and HDBSCAN
    • Generate sentence embeddings at scale with SentenceTransformers
    • Create topic visualizations including heatmaps, barcharts, and document datamaps

    What to know before starting

    • Experience with Python and Jupyter notebooks
    • Basic understanding of machine learning concepts (embeddings, clustering)
    • Familiarity with pandas DataFrames

    Prerequisites

    Hardware Requirements:

    • NVIDIA DGX Station with GB300 GPU
    • Minimum 64GB GPU memory for processing 40M documents
    • At least 50GB available storage for dataset and embeddings

    Software Requirements:

    • Conda (Miniconda or Anaconda): conda --version
    • CUDA 13.0 compatible drivers: nvidia-smi
    • Network access to download the Amazon Reviews dataset (~14GB compressed)

    Ancillary files

    All required assets are in the playbook directory nvidia/station-topic-modeling/assets (see Instructions, Step 7). Key file:

    • video_notebook_for_GPU_Accelerated_Machine_Learning_BERTopic_RTX6000_40M.ipynb - Complete Jupyter notebook with GPU-accelerated topic modeling pipeline (filename reflects original demo hardware; the notebook runs on GB300 and other NVIDIA GPUs)

    Time & risk

    • Estimated time: 45 minutes (includes environment setup, dataset download, and embedding generation)
    • Risk level: Low
      • Large dataset download (~14GB) may take time depending on network speed
      • Embedding generation requires significant GPU memory
    • Rollback: Delete the downloaded dataset and any generated embedding files to restore state
    • Last Updated: 03/02/2026
      • First Publication

    Resources

    • BERTopic Documentation
    • RAPIDS cuML Documentation
    Terms of Use
    Privacy Policy
    Your Privacy Choices
    Contact

    Copyright © 2026 NVIDIA Corporation