This guide covers how to use AlgEngine for training end-to-end autonomous driving models, running evaluations, extracting rare cases, and fine-tuning. AlgEngine is built on MMDetection3D and supports UniAD, VADv2, and HydraMDP architectures.
- Quick Reference
- Training
- Evaluation
- Rare Case Extraction
- Fine-Tuning
- Configuration
- Model Architectures
- Advanced Training
- Troubleshooting
- Performance Optimization
cd projects/AlgEngine
# Training (8 GPUs)
./scripts/e2e_dist_train.sh <config> <num_gpus> [resume_checkpoint]
# Open-loop evaluation (inference + automatic official NAVSIM rescoring when required)
./scripts/e2e_dist_eval.sh <config> <checkpoint> <num_gpus>
# Full train set evaluation (chunked)
bash scripts/e2e_dist_eval_navtrain_chunked.sh <config> <checkpoint> <num_gpus> [num_chunks]
# Rare case extraction
python scripts/rare_case_sampling_by_pdms.py \
--pdm-result <csv_file> \
--base-split <yaml_file> \
--output-dir <output_dir>
# Closed-loop evaluation
bash scripts/run_ray_distributed_testing.sh <config> <checkpoint> <model_name> <data_type> <react_type>Before training, ensure:
- ✅ AlgEngine environment installed (
algengineconda env) - ✅ Data prepared (see Data Organization)
- ✅ Pre-trained backbone weights downloaded
Train a model on 50% of the training data:
conda activate algengine
cd projects/AlgEngine
# Train VADv2 with 50% data (8 GPUs)
./scripts/e2e_dist_train.sh configs/worldengine/e2e_vadv2_50pct.py 8Arguments:
<config>: Configuration file path<num_gpus>: Number of GPUs to use[resume_checkpoint](optional): Checkpoint to resume from
./scripts/e2e_dist_train.sh configs/worldengine/e2e_vadv2_100pct.py 8Resume from a checkpoint:
./scripts/e2e_dist_train.sh \
configs/worldengine/e2e_vadv2_50pct.py \
8 \
work_dirs/e2e_vadv2_50pct/latest.pthAuto-resume: If latest.pth exists in work_dirs/, training will auto-resume.
# Watch training log
tail -f work_dirs/e2e_vadv2_50pct/logs/train.*
# TensorBoard (if enabled)
tensorboard --logdir work_dirs/e2e_vadv2_50pct/tf_logsKey metrics to monitor:
loss: Total training loss (should decrease)loss_planning: Planning lossloss_track: Tracking lossade_4s: Average displacement error at 4 secondsfde_4s: Final displacement error at 4 seconds
work_dirs/e2e_vadv2_50pct/
├── e2e_vadv2_50pct.py # Config backup
├── logs/
│ └── train.26040614* # Training logs
├── epoch_1.pth # Checkpoints
├── epoch_2.pth
...
├── epoch_20.pth
└── latest.pth # Symlink to latest checkpoint
e2e_dist_eval.sh has two stages: multi-GPU model inference and, for
generated/non-selection planners, official NAVSIM submission rescoring. Do not
interpret the inference-stage CSV of a non-selection model as its final PDMS.
| Planner type | Examples | e2e_dist_eval.sh behavior |
|---|---|---|
| Selection model | VADv2, HydraMDP and vocabulary-selection heads | Keeps the model's existing cached/selection scores; no second scoring pass in auto mode. |
| Non-selection / generated trajectory model | DiffusionDrive, GoalFlow | Exports a NAVSIM submission, filters the official metric-cache index to exactly those tokens, then directly runs NAVSIM's run_pdm_score_from_submission.py. |
Before evaluating a non-selection model, configure the official NAVSIM v1.1 repository and the full navtest metric cache:
export NAVSIM_DEVKIT_ROOT=/path/to/navsim-v1.1
export NAVSIM_METRIC_CACHE_PATH=/path/to/metric_cache_navtest_v1conda activate algengine
cd projects/AlgEngine
# Evaluate on navtest (8 GPUs)
./scripts/e2e_dist_eval.sh \
configs/worldengine/e2e_vadv2_50pct.py \
work_dirs/e2e_vadv2_50pct/epoch_20.pth \
8Output:
<checkpoint_dir>/test/
├── <timestamp>.csv # inference metrics; PDMS is a placeholder for non-selection models
├── <timestamp>_navsim_submission.pkl # official NAVSIM submission
└── <timestamp>_official_pdms/
├── pdm_scores_merged.csv # final official NAVSIM PDMS result
└── metric_cache_index/metadata/ # submission-filtered index; cache payloads are not copied
The default NAVSIM_OFFICIAL_RESCORE=auto mode inspects the inference CSV and
only launches the official scorer when PDMS values are placeholders. Overrides:
# Force official rescoring, including for a selection model
NAVSIM_OFFICIAL_RESCORE=always ./scripts/e2e_dist_eval.sh <config> <checkpoint> <gpus>
# Run inference/export only
NAVSIM_OFFICIAL_RESCORE=never ./scripts/e2e_dist_eval.sh <config> <checkpoint> <gpus>To rescore an existing submission without repeating model inference:
bash scripts/e2e_navsim_official_rescore.sh \
/path/to/<timestamp>_navsim_submission.pkl \
"$NAVSIM_METRIC_CACHE_PATH"Official rescoring is CPU-bound; the inference GPU count does not control the scorer. The wrapper calls the external NAVSIM repository directly and does not reimplement PDMS inside AlgEngine.
Evaluate on known rare navtest cases. navtest_failures is a subset of
navtest, so non-selection models reuse the same NAVSIM_METRIC_CACHE_PATH.
The script exports a failures-only submission, builds a failures-only metadata
index over the full navtest cache, and runs the same official scorer in auto
mode.
./scripts/e2e_dist_eval_navtest_failures.sh \
configs/worldengine/e2e_vadv2_50pct.py \
work_dirs/e2e_vadv2_50pct/epoch_20.pth \
8Output:
<checkpoint_dir>/test/
├── <timestamp>.csv
├── <timestamp>_navsim_submission.pkl
└── <timestamp>_official_pdms/
└── <timestamp>.csv # final official failures-subset PDMS
Evaluate on the full training set (navtrain) to produce per-scenario metrics for Rare Case Extraction. Because navtrain is large, the script splits it into chunks to avoid OOM.
conda activate algengine
cd projects/AlgEngine
# Chunked evaluation on navtrain (8 GPUs, 20 chunks)
bash scripts/e2e_dist_eval_navtrain_chunked.sh \
configs/worldengine/e2e_vadv2_50pct.py \
work_dirs/e2e_vadv2_50pct/epoch.pth \
8 \
20Arguments:
<config>: Configuration file path<checkpoint>: Model checkpoint to evaluate<num_gpus>: Number of GPUs to use[num_chunks](optional, default 10): Number of chunks to split navtrain into
The script automatically:
- Splits
navtrain.yamlinto chunks underconfigs/navsim_splits/navtrain_split/chunks/ - Evaluates each chunk sequentially
- Merges all chunk CSVs into a single file
Output:
experiments/worldengine/e2e_vadv2_50pct/
└── navtrain.csv # Full train set evaluation results
Open-loop metrics CSV format:
token,ade_4s,fde_4s,no_at_fault_collisions,drivable_area_compliance,ego_progress,comfort,score
abc123,0.42,0.85,1.0,0.95,0.88,0.92,0.89
...Key metrics:
ade_4s: Average trajectory error over 4 seconds (meters, lower is better)fde_4s: Final position error at 4 seconds (meters, lower is better)no_at_fault_collisions: Collision avoidance rate (0-1, higher is better)drivable_area_compliance: Stay in drivable area (0-1, higher is better)ego_progress: Route completion (0-1, higher is better)comfort: Comfort metric (0-1, higher is better)score: Overall PDM score (0-1, higher is better)
Evaluate model in simulation (requires SimEngine).
See SimEngine Usage Guide for:
- Single-GPU testing
- Multi-GPU distributed testing
- Reactive vs non-reactive modes
Quick example:
cd projects/AlgEngine
bash scripts/run_ray_distributed_testing.sh \
$WORLDENGINE_ROOT/projects/AlgEngine/configs/worldengine/e2e_vadv2_50pct.py \
$WORLDENGINE_ROOT/projects/AlgEngine/work_dirs/e2e_vadv2_50pct/epoch_20.pth \
e2e_vadv2_50pct_epoch20 \
navtest_failures \
NRExtract failure scenarios from evaluation results for targeted fine-tuning.
Before extracting rare cases, you must complete a Full Train Set Evaluation to generate navtrain.csv with per-scenario metrics. The rare case extraction script uses this CSV to identify failure scenarios.
conda activate algengine
cd projects/AlgEngine
python scripts/rare_case_sampling_by_pdms.py \
--pdm-result ${WORLDENGINE_ROOT}/experiments/worldengine/e2e_vadv2_50pct/navtrain.csv \
--base-split configs/navsim_splits/navtrain_split/navtrain_50pct.yaml \
--output-dir configs/navsim_splits/navtrain_split/e2e_vadv2_50pct_rareArguments:
--pdm-result: CSV file with evaluation metrics--base-split: Base scenario split YAML file--output-dir: Directory to save extracted split files
The script generates three rare case split files:
configs/navsim_splits/navtrain_split/e2e_vadv2_50pct_rare/
├── navtrain_50pct_collision.yaml # Collision scenarios
├── navtrain_50pct_off_road.yaml # Off-road scenarios
└── navtrain_50pct_ep_1pct.yaml # Low ego-progress (bottom 1%)
Edit the script to customize:
# In rare_case_sampling_by_pdms.py
# Change collision threshold
collision_scenarios = df[df['no_at_fault_collisions'] < 0.95] # From 1.0
# Change ego-progress percentile
ep_threshold = df['ego_progress'].quantile(0.05) # From 0.01 (1% -> 5%)# Check how many scenarios were extracted
wc -l configs/navsim_splits/navtrain_split/e2e_vadv2_50pct_rare/*.yaml
# View first few scenarios
head -20 configs/navsim_splits/navtrain_split/e2e_vadv2_50pct_rare/navtrain_50pct_collision.yamlChoose a fine-tuning config for the data you want to use:
| Config suffix | Training data | Preparation |
|---|---|---|
_rlft_rare_log |
Original rare-case logs | Extract rare-case SceneFilters; no new rollout is required. |
_rlft_rare_rollout |
Exported SimEngine rollouts | Run rollout, verify export, and set the exported dataset names. |
_rlft_rare_rollout_bwm |
Exported rollouts from BWM-generated scenarios, optionally mixed with original-scenario rollouts | Generate and publish BWM scenarios, run NR rollout, and set the exported dataset names. |
The example below follows the rollout-based path. Set the repository root once; all commands use it explicitly:
export WORLDENGINE_ROOT=/path/to/WorldEngineFirst complete Rare Case Extraction in AlgEngine. For original scenarios, convert the selected scenes to SimEngine format:
conda activate simengine
cd "$WORLDENGINE_ROOT"
python "$WORLDENGINE_ROOT/projects/SimEngine/worldengine/utils/dataset_utils/nuplan/digitaltwin_nuplan_converter_navsim_filter.py" \
--navsim-filters \
"$WORLDENGINE_ROOT/projects/AlgEngine/configs/navsim_splits/navtrain_split/e2e_vadv2_50pct_rare/navtrain_50pct_collision.yaml" \
"$WORLDENGINE_ROOT/projects/AlgEngine/configs/navsim_splits/navtrain_split/e2e_vadv2_50pct_rare/navtrain_50pct_ep_1pct.yaml" \
"$WORLDENGINE_ROOT/projects/AlgEngine/configs/navsim_splits/navtrain_split/e2e_vadv2_50pct_rare/navtrain_50pct_off_road.yaml" \
--out-dir "$WORLDENGINE_ROOT/data/sim_engine/scenarios/original/navtrain_vadv2_50pct_rare" \
--num-processes 8This writes all_scenarios.pkl under the specified output directory. See
Convert nuPlan Data
for data and asset overrides.
For BWM-generated scenarios, use the BWM generation and publication workflow and Rollouts from BWM Scenarios instead of the original-scenario conversion above. After rollout, both paths use the same export format and training setup described below.
For the original-scenario example, run:
# The exporter expects these parent directories to exist.
mkdir -p "$WORLDENGINE_ROOT/data/alg_engine/openscene-synthetic/"{meta_datas,pdms_pkl,sensor_blobs}
bash "$WORLDENGINE_ROOT/projects/SimEngine/scripts/run_ray_distributed_rollout.sh" \
"$WORLDENGINE_ROOT/projects/AlgEngine/configs/worldengine/e2e_vadv2_50pct.py" \
"$WORLDENGINE_ROOT/data/alg_engine/ckpts/e2e_vadv2_50pct_ep8.pth" \
e2e_vadv2_50pct \
navtrain_vadv2_50pct_rare \
navtrain| Argument | Example value | Controls |
|---|---|---|
model_name |
e2e_vadv2_50pct |
Experiment directory and exported dataset prefix |
data_type |
navtrain_vadv2_50pct_rare |
Scenario directory and rollout output name |
asset_name |
navtrain |
Asset directory under data/sim_engine/assets/ |
The rollout directory is
$WORLDENGINE_ROOT/experiments/closed_loop_exps/<model_name>/<data_type>_NR/.
For this example:
$WORLDENGINE_ROOT/experiments/closed_loop_exps/e2e_vadv2_50pct/navtrain_vadv2_50pct_rare_NR/
├── split_0/ ... split_7/
└── WE_output/openscene_format/
├── sensor_blobs/
├── meta_datas/
├── pdms_pkl/
│ └── plan_idx.csv
└── all_scenes_pdm_averages_NR.csv
On successful completion, the rollout launcher automatically merges the splits and exports the dataset. Continue with verification; a second manual export is not required.
The exported dataset name is
<model_name>_<data_type>_NR_<YYMMDD>, using the system date when the
export step runs. For example, an export with suffix 261009 produces
e2e_vadv2_50pct_navtrain_vadv2_50pct_rare_NR_261009.
$WORLDENGINE_ROOT/data/alg_engine/openscene-synthetic/
├── meta_datas/<dataset_name>/combined.pkl
├── sensor_blobs/<dataset_name>/
└── pdms_pkl/<dataset_name>/
├── plan_idx.csv
└── <scene>_step_<frame>_scores.pkl
The three dataset directories are symlinks to the merged rollout output.
The exporter also creates combined.pkl with per-frame metadata and
available reward arrays. Keep the source rollout directories available.
List the actual exported names, then check the one you plan to train on:
ls -1 "$WORLDENGINE_ROOT/data/alg_engine/openscene-synthetic/meta_datas/"
# Example only: use the exact dataset name listed above.
DATA_NAME=e2e_vadv2_50pct_navtrain_vadv2_50pct_rare_NR_261009
test -f "$WORLDENGINE_ROOT/data/alg_engine/openscene-synthetic/meta_datas/$DATA_NAME/combined.pkl"
test -f "$WORLDENGINE_ROOT/data/alg_engine/openscene-synthetic/pdms_pkl/$DATA_NAME/plan_idx.csv"
test -d "$WORLDENGINE_ROOT/data/alg_engine/openscene-synthetic/sensor_blobs/$DATA_NAME"For an existing merged rollout that has not been exported, follow
Manual Export. The
current exporter refuses existing symlink destinations; repeating an export
with the same name raises FileExistsError.
For the original-scenario rollout example, edit
projects/AlgEngine/configs/worldengine/e2e_vadv2_50pct_rlft_rare_rollout.py.
Replace its synthetic_folder_names placeholders with the exported dataset
names verified above:
# Use your actual export suffix.
synthetic_folder_names = [
"e2e_vadv2_50pct_navtrain_vadv2_50pct_rare_NR_261009",
]
# Initial model weights for a new fine-tuning run.
load_from = os.path.join(
WORLDENGINE_ROOT, "data/alg_engine/ckpts/e2e_vadv2_50pct_ep8.pth"
)These configs already pass synthetic_folder_names to
data.train.folder_name and use NavSimOpenSceneE2EFineTuneSynthetic.
Each entry is a dataset directory name, not an absolute path or a
scenario pickle path. The loader finds matching directories under
openscene-synthetic/meta_datas, sensor_blobs, and pdms_pkl.
For BWM rollouts, make the same edits in
e2e_vadv2_50pct_rlft_rare_rollout_bwm.py, using the actual exported names
of your augmented runs. Include original-scenario exports in the list if
you want to mix both sources; the list can contain one or more datasets.
Also align finetune_yaml with the base scene selections used for generation
and rollout. The dataset skips synthetic samples whose original token is
absent from these filters. See the
Configuration Guide for variant details.
After updating the selected config:
conda activate algengine
cd "$WORLDENGINE_ROOT/projects/AlgEngine"
CONFIG=configs/worldengine/e2e_vadv2_50pct_rlft_rare_rollout.py
# For BWM exports, select this instead:
# CONFIG=configs/worldengine/e2e_vadv2_50pct_rlft_rare_rollout_bwm.py
./scripts/e2e_dist_train.sh "$CONFIG" 8The config's load_from initializes a new fine-tuning run. The optional
third launcher argument is a resume checkpoint, forwarded as
--resume-from; use it only to continue an interrupted training run.
For original-log fine-tuning, select _rlft_rare_log.py and configure its
finetune_yaml directly; it does not consume the exported rollout datasets.
The launcher mirrors the config's path below configs/ into
$WORLDENGINE_ROOT/experiments/, removing the .py extension. For the
example above:
$WORLDENGINE_ROOT/experiments/worldengine/e2e_vadv2_50pct_rlft_rare_rollout/
├── e2e_vadv2_50pct_rlft_rare_rollout.py
├── logs/
│ └── train.*
└── epoch_8.pth
The supplied rollout configs keep only the latest epoch checkpoint. With
the BWM config selected, the directory name ends in _rare_rollout_bwm.
Continue with the same CONFIG selected for training:
conda activate algengine
cd "$WORLDENGINE_ROOT/projects/AlgEngine"
CONFIG_NAME=$(basename "$CONFIG" .py)
FINETUNE_CKPT="$WORLDENGINE_ROOT/experiments/worldengine/$CONFIG_NAME/epoch_8.pth"
# Open-loop evaluation
./scripts/e2e_dist_eval.sh "$CONFIG" "$FINETUNE_CKPT" 8
# Closed-loop evaluation
bash "$WORLDENGINE_ROOT/projects/SimEngine/scripts/run_ray_distributed_testing.sh" \
"$WORLDENGINE_ROOT/projects/AlgEngine/$CONFIG" \
"$FINETUNE_CKPT" \
"$CONFIG_NAME" \
navtest_failures \
NRAlgEngine uses hierarchical configuration with MMDetection3D. For a detailed reference of all config parameters, variants, and their relationships, see the Configuration Guide.
configs/
├── _base_/
│ └── default_runtime.py # Base runtime settings
├── worldengine/
│ ├── e2e_vadv2_50pct.py # 50% data training
│ ├── e2e_vadv2_100pct.py # 100% data training
│ ├── e2e_vadv2_50pct_rlft_rare_log.py # Rare case fine-tuning
│ └── ...
└── navsim_splits/
├── navtrain_split/
│ ├── navtrain.yaml # Full training set
│ ├── navtrain_50pct.yaml # 50% subset
│ └── e2e_vadv2_50pct_rare/ # Rare case splits
│ ├── navtrain_50pct_collision.yaml
│ ├── navtrain_50pct_off_road.yaml
│ └── navtrain_50pct_ep_1pct.yaml
└── navtest_split/
├── navtest.yaml # Full test set
└── navtest_failures.yaml # Failure subset
# Model architecture
model = dict(
type='VADv2', # or 'UniAD', 'HydraMDP'
num_query=900,
num_classes=7,
planning_steps=8,
img_backbone=dict(type='ResNet50', ...),
img_neck=dict(type='FPN', ...),
)
# BEV configuration
bev_h_, bev_w_ = 200, 200
patch_size = [102.4, 102.4] # Physical range (meters)
# Input modality
input_modality = dict(
use_lidar=False,
use_camera=True, # 8 cameras
use_radar=False,
use_external=True # CAN bus
)
# Training
total_epochs = 20
optimizer = dict(type='AdamW', lr=2e-4, weight_decay=0.01)
lr_config = dict(
policy='CosineAnnealing',
warmup='linear',
warmup_iters=500,
warmup_ratio=1.0 / 3,
)
# Data
data = dict(
samples_per_gpu=1,
workers_per_gpu=4,
train=dict(
ann_file='merged_infos_navformer/nuplan_openscene_navtrain.pkl',
scenario_filter='configs/navsim_splits/navtrain_split/navtrain_50pct.yaml',
),
val=dict(
ann_file='merged_infos_navformer/nuplan_openscene_navtest.pkl',
scenario_filter='configs/navsim_splits/navtest_split/navtest.yaml',
),
)Override config parameters at runtime:
./scripts/e2e_dist_train.sh \
configs/worldengine/e2e_vadv2_50pct.py \
8 \
--cfg-options \
optimizer.lr=1e-4 \
total_epochs=30 \
data.samples_per_gpu=2AlgEngine supports multiple end-to-end autonomous driving architectures.
Features:
- Vector-based scene representation
- Planning-oriented perception
- Efficient trajectory prediction
Config: configs/worldengine/e2e_vadv2_*.py
Best for: General driving scenarios, fast inference
Features:
- Unified perception-prediction-planning
- Multi-task learning
- Strong generalization
Config: configs/worldengine/e2e_uniad_*.py
Best for: Complex scenarios, research
Features:
- Multi-modal trajectory prediction
- Distribution-aware planning
- Behavior world model integration
Config: configs/worldengine/e2e_hydramdp_*.py
Best for: Safety-critical scenarios, rare cases
# Train UniAD instead of VADv2
./scripts/e2e_dist_train.sh configs/worldengine/e2e_uniad_50pct.py 8
# Evaluate HydraMDP
./scripts/e2e_dist_eval.sh \
configs/worldengine/e2e_hydramdp_50pct.py \
work_dirs/e2e_hydramdp_50pct/epoch_20.pth \
8For very large models or datasets:
# Node 0 (master)
export MASTER_ADDR=192.168.1.100
export MASTER_PORT=28567
export WORLD_SIZE=16 # Total GPUs
export RANK=0 # Node rank
./scripts/e2e_dist_train.sh configs/worldengine/e2e_vadv2_100pct.py 8
# Node 1 (worker)
export MASTER_ADDR=192.168.1.100
export MASTER_PORT=28567
export WORLD_SIZE=16
export RANK=8
./scripts/e2e_dist_train.sh configs/worldengine/e2e_vadv2_100pct.py 8Enable automatic mixed precision (AMP) for faster training:
# In config
fp16 = dict(loss_scale='dynamic')For large batch sizes with limited GPU memory:
# In config
data = dict(
samples_per_gpu=1,
workers_per_gpu=4,
)
# Set gradient accumulation steps
runner = dict(
max_epochs=20,
gradient_accumulation_steps=4, # Effective batch size = 1 * 8 GPUs * 4 = 32
)Solution:
# Reduce batch size
# Edit config: data.samples_per_gpu = 1 (from 2)
# Reduce BEV resolution
# Edit config: bev_h_, bev_w_ = 150, 150 (from 200, 200)
# Use gradient checkpointing
# Edit config: model.img_backbone.with_cp = TruePossible causes:
- Learning rate too high/low
- Data loading issues
- Incorrect pre-trained weights
Solution:
# Check data loading
python tools/analysis_tools/browse_dataset.py configs/worldengine/e2e_vadv2_50pct.py
# Verify pre-trained weights loaded
grep "load checkpoint" work_dirs/*/logs/train.*
# Try different learning rate
./scripts/e2e_dist_train.sh ... --cfg-options optimizer.lr=1e-4Solution:
# Check if processes are stuck
ps aux | grep python
# Kill stuck processes
pkill -f "test.py"
# Restart evaluation with fewer GPUs
./scripts/e2e_dist_eval.sh ... 4 # Use 4 instead of 8Solution:
# Ensure you're in the right environment
conda activate algengine
# Verify MMCV installation
python -c "import mmcv; print(mmcv.__version__)"
# Reinstall MMDetection3D if needed
pip uninstall mmdet3d -y
pip install mmdet3d==1.0.0rc6Solution:
# Use a previous checkpoint
./scripts/e2e_dist_train.sh ... work_dirs/*/epoch_18.pth # Instead of epoch_20
# Or train from scratch
rm work_dirs/e2e_vadv2_50pct/latest.pth
./scripts/e2e_dist_train.sh ...- Increase workers:
data.workers_per_gpu = 8(if CPU/RAM allows) - Use SSD: Store data on fast NVMe SSD
- Mixed precision: Enable
fp16 = dict(loss_scale='dynamic') - Persistent workers:
data.persistent_workers = True
- Reduce batch size:
data.samples_per_gpu = 1 - Lower BEV resolution:
bev_h_, bev_w_ = 150, 150 - Gradient checkpointing:
model.img_backbone.with_cp = True - Clear cache:
torch.cuda.empty_cache()in code
- Even GPU allocation: Use same GPU type across nodes
- InfiniBand: Use high-speed interconnect for multi-node
- Shared filesystem: Use NFS/Lustre for data loading
- Monitor network: Watch for communication bottlenecks
- Run simulations: See SimEngine Usage Guide
- Understand evaluation: See Quick Start Guide
For questions, visit GitHub Discussions.