# DL4J

**URL:** https://community.konduit.ai/c/dl4j/10.md

[Latest](https://community.konduit.ai/latest.md) · [Categories](https://community.konduit.ai/categories.md)

---

## [Welcome to the DL4J Community!](https://community.konduit.ai/t/welcome-to-the-dl4j-community/34)

<div class="topic-metadata">

**Author:** [@treo](https://community.konduit.ai/u/treo)\
**Replies:** 9\
**Last updated:** [November 23, 2024, 10:14pm UTC](https://community.konduit.ai/t/welcome-to-the-dl4j-community/34 "2024-11-23T22:14:52Z")

</div>

Eclipse Deeplearning4J: Neural Networks for Java/JVM. There are a few things you should know that will help you use our deep-learning framework and engage our community. The best place to start using DL4J is the Quick…

---

## [Do several forward passes before one backward pass](https://community.konduit.ai/t/do-several-forward-passes-before-one-backward-pass/3534)

<div class="topic-metadata">

**Author:** [@Lana](https://community.konduit.ai/u/Lana)\
**Replies:** 4\
**Last updated:** [August 9, 2026, 11:28am UTC](https://community.konduit.ai/t/do-several-forward-passes-before-one-backward-pass/3534 "2026-08-09T11:28:33Z")

</div>

I am looking for a way to manually call a backwards pass on a model. This page implies that there is a sd.execBackwards() function in 1.0.0-M2.1, but it doesn’t seem to actually exist in the library (neither does sd.exe…

---

## [KerasModelImport: simple example of saving a keras model?](https://community.konduit.ai/t/kerasmodelimport-simple-example-of-saving-a-keras-model/3521)

<div class="topic-metadata">

**Author:** [@Lana](https://community.konduit.ai/u/Lana)\
**Replies:** 3\
**Last updated:** [June 18, 2026, 12:57am UTC](https://community.konduit.ai/t/kerasmodelimport-simple-example-of-saving-a-keras-model/3521 "2026-06-18T00:57:17Z")

</div>

Hello, I am trying to import a sequential model trained from keras, following the example at deeplearning4j-examples/tensorflow-keras-import-examples/src/main/java/org/deeplearning4j/modelimportexamples/keras/quickstart…

---

## [Is LSTM working in DeepLearning4J?](https://community.konduit.ai/t/is-lstm-working-in-deeplearning4j/3435)

<div class="topic-metadata">

**Author:** [@MonNomIzNoGoud](https://community.konduit.ai/u/MonNomIzNoGoud)\
**Replies:** 5\
**Last updated:** [May 16, 2026, 3:31pm UTC](https://community.konduit.ai/t/is-lstm-working-in-deeplearning4j/3435 "2026-05-16T15:31:33Z")

</div>

Hello. I was looking for a java NN framework in order to more smooth than predict one time series values based on a dozen or so other time series. I’ve stumbled on SANNET which looked promising but unfortunately the GRU/…

---

## [Dl4j-spring-boot-starter?](https://community.konduit.ai/t/dl4j-spring-boot-starter/3434)

<div class="topic-metadata">

**Author:** [@darius1973](https://community.konduit.ai/u/darius1973)\
**Replies:** 0\
**Last updated:** [April 13, 2026, 5:13pm UTC](https://community.konduit.ai/t/dl4j-spring-boot-starter/3434 "2026-04-13T17:13:49Z")

</div>

Hi DL4J team First of all congrats for this project/initiative. As currently the entire java AI community seems to be hypnoitized by LLM’s gen AI stuff, it is comforting to see that there are still ppl interested in dev…

---

## [Significant Performance Drop in \`nn.fit()\` method After Upgrading to NVIDIA 3060 and CUDA 11.6](https://community.konduit.ai/t/significant-performance-drop-in-nn-fit-method-after-upgrading-to-nvidia-3060-and-cuda-11-6/2902)

<div class="topic-metadata">

**Author:** [@Nasyumaro](https://community.konduit.ai/u/Nasyumaro)\
**Replies:** 8\
**Last updated:** [April 1, 2026, 4:07am UTC](https://community.konduit.ai/t/significant-performance-drop-in-nn-fit-method-after-upgrading-to-nvidia-3060-and-cuda-11-6/2902 "2026-04-01T04:07:47Z")

</div>

I have been using 1660ti and cuda10.2 with DL4J 1.0.0beta7. We have now changed to 3060, cuda11.6, and DL4J 1.0.0M2.1. memo The CUDA version was increased because the GPU is not compatible with 10.2. The reason we r…

---

## [When will the new stable version be released?](https://community.konduit.ai/t/when-will-the-new-stable-version-be-released/3428)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 4\
**Last updated:** [March 20, 2026, 8:08am UTC](https://community.konduit.ai/t/when-will-the-new-stable-version-be-released/3428 "2026-03-20T08:08:43Z")

</div>

With deep learning progressing so quickly, it’s been ages since the last stable update. I can’t wait for the new stable release.

---

## [Keras Import: java.lang.String cast to java.util.List](https://community.konduit.ai/t/keras-import-java-lang-string-cast-to-java-util-list/3412)

<div class="topic-metadata">

**Author:** [@kelauder](https://community.konduit.ai/u/kelauder)\
**Replies:** 4\
**Last updated:** [March 4, 2026, 11:53pm UTC](https://community.konduit.ai/t/keras-import-java-lang-string-cast-to-java-util-list/3412 "2026-03-04T23:53:01Z")

</div>

I’m trying to import a ConvNet that was created it Python. I tried both separated Json model with H5 weights and combined H5 model. The java code is: String modelPath = "Model.h5"; ComputationGraph model =…

---

## [Build from source for CUDA 12.8 error](https://community.konduit.ai/t/build-from-source-for-cuda-12-8-error/3414)

<div class="topic-metadata">

**Author:** [@manvendra-singh-2709](https://community.konduit.ai/u/manvendra-singh-2709)\
**Replies:** 5\
**Last updated:** [March 3, 2026, 5:43am UTC](https://community.konduit.ai/t/build-from-source-for-cuda-12-8-error/3414 "2026-03-03T05:43:48Z")

</div>

I want to build DL4J from source for my cuda 12.8 but it gives this error: \[ERROR\] Failed to execute goal org.bytedeco:javacpp:1.5.11:build (javacpp-cppbuild-validate) on project libnd4j: Execution javacpp-cppbuild-vali…

---

## [How to add a BatchNorm layer after a 1D CNN layer?](https://community.konduit.ai/t/how-to-add-a-batchnorm-layer-after-a-1d-cnn-layer/3381)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 3\
**Last updated:** [July 31, 2025, 10:41am UTC](https://community.konduit.ai/t/how-to-add-a-batchnorm-layer-after-a-1d-cnn-layer/3381 "2025-07-31T10:41:36Z")

</div>

How can I add a BatchNormalization layer after a 1D CNN layer? The BatchNormalization layer is designed for 2D CNNs by default, and adding it directly after a 1D CNN layer throws an error complaining about incompatible …

---

## [S01.oss.sonatype.org timeout](https://community.konduit.ai/t/s01-oss-sonatype-org-timeout/3379)

<div class="topic-metadata">

**Author:** [@Booker](https://community.konduit.ai/u/Booker)\
**Replies:** 6\
**Last updated:** [July 30, 2025, 8:34pm UTC](https://community.konduit.ai/t/s01-oss-sonatype-org-timeout/3379 "2025-07-30T20:34:09Z")

</div>

\[INFO\] e\[1m--------------------------------\[ war \]---------------------------------e\[m \[INFO\] Downloading from ossrh: https://s01.oss.sonatype.org/content/repositories/snapshots/org/eclipse/collections/eclipse-collectio…

---

## [Suggestions Thank you](https://community.konduit.ai/t/suggestions-thank-you/3378)

<div class="topic-metadata">

**Author:** [@MintakaB](https://community.konduit.ai/u/MintakaB)\
**Replies:** 1\
**Last updated:** [July 20, 2025, 10:21pm UTC](https://community.konduit.ai/t/suggestions-thank-you/3378 "2025-07-20T22:21:14Z")

</div>

Dear, I have an extensive application using DL4J and I have a few comments on the API to improve its integration. I am actually very happy with the performance and general approach to solve ML use cases on time series. …

---

## [Vectorizing with word2vec/paragraphvectors](https://community.konduit.ai/t/vectorizing-with-word2vec-paragraphvectors/3361)

<div class="topic-metadata">

**Author:** [@neyanog](https://community.konduit.ai/u/neyanog)\
**Replies:** 5\
**Last updated:** [July 4, 2025, 9:58am UTC](https://community.konduit.ai/t/vectorizing-with-word2vec-paragraphvectors/3361 "2025-07-04T09:58:58Z")

</div>

I need to vectorize text for multi-label classification and for this I thought about using Mulan (from what I read DL4J does not do multi-label classification). Is it possible to do vectorization using word2vec or paragr…

---

## [Can we trained a chat bot model using DL4J?](https://community.konduit.ai/t/can-we-trained-a-chat-bot-model-using-dl4j/3375)

<div class="topic-metadata">

**Author:** [@rajatpal](https://community.konduit.ai/u/rajatpal)\
**Replies:** 1\
**Last updated:** [July 4, 2025, 9:58am UTC](https://community.konduit.ai/t/can-we-trained-a-chat-bot-model-using-dl4j/3375 "2025-07-04T09:58:22Z")

</div>

Can we trained a chat bot model using DL4J ?

---

## [How to know if avx512 in using?](https://community.konduit.ai/t/how-to-know-if-avx512-in-using/3366)

<div class="topic-metadata">

**Author:** [@Booker](https://community.konduit.ai/u/Booker)\
**Replies:** 6\
**Last updated:** [June 17, 2025, 11:49am UTC](https://community.konduit.ai/t/how-to-know-if-avx512-in-using/3366 "2025-06-17T11:49:49Z")

</div>

09:04:36.249 \[main\] INFO org.nd4j.linalg.factory.Nd4jBackend – Loaded \[CpuBackend\] backend 09:04:36.578 \[main\] INFO org.nd4j.nativeblas.NativeOpsHolder – Number of threads used for linear algebra: 8 09:04:36.580 \[main\]…

---

## [Empty features in time series sequences](https://community.konduit.ai/t/empty-features-in-time-series-sequences/3365)

<div class="topic-metadata">

**Author:** [@xcocco](https://community.konduit.ai/u/xcocco)\
**Replies:** 0\
**Last updated:** [May 22, 2025, 1:48pm UTC](https://community.konduit.ai/t/empty-features-in-time-series-sequences/3365 "2025-05-22T13:48:23Z")

</div>

I’m trying to build a Recurrent Neural Network for a regression problem, my dataset (csv file with a header) has this structure f1,f2,f3,f4,label and I’m using CSVNLinesSequenceRecordReader to read 5 lines to group into …

---

## [DL4J for Termux](https://community.konduit.ai/t/dl4j-for-termux/3349)

<div class="topic-metadata">

**Author:** [@LobsterMan](https://community.konduit.ai/u/LobsterMan)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 9:14am UTC](https://community.konduit.ai/t/dl4j-for-termux/3349 "2025-04-05T09:14:40Z")

</div>

Does DL4J now run on Android Termux? It was several years ago I tried to write actual code using DL4J on Termux’s Java, but although it would compile, running the compiled code would always give an error about some depe…

---

## [Is DL4J suitable for fine-tuning hugging face deep learning models?](https://community.konduit.ai/t/is-dl4j-suitable-for-fine-tuning-hugging-face-deep-learning-models/3346)

<div class="topic-metadata">

**Author:** [@amano](https://community.konduit.ai/u/amano)\
**Replies:** 7\
**Last updated:** [April 1, 2025, 4:34am UTC](https://community.konduit.ai/t/is-dl4j-suitable-for-fine-tuning-hugging-face-deep-learning-models/3346 "2025-04-01T04:34:35Z")

</div>

The latest hugging face deep learning models are in safetensors format. I’m new to machine learning and deep learning. I understand basic high-level concepts, but I don’t know math or technical details. For example, I k…

---

## [Predicting with a keras model: data types and byte orders](https://community.konduit.ai/t/predicting-with-a-keras-model-data-types-and-byte-orders/3348)

<div class="topic-metadata">

**Author:** [@Phobrain](https://community.konduit.ai/u/Phobrain)\
**Replies:** 2\
**Last updated:** [March 31, 2025, 10:09pm UTC](https://community.konduit.ai/t/predicting-with-a-keras-model-data-types-and-byte-orders/3348 "2025-03-31T22:09:29Z")

</div>

I verified that I need to reverse byte order of predictions in keras python to be read in java. Now that I’ve loaded a trained .keras model in DL4J and made some predictions, these naive questions arise: Is byte order …

---

## [TicTacToeData Op Code Error](https://community.konduit.ai/t/tictactoedata-op-code-error/3338)

<div class="topic-metadata">

**Author:** [@mrenzi](https://community.konduit.ai/u/mrenzi)\
**Replies:** 1\
**Last updated:** [March 14, 2025, 1:37am UTC](https://community.konduit.ai/t/tictactoedata-op-code-error/3338 "2025-03-14T01:37:28Z")

</div>

Hi - I am trying to get the TicTacToe dl4j example working. Since I don’t have the data file example, I’m using TicTacToeData (part of the example package) to generate the data file. It is failing with an op code excep…

---

## [Newbie. Need info on YOLO](https://community.konduit.ai/t/newbie-need-info-on-yolo/3336)

<div class="topic-metadata">

**Author:** [@galera](https://community.konduit.ai/u/galera)\
**Replies:** 1\
**Last updated:** [February 24, 2025, 9:54pm UTC](https://community.konduit.ai/t/newbie-need-info-on-yolo/3336 "2025-02-24T21:54:46Z")

</div>

I am newbie using deepLearning4J. I try to develop an application in java looking for face of animals (birds, mamals, …) and i see that we can just access to TinyYOLO which contains only 20 classes. My question is: How t…

---

## [How to perform mixed-precision training?](https://community.konduit.ai/t/how-to-perform-mixed-precision-training/3335)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 1\
**Last updated:** [February 24, 2025, 3:36am UTC](https://community.konduit.ai/t/how-to-perform-mixed-precision-training/3335 "2025-02-24T03:36:16Z")

</div>

May I ask where I can find an example of mixed precision training? I converted the feature array and label array to half precision, and set the data type to half precision in the network configuration, but it fails to co…

---

## [Cant find out how to fix DL4JInvalidInputException](https://community.konduit.ai/t/cant-find-out-how-to-fix-dl4jinvalidinputexception/3328)

<div class="topic-metadata">

**Author:** [@cho](https://community.konduit.ai/u/cho)\
**Replies:** 5\
**Last updated:** [February 21, 2025, 6:23am UTC](https://community.konduit.ai/t/cant-find-out-how-to-fix-dl4jinvalidinputexception/3328 "2025-02-21T06:23:07Z")

</div>

So I’m new to machine learning and I’ve tried to begin training a model but have been getting the org.deeplearning4j.exception.DL4JInvalidInputException error for a day or two. I’ve tried setting builder.setInputType(In…

---

## [Can DL4J export an ONNX format model?](https://community.konduit.ai/t/can-dl4j-export-an-onnx-format-model/3256)

<div class="topic-metadata">

**Author:** [@Glowberry](https://community.konduit.ai/u/Glowberry)\
**Replies:** 3\
**Last updated:** [February 20, 2025, 1:54pm UTC](https://community.konduit.ai/t/can-dl4j-export-an-onnx-format-model/3256 "2025-02-20T13:54:09Z")

</div>

I want to export the ONNX format model from MultiLayerNetwork, but only multiLayerNetwork.save(new File("model.zip")); support, and it can only export a zip file, not ONNX. I trained the model and want to use in anothe…

---

## [Need a neural network configuration for pong / Atari games](https://community.konduit.ai/t/need-a-neural-network-configuration-for-pong-atari-games/3316)

<div class="topic-metadata">

**Author:** [@thneeb](https://community.konduit.ai/u/thneeb)\
**Replies:** 6\
**Last updated:** [February 5, 2025, 9:59am UTC](https://community.konduit.ai/t/need-a-neural-network-configuration-for-pong-atari-games/3316 "2025-02-05T09:59:16Z")

</div>

I tried a lot of different WeightInits and Activation functions, but I don’t get the network to learn. The gradients are from the initialization in my opinion very small 1e-3 to 1e-5. The starting q-values are okay betwe…

---

## [Missing package](https://community.konduit.ai/t/missing-package/3306)

<div class="topic-metadata">

**Author:** [@Ferra](https://community.konduit.ai/u/Ferra)\
**Replies:** 6\
**Last updated:** [January 23, 2025, 10:14pm UTC](https://community.konduit.ai/t/missing-package/3306 "2025-01-23T22:14:13Z")

</div>

I always get the error of: Error occurred during initialization of boot layer java.lang.module.FindException: Error reading module: C:\\Users\\Ferra.m2\\repository\\org\\deeplearning4j\\deeplearning4j-modelimport\\1.0.0-M2\\de…

---

## [Not able to train my Connect4 Network](https://community.konduit.ai/t/not-able-to-train-my-connect4-network/3313)

<div class="topic-metadata">

**Author:** [@thneeb](https://community.konduit.ai/u/thneeb)\
**Replies:** 1\
**Last updated:** [January 23, 2025, 10:11pm UTC](https://community.konduit.ai/t/not-able-to-train-my-connect4-network/3313 "2025-01-23T22:11:57Z")

</div>

Hello together. I am new here and new to Neural Networks and new to dl4j. I am interested in Deep Reinforcement Learning, but the structure which used to be with dl4j is gone :frowning: . But I created my own framework …

---

## [Working with arrays of data](https://community.konduit.ai/t/working-with-arrays-of-data/3299)

<div class="topic-metadata">

**Author:** [@INotSleep](https://community.konduit.ai/u/INotSleep)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 7:37am UTC](https://community.konduit.ai/t/working-with-arrays-of-data/3299 "2024-12-12T07:37:15Z")

</div>

Hello everyone! I want to create some NN, that will process array of data and return new array of data. How i can do that? For example: INPUT 1000 elements 9 features each OUTPUT: 10 elements 2 features each

---

## [How to dynamically load the required batch into GPU memory?](https://community.konduit.ai/t/how-to-dynamically-load-the-required-batch-into-gpu-memory/3290)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 2\
**Last updated:** [November 26, 2024, 1:05am UTC](https://community.konduit.ai/t/how-to-dynamically-load-the-required-batch-into-gpu-memory/3290 "2024-11-26T01:05:50Z")

</div>

When the dataset is large, memory capacity is sufficient, but GPU memory (VRAM) is limited, how to efficiently utilize VRAM? Store the sample data in memory first, and during training, dynamically load the required batc…

---

## [How do we get a new release of deeplearning4j?](https://community.konduit.ai/t/how-do-we-get-a-new-release-of-deeplearning4j/3289)

<div class="topic-metadata">

**Author:** [@matthewcummings](https://community.konduit.ai/u/matthewcummings)\
**Replies:** 2\
**Last updated:** [November 25, 2024, 5:13am UTC](https://community.konduit.ai/t/how-do-we-get-a-new-release-of-deeplearning4j/3289 "2024-11-25T05:13:01Z")

</div>

I need a new release with updated dependencies, but I see that there hasn’t been a new public release since https://mvnrepository.com/artifact/org.deeplearning4j/deeplearning4j-core/1.0.0-M2.1. I only need a build with …

[Next page](https://community.konduit.ai/c/dl4j/10.md?page=1)
