> This page is for version 2.0.0.
> For other versions, use one of these documentation indexes:
> - 3.0.0 (Latest) (default): https://docs.nvidia.com/nim/financial-fraud-training/3.0.0/llms.txt
> - 2.0.0: https://docs.nvidia.com/nim/financial-fraud-training/2.0.0/llms.txt
> - 1.0.0: https://docs.nvidia.com/nim/financial-fraud-training/1.0.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nim/financial-fraud-training/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nim/financial-fraud-training/_mcp/server.

# Run Training Using Financial Fraud Training

This document provides step-by-step instructions to log in, pull the Financial Fraud Training Docker image, run the Financial Fraud Training container, and train models using it.

---

## 1. Authenticate with NVIDIA GPU Cloud (NGC) and Pull the Docker Image

The following explains how to authenticate with the NVIDIA GPU Cloud (NGC) and pull the Docker image from the NVIDIA registry.

### Prerequisites

- **NGC Account & API Key:** Ensure you have an NGC account and a valid API key.
- **Docker:** Make sure Docker is installed and running on your machine.

### Authenticate with NGC

Log in to the NVIDIA container registry using your NGC API key:

```bash
docker login nvcr.io --username '$oauthtoken' --password $NGC_API_KEY
```

<Note>Replace $NGC_API_KEY with your actual API key or set it in `NGC_API_KEY` env variable.</Note>

### Pull the Docker Image

After authenticating, pull the desired Docker image from the registry:

```bash
docker pull nvcr.io/nvidia/cugraph/financial-fraud-training:2.0.0
```

## 2. Train models

### Run the Container

Run the training container with the following command:

```bash
    docker run -it --rm --name=financial-fraud-training \
    --gpus "device=0" -v <YOUR_GNN_DATA_DIR>:/data \
    -v <DIR_TO_SAVE_TRAINED_MODELS>:/trained_models \
    nvcr.io/nvidia/cugraph/financial-fraud-training:2.0.0
```

#### Command Breakdown
Docker Run Options:


    -it: Run the container interactively.


    --rm: Automatically removes the container when it exits.


    --name=financial-fraud-training: Names the container.


Volume Mounts:


`-v <YOUR_GNN_DATA_DIR>:/data`: Mounts your GNN data directory into the container.


`-v <DIR_TO_SAVE_TRAINED_MODELS>:/trained_models`: Mounts a directory for saving trained models.




<Note>Replace `<YOUR_GNN_DATA_DIR>` and `<DIR_TO_SAVE_TRAINED_MODELS>` with the actual paths on your system where your GNN data is located and trained models should reside.</Note>