iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🤖

A Complete Guide to Running NVIDIA GR00T N1.6-3B on DGX Spark (Blackwell GB10)

に公開

Summary

  • Successfully ran GR00T N1.6-3B in an officially unsupported environment: DGX Spark (Blackwell GB10 + ARM64 + CUDA 13.0).
  • Resolved 12 compatibility issues (transformers 5.0 + PyTorch 2.9.1 + CUDA 13.0).
  • A comprehensive report on verification in an unsupported environment.
=== Final Result ===
Model: GR00T N1.6-3B
Device: cuda:0 (Blackwell GB10)
Parameters: 3,286,608,832 (approx. 3.3 billion)
GPU Memory: 6.15 GB
Status: ✓ Verified

Introduction: Why I wrote this article

NVIDIA's GR00T N1 is a Vision-Language-Action (VLA) model that has the potential to transform the field of robotics. However, the official documentation assumes x86_64 + CUDA 12.x, and there is no information on how to run it on the latest DGX Spark environment.

In this article, I record in detail the entire process of resolving 12 compatibility issues to get GR00T N1 running in an officially unsupported environment.


Verification Environment Details

Hardware: NVIDIA DGX Spark

Item Specification Challenge
GPU NVIDIA Blackwell GB10 Latest architecture released in 2025
CPU ARM Cortex (aarch64) Cannot use x86_64 binaries
CUDA 13.0 Requires PyTorch 2.9 or later
Memory 128GB Unified Memory CPU/GPU shared, ideal for large models
OS Ubuntu 24.04 Latest system libraries

Why DGX Spark is in the "Support Gap"

I started from a situation where everything was unsupported.


Understanding the GR00T N1 Architecture

What is a Vision-Language-Action (VLA) Model?

Model Information: Total Parameters: 3,286,608,832 (approx. 3.3 billion) / GPU Memory: ~6.15 GB (bfloat16)

Fundamental Differences from Traditional Reinforcement Learning

Perspective Traditional RL GR00T N1 (VLA)
Task Specification Define reward function in code Instructions in natural language
Learning Method Trial and error (millions of episodes) Pre-trained on large-scale data
Versatility 1 task = 1 model Multi-task support with 1 model
New Tasks Train from scratch (hours to days) Just change language instructions
Real-world Application Sim2Real gap problem Already trained on real-world data

Meaning of "N1.6" and "3B" in GR00T N1.6

  • N1.6: Newton 1.6 (NVIDIA's 1.6th generation AI foundation for the physical world)
  • 3B: 3 Billion parameters

Complete Setup Procedure

Phase 1: Cloning the Repository

cd ~/isaac
git clone --recurse-submodules https://github.com/NVIDIA/Isaac-GR00T
cd Isaac-GR00T

Why is --recurse-submodules mandatory?

GR00T depends on the following submodules:

Submodule Purpose
LIBERO Benchmark for manipulation tasks
SimplerEnv Simulation evaluation environment
robocasa Manipulation tasks in household environments

If these are missing, you will run into "ModuleNotFoundError" later.

Phase 2: Setting Environment Variables

export CUDA_HOME=/usr/local/cuda
export PATH=$CUDA_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH

Why is CUDA_HOME necessary?

FlashAttention compiles CUDA kernels at runtime. It needs to know the location of nvcc (the CUDA compiler).

Phase 3: Installing the uv Package Manager

curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc

Why use uv?

Reasons why NVIDIA adopted uv for GR00T:

Comparison Item pip conda uv
Speed Slow Very slow 10-100x faster
Dependency Resolution Prone to conflicts Complex Strict
Reproducibility Low Moderate Perfect via lockfile
CUDA Support Manual Complex Auto-detection

Phase 4: Patching pyproject.toml (aarch64 Support)

# Edit pyproject.toml to exclude packages incompatible with aarch64

Changes:

# Before
dependencies = [
    "torchcodec==0.4.0",  # ← No aarch64 wheel
    "decord",              # ← No aarch64 wheel
    ...
]

# After
dependencies = [
    # "torchcodec==0.4.0",  # Excluded: no aarch64 wheel
    # "decord",              # Excluded: no aarch64 wheel, using ffmpeg backend
    ...
]

Why does this work?

There are three backends for video processing in GR00T:

  1. torchcodec (fastest, x86_64 only)
  2. decord (fast, x86_64 only)
  3. ffmpeg (general purpose, platform-agnostic) ← Use this one

Phase 5: Creating Virtual Environment and Installing PyTorch

# Create virtual environment
uv venv --python 3.10
source .venv/bin/activate

# Install CUDA 13-compatible PyTorch
uv pip install torch==2.9.1 torchvision==0.24.1 \
  --index-url https://download.pytorch.org/whl/cu130

Why is --index-url necessary?

In the default PyPI index:

  • PyTorch CPU version ✓
  • PyTorch CUDA 11.x version ✓
  • PyTorch CUDA 12.x version ✓
  • PyTorch CUDA 13.x version ✗ Does not exist

You must specify the dedicated PyTorch official repository.

Phase 6: Installing FlashAttention (The Biggest Challenge)

# Official version does not support aarch64
# uv pip install flash-attn  # ← This will fail

# Use pre-built wheels provided by the community
uv pip install "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.8.3%2Bcu130torch2.9-cp310-cp310-linux_aarch64.whl"

What is FlashAttention and why is it essential?

GR00T's Diffusion Transformer has 32 layers of Attention. Without FlashAttention:

  • Inference will be several times slower
  • Risk of running out of GPU memory

Without the pre-built wheels from @mjun0812, running this on DGX Spark would have been impossible.

Phase 7: Remaining Dependencies

uv pip install \
  albumentations==1.4.18 \
  av==15.0.0 \
  diffusers==0.35.1 \
  transformers==5.0.0 \
  accelerate \
  peft \
  scipy==1.15.3 \
  wandb==0.23.0 \
  dm-tree \
  opencv-python-headless

Phase 8: Installing the GR00T Core

uv pip install -e . --no-deps

Why -e (Editable) mode?

We need to install in editable mode because we have to patch the code later.

Why --no-deps?

Without this, the manually installed PyTorch and flash-attn would be overwritten by the older versions specified in GR00T's pyproject.toml.


transformers 5.0 Compatibility Patches (Core)

transformers 5.0 has undergone significant API changes, requiring 12 patches across 7 files.

List of Files Requiring Patches

File Location Number of Patches
processing_eagle3_vl.py Local + Cache 2
image_processing_eagle3_vl_fast.py Local + Cache 2
modeling_siglip2.py Local + Cache 1
modeling_eagle3_vl.py Local + Cache 1
configuration_eagle3_vl.py Cache 1
gr00t_n1d6.py GR00T Core 2
eagle_backbone.py GR00T Core 1

Important: You must modify both the local files and the Hugging Face cache files.

Paths requiring modification:
├── Isaac-GR00T/gr00t/model/modules/nvidia/Eagle-Block2A-2B-v2/
│   ├── processing_eagle3_vl.py
│   ├── image_processing_eagle3_vl_fast.py
│   ├── modeling_siglip2.py
│   └── modeling_eagle3_vl.py
│
├── Isaac-GR00T/gr00t/model/gr00t_n1d6/
│   └── gr00t_n1d6.py
│
├── Isaac-GR00T/gr00t/model/modules/
│   └── eagle_backbone.py
│
└── ~/.cache/huggingface/modules/transformers_modules/Eagle_hyphen_Block2A_hyphen_2B_hyphen_v2/
    ├── processing_eagle3_vl.py
    ├── image_processing_eagle3_vl_fast.py
    ├── modeling_siglip2.py
    ├── modeling_eagle3_vl.py
    └── configuration_eagle3_vl.py

Patch 1: Moving VideoInput

Problem: VideoInput was moved to a separate module in transformers 5.0.

File: processing_eagle3_vl.py, image_processing_eagle3_vl_fast.py

# Before (transformers 4.x)
from transformers.image_utils import ImageInput, VideoInput, get_image_size, to_numpy_array

# After (transformers 5.0)
from transformers.image_utils import ImageInput, get_image_size, to_numpy_array
from transformers.video_utils import VideoInput  # Moved in transformers 5.0

Why was it moved?

transformers 5.0 clarifies module responsibilities:

  • image_utils: Static image processing
  • video_utils: Video processing

Patch 2: FastImageProcessor API Change

Problem: Docstring constants and type classes were removed or changed.

File: image_processing_eagle3_vl_fast.py

# Before
from transformers.image_processing_utils_fast import (
    BASE_IMAGE_PROCESSOR_FAST_DOCSTRING,
    BASE_IMAGE_PROCESSOR_FAST_DOCSTRING_PREPROCESS,
    BaseImageProcessorFast,
    DefaultFastImageProcessorKwargs,
    ...
)

# After
from transformers.image_processing_utils_fast import (
    BaseImageProcessorFast,
    divide_to_patches,
    group_images_by_shape,
    reorder_images,
)
# Compatibility shims for transformers 5.0
BASE_IMAGE_PROCESSOR_FAST_DOCSTRING = ""
BASE_IMAGE_PROCESSOR_FAST_DOCSTRING_PREPROCESS = ""
try:
    from transformers.image_processing_utils_fast import DefaultFastImageProcessorKwargs
except ImportError:
    from transformers.image_processing_utils_fast import ImagesKwargs as DefaultFastImageProcessorKwargs

Why did this change happen?

In transformers 5.0:

  • Docstrings have migrated to the auto_docstring decorator.
  • DefaultFastImageProcessorKwargs was renamed to ImagesKwargs.

Patch 3: validate_init_kwargs Return Value Change

Problem: The function return value changed from dict to tuple.

File: processing_eagle3_vl.py

# Before (transformers 4.x)
unused_kwargs = cls.validate_init_kwargs(processor_config=processor_dict, valid_kwargs=cls.valid_kwargs)
processor = cls(*args, **processor_dict)

# After (transformers 5.0)
# transformers 5.0 returns a tuple (unused_kwargs, valid_kwargs)
validate_result = cls.validate_init_kwargs(processor_config=processor_dict, valid_kwargs=cls.valid_kwargs)
if isinstance(validate_result, tuple):
    unused_kwargs, valid_kwargs_dict = validate_result
    processor = cls(*args, **valid_kwargs_dict)
else:
    unused_kwargs = validate_result
    processor = cls(*args, **processor_dict)

Why was this changed?

To clearly separate valid kwargs from unused kwargs.

Patch 4: Beta Distribution Meta Tensor Problem

Problem: Meta tensor error due to transformers 5.0's lazy loading mechanism.

File: gr00t_n1d6.py

# Before
self.beta_dist = Beta(config.noise_beta_alpha, config.noise_beta_beta)

# After
# Explicitly convert to float and disable validation to avoid meta tensor issues
# with transformers 5.0's lazy loading mechanism
self.beta_dist = Beta(
    float(config.noise_beta_alpha),
    float(config.noise_beta_beta),
    validate_args=False
)

Why does this error occur?

transformers 5.0 uses a mechanism called "meta tensor" for memory efficiency:

How Meta Tensor works:
1. Create model structure only on "meta device" (zero memory usage)
2. Move to actual device when loading weights

Problem:
.item() is called internally during Beta distribution initialization
→ .item() cannot be used with meta tensors
→ RuntimeError

This is bypassed by skipping validation with validate_args=False.

Patch 5: all_tied_weights_keys Attribute

Problem: The model lacks an attribute expected by transformers 5.0.

File: gr00t_n1d6.py

# Added to Gr00tN1d6 class
@property
def all_tied_weights_keys(self):
    """Required by transformers 5.0 for tied weight handling."""
    return {}

Why is this necessary?

transformers 5.0 changed the management method for tied weights. The mark_tied_weights_as_initialized() method references this attribute.

Patch 6: Siglip2Model Undefined Reference

Problem: Reference to a class that does not have _init_weights.

File: modeling_siglip2.py

# Before
elif isinstance(module, Siglip2Model):
    logit_scale_init = torch.log(torch.tensor(1.0))
    module.logit_scale.data.fill_(logit_scale_init)
    module.logit_bias.data.zero_()
elif isinstance(module, Siglip2ForImageClassification):
    ...

# After (commented out)
# Siglip2Model and Siglip2ForImageClassification are not defined in this file
# elif isinstance(module, Siglip2Model):
#     ...

Why does this code exist?

This file was copied from the official Siglip2 implementation in Hugging Face transformers, but GR00T only uses Siglip2VisionModel. Unused class references remained.

Patch 7: Missing initializer_range Attribute

Problem: initializer_range is not defined in the config.

File: modeling_eagle3_vl.py

# Before
def _init_weights(self, module):
    std = self.config.initializer_range

# After
def _init_weights(self, module):
    std = getattr(self.config, 'initializer_range', 0.02)  # Default 0.02 if not set

Why is this necessary?

initializer_range is not defined in Eagle3_VLConfig, but _init_weights is called. We use the general default value of 0.02.

Patch 8: flash_attention_2 Settings for text_config

Problem: Attention implementation for Qwen LLM is not correctly configured.

File: eagle_backbone.py

# Before
config = AutoConfig.from_pretrained(eagle_path, trust_remote_code=True)
self.model = AutoModel.from_config(config, trust_remote_code=True)

# After
config = AutoConfig.from_pretrained(eagle_path, trust_remote_code=True)
# Set flash attention on text_config for Qwen compatibility
if hasattr(config, 'text_config'):
    config.text_config._attn_implementation = "flash_attention_2"
self.model = AutoModel.from_config(config, trust_remote_code=True)

Why is this necessary?

The Eagle3_VL model internally uses Qwen2 LLM. To correctly use FlashAttention 2, it must also be set in text_config.

Patch 9: _attn_implementation_autoset Attribute

Problem: Attribute expected by transformers 5.0 is missing from config.

File: configuration_eagle3_vl.py (cache only)

# Inside to_dict method
# Before
output['_attn_implementation_autoset'] = self._attn_implementation_autoset

# After
output['_attn_implementation_autoset'] = getattr(self, '_attn_implementation_autoset', getattr(self, '_attn_implementation_internal', True))

Complete Patch Application Script

You can automatically apply all patches using the script below:

#!/bin/bash
# apply_patches.sh - GR00T N1 transformers 5.0 compatibility patches

GROOT_DIR=~/isaac/Isaac-GR00T
CACHE_DIR=~/.cache/huggingface/modules/transformers_modules/Eagle_hyphen_Block2A_hyphen_2B_hyphen_v2
LOCAL_EAGLE=$GROOT_DIR/gr00t/model/modules/nvidia/Eagle-Block2A-2B-v2

echo "Applying GR00T N1 patches for transformers 5.0 + CUDA 13 + aarch64..."

# Patch 1: VideoInput in processing_eagle3_vl.py
for file in "$LOCAL_EAGLE/processing_eagle3_vl.py" "$CACHE_DIR/processing_eagle3_vl.py"; do
    if [ -f "$file" ]; then
        sed -i 's/from transformers.image_utils import ImageInput, VideoInput,/from transformers.image_utils import ImageInput,\nfrom transformers.video_utils import VideoInput  # Moved in transformers 5.0\nfrom transformers.image_utils import/' "$file"
        echo "Patched: $file (VideoInput)"
    fi
done

# Patch 2: FastImageProcessor in image_processing_eagle3_vl_fast.py
# (Manual editing is actually required - too complex for sed)

echo "Done! Manual verification recommended."

Verification

Basic Import Test

python -c "
import torch
import flash_attn
import gr00t
print('PyTorch:', torch.__version__)
print('CUDA:', torch.cuda.is_available())
print('GPU:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'N/A')
print('FlashAttn:', flash_attn.__version__)
print('GR00T: OK')
"

Expected Output:

PyTorch: 2.9.1+cu130
CUDA: True
GPU: NVIDIA Graphics Device  # Blackwell GB10
FlashAttn: 2.8.3
GR00T: OK

Model Loading Test

from gr00t.policy.gr00t_policy import Gr00tPolicy
from gr00t.data.embodiment_tags import EmbodimentTag
import torch

print('Loading GR00T N1.6-3B model...')
policy = Gr00tPolicy(
    embodiment_tag=EmbodimentTag.GR1,
    model_path='nvidia/GR00T-N1.6-3B',
    device='cuda'
)

# Model info
print()
print('=== GR00T N1.6-3B Model Info ===')
print(f'Device: {policy.model.device}')
print(f'Dtype: {policy.model.dtype}')

# Count parameters
total_params = sum(p.numel() for p in policy.model.parameters())
print(f'Total Parameters: {total_params:,}')

# GPU memory
print()
print('=== GPU Memory ===')
print(f'Allocated: {torch.cuda.memory_allocated()/1024**3:.2f} GB')
print(f'Reserved: {torch.cuda.memory_reserved()/1024**3:.2f} GB')

Expected Output:

=== GR00T N1.6-3B Model Info ===
Device: cuda:0
Dtype: torch.bfloat16
Total Parameters: 3,286,608,832

=== GPU Memory ===
Allocated: 6.15 GB
Reserved: 6.23 GB

Complete List of Resolved Issues

# Category Issue Cause Solution
1 aarch64 torchcodec incompatibility x86_64 specific binary Replaced with ffmpeg backend
2 aarch64 decord incompatibility x86_64 specific binary Replaced with ffmpeg backend
3 CUDA 13 No support for PyTorch 2.7.0 Too new CUDA version Upgraded to 2.9.1
4 aarch64 No official flash-attn build Official supports x86_64 only Used community wheel
5 Environment CUDA_HOME not set nvcc not found Set environment variables
6 Permission .cache owned by root Docker remnants Fixed with chown
7 transformers 5.0 VideoInput moved Module reorganization Import from video_utils
8 transformers 5.0 FastImageProcessor API change Constant removal Dummy values and fallback
9 transformers 5.0 validate_init_kwargs return change Return value became tuple Tuple-handling patch
10 transformers 5.0 Beta distribution meta tensor error Lazy loading mechanism Set validate_args=False
11 transformers 5.0 all_tied_weights_keys missing New attribute requirement Added property
12 Code Siglip2Model undefined Incomplete copy Commented out lines
13 Code initializer_range missing Config definition missing Used getattr for default value
14 Code flash_attention_2 not set text_config missed Explicitly set

Performance Information

GR00T N1.6-3B on DGX Spark

Metric Value
Model loading time ~30s (first time, with cached weights)
GPU memory usage 6.15 GB
Number of parameters 3,286,608,832
Data type bfloat16

Blackwell GB10 Features

The Blackwell GB10 inside DGX Spark offers:

  • Unified Memory: Shares 128GB CPU and GPU memory
  • bfloat16 optimization: Optimal for the latest Transformer inference
  • Power-efficient design: Suitable for desktop deployment

Troubleshooting

Common Errors and Fixes

1. No module named 'flash_attn'

# Use community wheel
uv pip install "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.8.3%2Bcu130torch2.9-cp310-cp310-linux_aarch64.whl"

2. RuntimeError: Tensor.item() cannot be called on meta tensors

Fix Beta distribution initialization in gr00t_n1d6.py:

self.beta_dist = Beta(
    float(config.noise_beta_alpha),
    float(config.noise_beta_beta),
    validate_args=False
)

3. ImportError: cannot import name 'VideoInput' from 'transformers.image_utils'

# Fix
from transformers.video_utils import VideoInput

4. AttributeError: 'Gr00tN1d6' object has no attribute 'all_tied_weights_keys'

Add property to Gr00tN1d6 class:

@property
def all_tied_weights_keys(self):
    return {}

5. Cache remains in old state

# Clear Hugging Face cache
rm -rf ~/.cache/huggingface/modules/transformers_modules/Eagle*

Exploring Alternatives: Could Docker Have Been Used?

While this article utilized manual setup, a common question arises: "Wouldn't it have been easier with Docker?" I actually verified the Docker approach.

GR00T Repository Docker Configuration

The Isaac-GR00T repository contains a docker/ directory:

Isaac-GR00T/docker/
├── Dockerfile
├── build.sh
└── README.md

Dockerfile content (excerpt):

FROM nvcr.io/nvidia/pytorch:25.04-py3

RUN pip install ... decord==0.6.0 torchcodec==0.4.0  # ← Problematic packages

COPY src/gr00t/ /workspace/gr00t/
RUN cd /workspace/gr00t && uv sync && uv pip install -e .

NVIDIA Container arm64 Support

First, I checked if the base image supports arm64:

$ docker manifest inspect nvcr.io/nvidia/pytorch:25.04-py3
{
  "platform": { "architecture": "amd64", "os": "linux" }
},
{
  "platform": { "architecture": "arm64", "os": "linux" }  // ✓ Supported!
}

Good news: Official NVIDIA PyTorch containers support arm64 (aarch64).

However, Checking the Container Contents...

$ docker run --rm nvcr.io/nvidia/pytorch:25.04-py3 pip show torchcodec decord

NVIDIA Release 25.04
PyTorch Version 2.7.0a0+79aa174  # ← No CUDA 13 support!

torchcodec/decord: Not pre-installed  # ← Not included

Discovered Issues

Item NVIDIA Container Required for DGX Spark Issue
PyTorch 2.7.0a0 2.9.1+ No CUDA 13 support
CUDA 12.x series 13.0 Version mismatch
torchcodec None Not required Dockerfile addition → Failed
decord None Not required Dockerfile addition → Failed
transformers 5.x 5.x API patch required

Docker Build Results

$ cd Isaac-GR00T/docker && docker build -t gr00t-test .

Result:

  • Error finding aarch64 wheels for torchcodec/decord
  • Even if avoided, PyTorch does not support CUDA 13
  • transformers 5.0 compatibility patches are still required

Estimated Tasks Required for Docker

Tasks required even with Docker approach:
├── Fix Dockerfile
│   ├── Exclude torchcodec/decord
│   ├── Replace with PyTorch 2.9.1+cu130
│   └── Add flash-attn community wheel
│
├── transformers 5.0 compatibility patches (12) ← Unavoidable
│   ├── Move VideoInput
│   ├── Change FastImageProcessor API
│   ├── Change validate_init_kwargs return value
│   ├── Beta distribution meta tensor issue
│   ├── Add all_tied_weights_keys attribute
│   └── ...and 7 others
│
└── Patching HF cache ← Required inside container too

Conclusion: Why I did not use Docker

Comparison Docker Approach Manual Setup
Initial Setup Requires Dockerfile fix Requires pyproject.toml fix
PyTorch Replacement Required Required
flash-attn Requires wheel addition Requires wheel addition
transformers patches Required (12) Required (12)
Debuggability Working inside container Direct work on host
Reproducibility High Medium

Core Issue:

transformers 5.0 compatibility patches are unavoidable regardless of the installation method. This is because the GR00T Eagle backbone code is written for transformers 4.x.

Even official NVIDIA containers were not optimized for DGX Spark (Blackwell + CUDA 13).

Value of this Article

The 12 patches recorded here are essential information even for Docker users. Regardless of the installation method, these patches are mandatory to run GR00T on DGX Spark + transformers 5.0.


Another Question: Wouldn't downgrading CUDA 13 be easier?

"If CUDA 13 is the source of the problem, wouldn't downgrading to CUDA 12.x solve it?" This is a natural question. However, CUDA downgrading is physically impossible on DGX Spark.

Relationship Between GPU Architecture and CUDA Support

Blackwell GPUs require at least CUDA 13.0. This is not a software choice, but a hardware constraint.

Attempting CUDA Downgrade

# Trying to install CUDA 12.4...
$ sudo apt install cuda-12-4

# GPU becomes unrecognized
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver.
# Blackwell GPUs do not have drivers for CUDA 12.x

Comparison of All Alternatives

Approach Feasibility Workload Issue
CUDA Downgrade ❌ Impossible - Blackwell GPU will not work (hardware constraint)
PyTorch Downgrade ❌ Impossible - CUDA 13 support requires PyTorch 2.9.1+
transformers Downgrade ⚠️ Difficult High Compatibility with PyTorch 2.9.1 unverified, risk of other issues
Docker Container ⚠️ Partial High Container PyTorch lacks CUDA 13 support, patches still required
Patch Application ✅ Successful Medium 12 patches required but reliably works

transformers Downgrade Issues

I considered "What if I downgrade to transformers 4.53.0?"

# Attempting to downgrade to transformers 4.53.0
pip install transformers==4.53.0

Anticipated Problems:

  1. Compatibility with PyTorch 2.9.1 unverified - transformers 4.x assumes PyTorch 2.7 or older.
  2. No testing in CUDA 13 environment - Potential for other compatibility issues.
  3. Postponing the problem - Migration to 5.x will be necessary eventually.

Conclusion: Why Patch Application is Best

Applying the patches is the most reliable and practical method.

Because the patches are clear and the necessity is understood:

  • One can track what is fixed when NVIDIA provides official support.
  • Applicable to other custom models targeting transformers 5.0.
  • Accumulated as troubleshooting knowledge.

Lessons Learned

1. The "Gap" Problem of Cutting-edge Hardware

Modern environments like DGX Spark (Blackwell + aarch64 + CUDA 13) are:

  • Lacking official support.
  • Dependent on community contributions.
  • Requiring version compatibility adjustments.

2. Impact of transformers Major Version Upgrades

In transformers 4.x → 5.0:

  • Significant module structure changes.
  • Internal API changes.
  • Introduction of lazy loading mechanisms.

Existing custom models must undergo compatibility testing.

3. Importance of Debugging

To resolve the 12 issues:

  • Carefully read error messages.
  • Inspect transformers source code.
  • Isolate problems one by one.

4. Community Value

The flash-attention-prebuild-wheels from @mjun0812 made this verification possible.


Next Steps

  • Run sample inference (verify with dummy input)
  • Benchmark inference speed
  • Verify integration with Isaac Sim
  • Evaluate with actual robotic tasks


Acknowledgments

  • @mjun0812 - Providing aarch64 builds of flash-attention
  • NVIDIA - Releasing GR00T N1
  • Hugging Face - transformers library and model hosting

This article is based on information as of February 5, 2026.
This is a verification report on running GR00T N1 in a DGX Spark + transformers 5.0 + CUDA 13.0 environment.

GitHubで編集を提案

Discussion