Guides / tips / primers for Nx?

Does anyone have any guides, tips or primers for Nx (or ML in general)?

I guess specifically things that would be helpful before reading Genetic Algorithms in Elixir. Or does the book contain everything you might need? (If anyone’s interested we will probably run a book club for it soon - PM me if you’re interested, I should have a few copies to give away!)


Hey @AstonJ I have written a few posts on the DY blog:

I also have some posts on Medium through Pragmatic Bookshelf: Sean Moriarity – Medium

And some tips on my blog:

Finally, there may be something in the works through everybody’s favorite publisher coming out sometime soon :slight_smile:


I’m also in the same boat: I’m really interested in everything ML related, but I’m “just an average trained programmer”, who has forgotten all about matrixes in highschool/university.

Although i really really like the content you’re creating @seanmor5, I can’t seem to grok most of it, given my modest background. Anything targetted to mere mortals would be great. Even if it’s a one year course, I’d probably take it, on my own pace.

1 Like

An nice, I was wondering when we’d be seeing more books on the topic! Can you share whether it’s going to be a book best read before/after Genetic Algorithms in Elixir?

Thanks also for the links to your blog posts, in terms of reading order, do you think it’s worth approaching something like this:

Thanks also for all your work on this aspect of Elixir - I have no doubt it’s going to play a big role in Elixir’s continued success :003:


A post was split to a new topic: Which GPUs can you used with Nx/Axon/etc?

Industry standard advice for getting up to speed as quick as possible on ML is the free fastai course: I’ve heard it’s required for new OpenAI engineers. I found it to be very helpful in explaining most key concepts.

The Hugging Face transformers course is also a great follow-up: Introduction - Hugging Face Course. Given that Bumblebee allows you to use pre-trained Hugging Face models, it’s probably a particularly helpful follow-up to the fastai course.

Of course you’re stuck with using Python if you follow these tutorials but it’s probably the best way to start to get a conceptual understanding of all this stuff before using Nx/Axon/Bumblebee.


I got some familiarity with ML via two books, one by The Pragmatic Programmer and one by no starch press. The first uses Python and the second is a visual approach.
Of course, they have nothing to do with Nx… Maybe @seanmor5 will come with a new book (wishful thinking). :smiley:

1 Like

Hey @AstonJ
I’m definitely interested to join the book club.

Then, I can only second the book suggested by @bdarla , “Programming Machine Learning”. I’m almost finished it (16 out 20 chapters) and I rewritten all the examples with Nx/Axon so far (althought, I suspect not the best ML code :grimacing:).


Thanks Michael that’s very helpful!

Did you miss his post @bdarla :wink: Maybe in the meantime you can join us for the book club on his first book Genetic Algorithms in Elixir (PragProg) in preparation for it :003:

Awesome, have added you to the list - will PM you when we’ve got enough people interested in it :023:

I’m kinda interested in the book club as well :slight_smile:
It would depend on when you plan on doing it, but if it fits my schedule, I’d love to re-read the book and to actually make things with current Nx tooling

1 Like

When do you start the book club? If it’s in February I can join. I got the book and probably only read a chapter and a half so far.

1 Like

@polvalente @code-shoily - awesome, have added you both to the list :023:

We’ll probably start the Tailwind book club first (let me know if you want to join that as well!) and so hope to get this one started some time after that depending on when we reach at least 10 people interested (currently at 6 for this book) :smiley:

1 Like

I have read the tw book already and tbh not a big fan of tw (for my own personal taste, nothing wrong with tw, and the book is great! Remember that DevTalk thread I started?), but yes am totally up for Genetic Algorithm one!

1 Like

This message has just answered a question I preparing to send: how to get going using nx then axon to get into AI using elixir.

I also have another project to run in parallel and that is to make a good LFE interface to these applications. For me there is no getting away from the parentheses :wink:


I would love to join the club too! However, I doubt I will have the time to actually be active in the club or even complete the book in a reasonable amount of time.

1 Like

Glad it was of help Robert - we shall look forward to seeing lfe> (Elixir.IO:puts "Cool LFE Nx Interfaces!") :003:

Fancy joining us for the book club? I can get you a copy :blush:

I think we might be starting it around February… let me know if that suits you and I’ll add you to the list! :smiley:

I’m only free late/post March :frowning: . I guess I’ll join anyway. I hope being “dormant” for the first 2 months won’t be a problem!

1 Like

I have already ordered the book so I will try to join the book club.

1 Like

Awesome, I have added you and @Benjamin-Philip to the list :023:

Anyone else interested let me know - you’ll be in great company!^^ :003:

I’d love to join the book club :slight_smile:

1 Like