# Has Julia met your need for AI and ML?

**URL:** https://discourse.julialang.org/t/has-julia-met-your-need-for-ai-and-ml/119818
**Category:** New to Julia
**Created:** [September 24, 2024, 4:44pm UTC](https://discourse.julialang.org/t/has-julia-met-your-need-for-ai-and-ml/119818 "2024-09-24T16:44:11Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)
#### Post date: [September 24, 2024, 5:11pm UTC](https://discourse.julialang.org/t/has-julia-met-your-need-for-ai-and-ml/119818/5 "2024-09-24T17:11:09Z")

</div>

The reason Python is used, is because it’s a good interface to high-speed code written in other fast languages. Julia can also be a good interface, and that faster language. Training massive AI/ML models relies on libraries like Microsoft’s DeepSpeed (“[Python 69.0%](https://github.com/microsoft/DeepSpeed/search?l=python) [C++ 20.3%](https://github.com/microsoft/DeepSpeed/search?l=c%2B%2B)[Cuda 9.8%](https://github.com/microsoft/DeepSpeed/search?l=cuda)”, Julia could theoretically have replaced all the languages, the numbers are for source code, for runtime about 0% is Python), for distributed training, this is only of interest to big companies that can afford to do massive training of AI models costing millions of dollars.

AI is divided into many subfields, Machine learning (ML), natural language processing (NLP), neural networks/deep learning, and large-language models (LLMs) (what I had in mind for mainstream, fuelling so called chatbots like ChatGPT), text-to-image or video models (like LLMs based on transformer models), computer-vision, reinforcement learning, chess and poker playing AI etc.

Mainstream AI is transformer models, a type of machine learning application. The mainstream is already going to Mamba and other variants, and transformer models are being upgraded to KAN-based:

> **[Kolmogorov-Arnold Transformer](https://arxiv.org/abs/2409.10594)**
>
> Transformers stand as the cornerstone of mordern deep learning. Traditionally, these models rely on multi-layer perceptron (MLP) layers to mix the information between channels. In this paper, we introduce the Kolmogorov-Arnold Transformer (KAT), a...

From yesterday:

> **[TransUKAN:Computing-Efficient Hybrid KAN-Transformer for Enhanced Medical...](https://arxiv.org/abs/2409.14676)**
>
> U-Net is currently the most widely used architecture for medical image segmentation. Benefiting from its unique encoder-decoder architecture and skip connections, it can effectively extract features from input images to segment target regions. The...

> **[Training a KANFormer: KAN's Are All You Need?](https://wandb.ai/byyoung3/mlnews2/reports/Training-a-KANFormer-KAN-s-Are-All-You-Need---Vmlldzo3ODY3ODUz)**
>
> We will dive into a new experimental architecture, replacing the MLP layers in transformers with KAN layers! . Made by Brett Young using Weights & Biases

> **[GitHub - chenziwenhaoshuai/Vision-KAN: KAN for Vision Transformer](https://github.com/chenziwenhaoshuai/Vision-KAN)**
>
> KAN for Vision Transformer

While you already see KAN in “100.0% Python”, that’s sort of white lie, if you look at the dependencies “the requirements.txt” file, i.e. the heavy lifting is always done by non-Python, faster languages like C, or increasingly Julia.

If you’re a user of any of the AI models, or code, then Python is a good option, if you want to develop future best AI, then Julia is the best option.

For beginners I recommend this book (written by then 15-year old genius):

> **[Tanmay Teaches Julia for Beginners: A Springboard to Machine Learning for All...](https://www.amazon.com/Tanmay-Teaches-Julia-Beginners-Springboard/dp/1260456633)**
>
> Tanmay Teaches Julia for Beginners: A Springboard to Machine Learning for All Ages \[Bakshi, Tanmay\] on Amazon.com. \*FREE\* shipping on qualifying offers. Tanmay Teaches Julia for Beginners: A Springboard to Machine Learning for All Ages

I bought it, and this one also seems good:

> **[Julia for Machine Learning: 9781634628136: Computer Science Books @ Amazon.com](https://www.amazon.com/Julia-Machine-Learning-Zacharias-Voulgaris/dp/1634628136)**
>
> Julia for Machine Learning: 9781634628136: Computer Science Books @ Amazon.com

---

_[View the full topic](https://discourse.julialang.org/t/has-julia-met-your-need-for-ai-and-ml/119818)._
