LiquidBounce icon indicating copy to clipboard operation
LiquidBounce copied to clipboard

[FEATURE] Switch from Deeplearning4j to Brain4j

Open Lampadina17 opened this issue 2 months ago • 11 comments

Describe your feature request.

I would like to propose adding optional support for Brain4J as a lightweight and high-performance alternative for potential machine learning features within LiquidBounce — such as behavioral pattern detection, predictive automation, or other AI-based modules.

Brain4J is a minimal, flexible, and fast deep learning library for Java, designed to provide a simple way to train and run ML models without the heavy dependencies of traditional frameworks.

Why Brain4J?

  • 🧠 Lightweight: The entire library is under 10 MB, making it far smaller than TensorFlow, PyTorch, or Deeplearning4J.
  • ⚡ Performance-focused: Brain4J includes low-level optimizations, such as SIMD support and inference optimization, offering solid runtime performance even on CPU.
  • 🧩 Easy integration: It’s pure Java and doesn’t require complex native bindings or external dependencies — ideal for LiquidBounce’s modular architecture.
  • 🧮 GPU acceleration (in progress): The development team is currently working on GPU support, which could bring additional performance gains in the future.
  • 🔧 Actively developed: The wiki and roadmap show a well-structured architecture, installation guides, and detailed usage examples, with an open call for community contributions.

Potential Benefits for LiquidBounce

  • Reduce client size by avoiding large ML frameworks.
  • Enable ML-powered features (e.g., pattern recognition, automated behaviors) with minimal overhead.
  • Improve portability for lightweight or embedded environments.
  • Allow experimentation with AI modules in a modular, opt-in fashion.
  • Strengthen collaboration between open-source communities (LiquidBounce × Brain4J).

Additional context

No response

Lampadina17 avatar Oct 07 '25 10:10 Lampadina17

least obvious AI post LOL

DataM0del avatar Oct 07 '25 13:10 DataM0del

AI issue

And this lib is of Java 25. we can't use.

MukjepScarlet avatar Oct 07 '25 16:10 MukjepScarlet

Update: The author of the library downgraded to Java 21.

Lampadina17 avatar Oct 07 '25 18:10 Lampadina17

no

VillainsRule avatar Oct 08 '25 19:10 VillainsRule

this just looks like a straight downgrade of what we currently have doesnt even have gpu accel

localpthebest avatar Nov 17 '25 18:11 localpthebest

this just looks like a straight downgrade of what we currently have doesnt even have gpu accel

you don't need GPU acceleration for smoothing rotations

DataM0del avatar Nov 17 '25 22:11 DataM0del

this just looks like a straight downgrade of what we currently have doesnt even have gpu accel

you don't need GPU acceleration for smoothing rotations

you also dont need ai for it either yet here we are

localpthebest avatar Nov 18 '25 05:11 localpthebest

you also dont need ai for it either yet here we are

Feel free to improve the traditional rotation system and keep it updated.

1zun4 avatar Nov 18 '25 13:11 1zun4

you also dont need ai for it either yet here we are

Feel free to improve the traditional rotation system and keep it updated.

ehh only thing that detects it is polar and polar will false anyways

localpthebest avatar Nov 18 '25 21:11 localpthebest

this just looks like a straight downgrade of what we currently have doesnt even have gpu accel

in the 3.0 it does actually (which is almost finished) + it has more architectures than just simple MLPs (such as LSTMs, RNNs, GCNs, CNNs and Transformers)

xEcho1337 avatar Dec 10 '25 07:12 xEcho1337

this just looks like a straight downgrade of what we currently have doesnt even have gpu accel

in the 3.0 it does actually (which is almost finished) + it has more architectures than just simple MLPs (such as LSTMs, RNNs, GCNs, CNNs and Transformers)

i doubt anyone is going to migrate LB, your best bet if you want it to happen is probably to migrate it yourself

VillainsRule avatar Dec 10 '25 13:12 VillainsRule