Eclipse Deeplearning4j is a multi-library ecosystem for building, training, and deploying neural networks on the JVM with ND4J, SameDiff, and DataVec.
Overview
Eclipse Deeplearning4j targets teams that want deep learning on the Java virtual machine and languages such as Scala, Kotlin, or Clojure. The high-level DL4J API builds multi-layer networks and computation graphs, supports custom layers, can import Keras h5 models including tf.keras, and can run distributed training on Apache Spark.
ND4J supplies general-purpose n-dimensional array math with hundreds of operations, backed by an optimized C++ core with CPU vector paths and CUDA GPU acceleration via libraries such as OpenBLAS, oneDNN, cuDNN, and cuBLAS. SameDiff adds graph-based automatic differentiation comparable in workflow to TensorFlow graph mode, with eager execution planned, and can import TensorFlow frozen protobuf models with further import formats on the roadmap.
DataVec handles ETL from CSV, images, audio, video, HDFS, Spark, and other sources. Python4J embeds CPython for calling Python from JVM code. Documentation covers quickstarts, Maven setup, convolutional and recurrent examples, Keras and TensorFlow import, ONNX import, Spark training, model zoo pretrained networks, and memory workspace tuning.
The stack runs on Windows, Linux, and macOS with hardware support for CUDA GPUs on supported versions, x86 CPUs with AVX variants, ARM CPUs, and PowerPC. Users typically integrate via Maven dependencies rather than a standalone end-user application.
Key features
- MultiLayerNetwork and ComputationGraph APIs
- ND4J tensor math with CPU and CUDA
- SameDiff graph-based autodiff
- DataVec ETL for many data formats
- Keras h5 model import
- TensorFlow frozen .pb import
- Distributed training on Apache Spark
- Python4J embedded CPython bridge
Use cases
- Train neural networks in Java or Scala
- Import Keras models into JVM pipelines
- Run GPU-accelerated deep learning on ND4J
- Load and transform ML datasets with DataVec