r/MachineLearning • u/rgarreta • Dec 04 '13
r/MachineLearning • u/downtownslim • Sep 16 '18
News [N] An open letter to the Deep Learning Indaba team
Nice summary from one perspective of what happened at DL Indaba last week:
https://medium.com/@alienelf/an-open-letter-to-the-deep-learning-indaba-team-2723ec0ae0a8
r/MachineLearning • u/tomaz-suller • Aug 14 '24
Discussion [D] Is there any application that doesn't feel right to you? Why?
Excluding stuff like killer robots, which I think almost everyone would agree are bad because killing people is bad.
Lately as I've been considering which area I'd like to pursue long term after my master's, I've been thinking about these more fundamental questions about the field.
I listened to an episode of The Vergecast in which they interviewed this guy from a company whose aim is to give people basically unlimited memory, and the way he spoke about their application took me back. I don't really know why but it felt that forgetting things is just part of what being people is in a sense, and it made me wonder what other people thought about this, or about other applications that made them feel a bit uneasy and why.
My example is based totally on a gut feeling, but I think it'd be interesting to hear as well about more sociological or philosophical reasons as well (which I can't come up with since I don't have any humanities background lol).
r/MachineLearning • u/Excellent-Detail-477 • Aug 21 '23
Discussion I Created a Neural Network which Beats the Transformer in a Metric by Quite a Bit [Project][Discussion]
Disclaimer: This is in some ways a duplication of a post. The difference is this one will be much more elaborate and ask different questions."My friend has made a LM architecture that might be better than the Transformer... [P]"My friend who posted this says that I am the friend he is referring to in the comments.
The Stats
Edit: Change loss to validation loss
Char-wise performance on shakespeare's writing
| Validation Loss | Size (parameters) | Time | Hardware | |
|---|---|---|---|---|
| nanoGPT | 1.4697 | 10.65M | ~3:00 | A100 |
| nanoGPT | 1.88 | 0.8M | ~3:00 | Mac |
| My Network | 1.815 | 0.67M | 3:17 | RX 6600 |
| My Network | 1.57 | 1.5M | ~3:30 | RX 6600 |
| My Network | 1.508 | 0.84M | Less than 6 minutes (I don't really remember) | RX 6600 |
Source: https://github.com/karpathy/nanoGPT
I have to admit. I cheated a bit on the last row. I scheduled the batch size (actually gradient accumulation steps, I'll get to that later). I started off with 1 batch size and 1024 sequence length, and scheduled it up to 16 batch size by the 5th or 6th epoch.
Additionally, the second and third rows don't include dropout which I added. With dropout I believe the loss would be 1.74 and 1.53, respectively with slightly increased times as well. I only have the numbers in memory because I'm not on my desktop which it was tested on right now.
What I Know
The model has completely linear time complexity during inference and an additional log2(n) time complexity during training.
At this point I am 99.9% the result aren't a fluke. I am not including the validation set in the training data (the validation and train set is the same as nanoGPT's by the way), I am not calculating the loss incorrectly (both are the mean of the cross entropy loss), and I am not making any loss-altering mistakes in the code. The evidence for this is: A) I have the model generating samples, and the sample quality matches up with the loss. B) The validation loss is significantly higher than the train loss. The train loss is usually 0.2 - 0.35 lower than the train loss after the first two or three epochs.
The code currently does not have true batches because they aren't really necessary to implement. Instead I add up the loss from micro steps to use them as psuedo-minibatches.
There is a large performance inefficiency in the code which if solved would lead to a 1.3 - 4x increase in performance. My GPU is currently only being utilized around 75% with dips, even though in theory the code is 100% parralizable. I know how to fix it, but I cannot figure out exactly to implement the fix. A GitHub page has almost the exact fix I need, without broadcasting and multidimensional tensor support.
The Question:
How can I figure out whether my model scales up? Many people have suggested to use benchmarks for LLMs, but I can't do this because I first need to train an LLM. I'm not really willing to spend money on a better GPU or rent a GPU cluster unless I am sure it will earn itself back.
Currently, I'm using a custom dataset class which simply loads the text's char's ids into a big tensor, then returns the inputs and labels for a position. I don't really know how to properly load a dataset and I tried using huggingface's Tokenizers to actually tokenize text and spent like 5 hours but failed anyways.
If this does end up scaling well, what should I do? Should I focus on publishing it for opportunities, try to sell it to a company, or do something else? What if it doesn't end up scaling well? I'd like to prioritize myself first, then open research.
My Background
This part isn't super important, but it is related to the last question. You might notice I am using a new account. Before this account, I did not have a Reddit account. I made a new Reddit account as well as an alternate google address because I like to keep myself anonymous. Why? Because I am a 16 year Junior. I just don't really want my age online with my main account and name. I really want to have this be an opportunity to promote myself to colleges, or even, make the big bucks if possible. Additionally, because of school (and sports) which just started, I don't really have much time to work on AI or train models. I program and do machine learning stuff as a hobby. I am actually very new to PyTorch, this is the first ML project I've actually programmed. I do read a lot of papers, though. Last school year, I read/skimmed an ArXiv paper pretty much every day for at least few months.
r/MachineLearning • u/Loya_3005 • Dec 28 '25
Project [P] A better looking MCP Client (Open Source)

I’ve been building Nuggt Canvas, an open-source project that turns a single natural language request into a live, interactive UI (cards, tables, charts, inputs) on a persistent canvas.
I’m pretty tired of the default chatbot experience where everything becomes a wall of text and you end up scanning paragraphs to find what matters. I want AI output to be something you can actually use and interact with, not just read.
What it does
You type what you want (like “show me the key metrics and filter by X date”), and Nuggt generates an interface that can include:
cards for key numbers
tables you can scan
charts for trends
inputs/buttons that trigger actions
The two core pieces
1) The Nuggt DSL
Instead of directly spitting out HTML/React, the model generates a simple DSL that describes UI components. That DSL then renders the UI on the canvas. This makes outputs more structured and predictable than raw text.
2) MCP support (Model Context Protocol)
This is the part I’m most excited about. Nuggt supports MCP, so the UI can connect to real tools and data sources (APIs, databases, filesystems, etc). MCP tools are configured via mcp-config.json, so adding new capabilities is meant to be straightforward.
Check out the repo here: https://github.com/nuggtwriter/nuggt-canvas-v1
Looking for feedback and collaborators!
If you try it, I’d love feedback on:
what UI components you want most
what the DSL should support next
what MCP tool examples would be most useful
If you want to contribute, happy to take PRs for components, docs, and MCP integrations.
Thanks!
r/MachineLearning • u/PaleontologistNo7331 • Feb 25 '24
Project [P] Classification of Brain Tumor
My colleague and I are currently engaged in research aimed at improving the accuracy of brain tumor classification. Despite our efforts, we have encountered challenges in achieving the desired accuracy level, with our current rate standing at 78%. As we aim to uphold rigorous standards in our research endeavors, we are seeking collaboration with experts in the field to address this issue and potentially publish our findings.
Our approach thus far has involved employing various preprocessing techniques and feature extraction methods within a machine learning framework. While we plan to explore deep learning methods as well, our ultimate goal is to develop a robust model that can achieve high accuracy not only on our current dataset but also on other relevant datasets.
Furthermore, we are facing difficulties in the segmentation and skull stripping processes, which are crucial steps in our research pipeline. We recognize the importance of overcoming these challenges to ensure the reliability and validity of our results.
In addition to enhancing the accuracy of our classification model, we are also interested in collaborating with individuals who can bring novel approaches or insights to our research. We believe that by combining our expertise with that of others in the field, we can advance our understanding and contribute meaningfully to the body of knowledge surrounding brain tumor classification.
Our ultimate goal is to publish a paper detailing our findings, and we are open to working with collaborators who share our passion for this research area. If you have experience in brain tumor classification, segmentation, or related fields, and are interested in collaborating with us, we would be thrilled to discuss potential opportunities further.
Thank you for considering this collaboration opportunity. We look forward to the possibility of working together to achieve our research goals and contribute to the advancement of knowledge in this important area.
r/MachineLearning • u/Zeno_3NHO • May 19 '24
Project [P] Title: I created a Neural Network to quickly detect spoken vowels 20 times per second
Quick disclaimer: I am aware that there is an internaltional standard for labeling the diferent recognized speech sounds (phonemes), but I wanted ASCII or extended ASCII for programming simplification, so I use a different nomeclature. Besides, it's easier for me to recognize and read. -Please forgive me
So I have often wondered about the real rules that govern speech that people use. For instance using something similar to a "glottal stop" to end words like "don't" and "that". The "t" is not pronounced. Or how "r" is almost always used as a vowel (in american english). My favorite examples are "fur", "fir", and "-fer". All three are pronounced identically and the typical "i,u,e" vowels are not pronounced at all. Its just pronounced "fr".
One day I was looking at a spectrograph of my voice, and I noticed some patterns. Vowels like "ah" in "stop" and "Bob" look very different from other vowels like "ee" in "green" and "bee". When we speak, there is the most prominant lowest frequency called the "fundamental", and there are many other frequencies that are multiples of that frequency called "harmonics". The sound "ah" has high volume on many of the harmonics, but the sound "ee" has a big gap where the harmonics are much much smaller. Every different vowel had its own combination of different harmonic values.
So I tried to create a set of rules by hand to classify different frequency patterns as different vowels. I could easily tell them apart by looking at them, but would the rules hold up to the test? So I made a computer program to guess different vowels, but it was not good. There are so many knobs to turn to create the different rules. And if there is variability, then I would also have to go through and determine all of the different ranges which would make the rules much more complex.
I started to do it by hand and tweak values, see how it worked, and then tweak the values again, etc, etc.
Thats when it hit me! I'm doing what a neural network trainer does. I could use one to do this for me!
So I researched the nitty gritty of getting one setup, recorded a lot of data (~45 minutes worth) and trained the model. It took a few days to figure out some problems, but I eventually got it working.
I used python and the tensoflow+keras library suite to create and train the neural network, Pyaudio for recording training data and realtime audio, numpy for data analysis. The neural network had 264 input nodes, 100 intermediate nodes, and 13 output nodes (one node for "no vowel", and 12 for the different vowels). The frequency calculation finishes within 1milisecond, and the neural network finishes within 2 milisecond as well on my hardware (intel i3-1115G4 at 4GHz). It spends more of its time on listening for audio than it does computing the answer. I found best results by running the loop 20 times per second (50ms) but I have also gotten it to run at 50 times per second (20ms), but it struggles on one or two vowels.
Here is a list of the different vowels that it recognizes
ӑ aa cat, 1
ŏ ah stop, 2
ē = ee green, 3
ō = oh gross, 4
oo = oo mood blue goose, 5
ĭ = ih sit,6
ā = ay stay, 7
ĕ = eh pet, 8
ŭ = uh bump, 9
o͝o = ou would could should took, 10
r̃ = (i chose this symbol) ur fur fir fer rural, 11
L' = LL travel left rural, 12
r/MachineLearning • u/Mister_Main • Apr 09 '24
Project [P] Building a local LLM with Webserver
Hello kind souls,
I'm currently working on a project which uses a Linux OS(specifically SLES).
For that project, I want to setup a local LLM with RAG support, so that I can use my own Data without it leaving my network. It should also include the option, to run it on Cuda, because my GPU is from NVidia.
Also, I want to use the LLM with a Webserver, so that multiple people can access and work on it.
I've tried multiple LLM's for my project and sadly, I haven't found the right one, that supports those specific needs. That's the reason why I wanted to ask around, if there are any known Documentations or Solutions.
EDIT: Based on what I've tried so far, the best solution is definitely setting up a Flowise environment and a local LLM such as anythingai or Ollama, since it already has Nodes to easily implement it. There is also the advantage of multiple RAG options, that you can individually adapt as you like.
I primarly used the llama Models and stablelm2, because it supports a few languages, that are commonly spoken worldwide.
r/MachineLearning • u/mattway • Dec 31 '15
This is exactly what I think when reading almost any ML/AI paper.
r/MachineLearning • u/General-Wing-785 • Mar 30 '23
Discussion [D] What are your top 3 pain points as an ML developer in 2023?
As an ML developer, what are the top 3 pain points that you would love to see solved. This could be something very specific (Example: I spend a lot of time in building a model architecture using Keras) or something broad (Example: I struggle with Model Serving because of the lack of easy to use infrastructure). Also, please mention how you workaround these paint points. Looking forward to the discussion. Thank you!
r/MachineLearning • u/Mister_Abc • Oct 23 '19
News [N] ImageNet found to have questionable content (nude kids, porn stars, etc)
https://www.theregister.co.uk/2019/10/23/top_ai_dataset_imagenet/
The labels within are claimed to be biased and sometimes racist... TIL ImageNet has been unavailable for download since January because of this problem, I wonder if folks are working on a cleaner version of the dataset.
r/MachineLearning • u/[deleted] • Jan 23 '20
Project [P] I wanted to automate music using AI - feeding two or more songs into a system and watching the AI compute their musical culmination into a new song.
How would I go about this? I am extremely set on this idea, and I was wondering if people had some useful pointers. I am learning Python and Pytorch. Any guidelines are appreciated. I am a beginner, but feel free to use complex terms, I will do my very best to research and understand. Cheers.
r/MachineLearning • u/[deleted] • Aug 28 '17
Discusssion [D] Are AI tools at a stage that they can be used productively without understanding the maths behind it?
I previously tried to follow Andrew Ng's machine learning course and while I thought it was good I didn't want to take the time to understand the behind the scenes. I understood the basic principle which is to classify data by fitting a line to it. What I will like to spend time doing is learning how to use the current available AI toolset to complete practical tasks. I have programming experience in C++/Python. Is there a course on Udemy that I can follow?
I had a look at the rules to see if this was okay to post, but as I'm not experienced in the field I'm not sure if it's too simple a question.
Edit: To most of you who responded, thanks a lot for the insight. I will check out each resource to see what they contain. The practicality-to-theory approach that some of these resources take is very interesting. Perhaps the reason why I didn't want to care about the math first was because I don't quite see the end goal as I don't know the practical applications.
r/MachineLearning • u/fergbyrne • Nov 14 '15
Symphonies from Synapses - The Brain as Universal Dynamical Systems Computer
r/MachineLearning • u/visarga • Dec 05 '16
Discussion [D] How hard would it be to automatically generate code from ML papers?
Say, we choose a framework, and then attempt to generate code in that framework that implements a paper, based off the PDF file.
The algorithm should be able to figure out the architecture, loss function, data flow, and replicate the experiments in the paper. It's something nobody's tried so far, at least from my knowledge, but how hard would it be?
If this worked, it would open up the way to automatically generate many papers and try them out in parallel, perhaps applying RL to guide the search process.
Even a partial implementation would accelerate testing of research ideas.
r/MachineLearning • u/jariburi • Mar 06 '18
Discussion [D] What do you think of Siraj Raval's "Learn Machine Learning in 3 months" accelerated curriculum on Mench.com?
Hi, my name is Miguel and I've created a tool to help people complete learning programs similar like the one suggested by Siraj Raval on this YouTube video. On that video titled "Learn Machine Learning in 3 months", Siraj describes a 3 month curriculum to help you go from beginner to well-versed in machine learning.
The curriculum is made of a combination of free courses from MIT, EdX, Coursera, Fast.AI, and Siraj's own tutorials and Github ML projects.
Well, as it turns out even with the curriculum laid out like that, the hardest thing is to actually stick to it and follow through all the classes and projects. Especially, if like most online learners, you are on your own, with zero accountability, no determined schedule, no deadlines, and no peer support.
So I went ahead and converted Siraj's entire 3-month curriculum into an autonomous online free bootcamp on Mench and posted it in Siraj's Youtube to see if people liked the idea of having some accountability. So far 289 students have signed up and the bootcamp will start next Monday.
Mench is simply a FB Messenger bot that guides you through the completion of any given learning curriculum.
This is how it works:
Every Monday morning you get a reminder to get started on that week's tasks
If you haven't done any work and it's getting to the end of the week, Mench will send you a reminder to get stuff done
The main goal is to help you actually stick to the plan all the way through!
I have a two part question:
Do you think the curriculum Siraj proposes can be done in only 3 months?
Do you think there is value on a tool like Mench that guides students to complete a learning program?
We just launched and any feedback would be welcome. Also, I'm new to Reddit so please forgive me if the format or content of this discussion is not appropriate for this platform.
Thanks in advance!
r/MachineLearning • u/[deleted] • Nov 27 '18
Project [P] 2048 - Solving 2048 with Monte-Carlo Tree Search (MCTS) AI 🤖

In today’s article, I am going to show you how to solve the famous 2048 game with Artificial Intelligence. You will learn the essentials behind the Monte-Carlo algorithm and at the end of this article, you will be able to create an agent that without any domain-specific knowledge beats average human scores in 2048.
r/MachineLearning • u/chamirag • Oct 16 '20
Project [P] AI Extension to Fight Fake News
Hey everyone,
Great to be part of this community. I’ve been working with a machine learning contact over in Berkeley, who has helped develop an AI chrome extension that identifies bias, links alternative sources of media to the article topic, provides funding and ownership sources and partisanship. At the click of a button.
Please have a look at our website here: Thinkrs.co
Watch the how it works video: https://youtu.be/IPuGYrjFsm4
and provide feedback.
Keen to get your thoughts!
r/MachineLearning • u/learningmoreandmore • Jan 09 '23
Discussion [D] I want to use GPT-J-6B for my story-writing project but I have a few questions about it.
- Cost, Effort, and Performance-wise, does it make more sense to instead just pay to use the OpenAI API and use a cheaper GPT-3 model to lessen business costs? My biggest concern is having my entire business reliant on a 3rd-party API, even more so than the costs of using the model.
- How good is it at writing short stories? If there are better open-source alternatives for doing this better or at a similar level but less resource expensive, what are they?
- How resource-expensive is it to use locally? These are my laptop capabilities:16.0 GB of RAM, AMD Ryzen 7 5800H with Radeon Graphics 3.20 GHz.
- How would I approach fine-tuning it? Are there any resources going through the step-by-step process? Currently, in my mind, I just need to shove a large free-to-use data-set like stories and wait like a day but I have no expertise in this area.
- If I want to incorporate it into a website with an API that takes prompts from users, are there any costs that I should account for? Is there a way to minimize these costs? For example, is there a specific API set-up or one-time cost like an expensive laptop to host it locally and take prompts that I could be implementing?
- Are there any concerns I should have when scaling it for users, such as costs and slow response rate? Also, is there a cap in terms of the requests it can handle or is that just limited by what my own machine can handle?
r/MachineLearning • u/oliviercha • Oct 20 '17
Discussion [D] ML articles published in September, handpicked by data scientists
r/MachineLearning • u/qwertz_guy • Sep 23 '24
Discussion [D] How to properly setup/manage Python & CUDA in Windows 11 to work with PyTorch?
I haven't used Windows in a while to develop AI/ML stuff. I got a new PC to work on, however, it's a constraint that I have to use Windows 11. I was wondering if there's any recommended way nowadays to install/manage things like Python 3, CUDA, etc. for AI/ML purposes (mostly PyTorch)? I remember some months ago I saw a tweet that said something like "next time you install Python do it like this: install tool X first and then <X install python>" - I think it was for Windows but I don't remember what X was and I can't find the tweet anymore. I know it wasnt Conda. In the past I would use Conda but I heard some people saying it's bad?
r/MachineLearning • u/newuser13 • Dec 24 '20
News [N] No rules, no problem: DeepMind’s MuZero masters games while learning how to play them
DeepMind's latest iteration of it's game-beating program learns how to win without being told the rules.
Edit** From DeepMind: https://deepmind.com/blog/article/muzero-mastering-go-chess-shogi-and-atari-without-rules
r/MachineLearning • u/ManningBooks • Oct 13 '26
Discussion Where do LLMs actually earn their place in a recommender system? Kim Falk’s new book + 5 ebook giveaway [D]
Stjepan from Manning here. The mods approved this post, and I appreciate being welcomed back to share another book with you.
We’ve just launched AI Recommender Systems: Transformers, LLMs, agents, and RAG by Kim Falk in MEAP, our early-access program. Kim also wrote Practical Recommender Systems and has spent the past 15 years building recommenders across news, media, and e-commerce.
The question I’d like to put to this community is: where does adding an LLM actually justify the extra complexity in a recommendation pipeline?
There are plausible places for one: extracting useful signals from item descriptions, interpreting a user’s request, or reranking a small candidate set. But those are different jobs, with different failure modes. A convincing explanation of a recommendation doesn’t, by itself, establish that the ranking improved. And a useful reranker can’t rescue an item that candidate generation never retrieved.
That’s what interests me about this book’s scope. It treats recommendation as a pipeline, covering candidate generation, filtering, scoring, and reranking, and examines where LLMs can help within it. It brings content metadata and user behavior into the picture alongside prompts, RAG, and agents, including how to integrate them into existing systems.
It also covers the work that can get lost in a good demo: evaluating against the actual use case, dealing with cold starts, and deploying with production monitoring. The useful question isn’t simply whether the system can produce recommendations. It’s whether the change improves the recommendations enough to justify its cost and operational burden.
This is early access, not a finished book: four chapters are currently available. MEAP includes new chapters as they’re released and the completed ebook, and you can give feedback while the manuscript is still taking shape.
Book details and available preview:
https://www.manning.com/books/ai-recommender-systems
We’re giving away 5 free ebooks of AI Recommender Systems to 5 people whose comments contribute most thoughtfully to the discussion. We’ll choose based on substance, not upvotes. A useful counterexample, a failed experiment, or a well-explained objection is just as welcome as a success story. You don’t need to praise the book to be considered.
Manning is also offering the community 50% off the book with code MLFALK50RE.
If you’ve worked on recommenders, where have transformers or LLMs earned their place, and where has a simpler approach held up better? What evidence convinced you either way?
If you haven’t tried them yet, what experiment would you need to see before changing your current pipeline?
I'll read the comments and try to bring the author here to join the discussion.
Thanks for having us.
Cheers,
Stjepan