Kim Montgomery (@_dynamic24_) header
Kim Montgomery (@_dynamic24_) profile picture

Applied Mathematician. Data Scientist. Kaggle Grandmaster.

Boulder, CO
Joined September 2017
Kim Montgomery retweeted
"I can remember when all this was ice"
500
602
68
3,988
232,361
Kim Montgomery retweeted
ChatGPT o1-preview failed this relatively simple test, and our Enterprise h2oGPTe system nails it, much faster:
13
16
7
71
23,269
Kim Montgomery retweeted
Replying to @venuv62
Tell yourself whatever makes you feel better about standing on the sidelines.
1
1
1
39
3,375
Kim Montgomery retweeted
Many PhD students have told me most earnestly that they could win Kaggle competitions any time they wanted. On the vanishingly rare occasions they've put their money where their mouth is, they've been crushed.
There was a super impressive AI competition that happened last week that many people missed in the noise of AI world. I happen to know several participants so let me tell you a bit of this story as a Sunday morning coffee time. You probably know the Millennium Prize Problems where the Clay Institute pledged a US$1 million prize for the first correct solution to each of 7 deep math problems. To this date only one of these, the Poincaré conjecture, has been solved by Grigori Perelman who famously declined the award (go check Grigori out if you haven't the guy has a totally based life). So this new competition, the Artificial Intelligence Math Olympiad (AIMO) also came with a US$1M prize but was only open to AI model (so the human get the price for the work of the AI...). It tackle also very challenging but still simpler problems, namely problems at the International Math Olympiad gold level. Not yet the frontier of math knowledge but definitely above what most people, me included, can solve today. The organizing committee of the AIMO is kind-of-a who-is-who of highly respected mathematicians in the world, for instance Terence Tao widely famous math prodigy widely regarded as one of the greatest living mathematicians. Enter our team, Jia Li, Yann Fleuret, and Hélène Evain. After a successful exit in a previous startup (that I happen to have know well when I was an IP lawyer in a previous life but that's for another story) they decided to co-found Numina as a non-profit to do open AI4Math. Numina wanted to act as a counterpoint to AI math efforts like DeepMind's but in a much more open way with the goal to advance the use of AI in mathematics and make progress on hard, open problems. Along the way, they managed to recruit the help of some very impressive names in the AI+math world like Guillaume Lample, co-founder of Mistral or Stanislas Polu, formerly pushing math models at OpenAI. As Jia was participating in the code-model BigCode collaboration with some Hugging Face folks, came the idea to collaborate and explore how well code models could be used for formal mathematics. For context, olympiad math problems are extremely hard and the core of the issue is in the battle plan you draft to tackle each problem. A first focus of Numina was thus on creating high quality instruction Chain-of-Thought (CoT) data for competition-level mathematics. This CoT data has already been used to train models like DeepSeek Math, but is very rarely released so this dataset became an unvaluated ressource to tackle the challenges. BigCode's lead Leandro put Jia in touch with the team that trained the Zephyr models at Hugging Face, namely, Lewis, Ed, Costa and Kashif with additional help from Roman and Ben and the goal became to have a go at training some strong models on the math and code data to tackle the first progress prize of AIMO. And the trainings started: Jia being an olympiad coach, was intimately familiar with the difficulty level of these competitions and able to curate an very strong internal validation set to enable model selection (Kaggle submissions are blind). While iterating on dataset construction, Lewis and Ed from Hugging Face focused on training the models and building the inference pipeline for the Kaggle submissions. As often in competition it was an intense journey with Eureka and Aha moments pushing everyone further. Lewis told me about a couple of them which totally blow my mind. A tech report is coming so this is just some "along the way" nuggets that will be soon gathered in a much more comprehensive recipe and report. Learning to code: The submission of the team relied on self-consistency decoding (aka majority voting) to generate N candidates per problem and pick the most common solution. But initial models trained on the Numina data only scored around 13/50... they needed a better approach. They then saw the MuMath-Code paper (arxiv.org/abs/2405.07551) which showed you can combine CoT data with code data to get strong models. Jia was able to generate great code execution data from GPT-4 to enable the training of the initial models and get to impressive boost in performance. Taming the variance: Another Ahah moment came at some point when a Kaggle member shared a notebook showing how DeepSeek models worked super well with code execution (the model breaks down the problem into steps and each step is run in Python to reason about the next one). However, when the team tried this notebook they found this method had huge variance (the scores on Kaggle varied from 16/50 to 23/50). When meeting in Paris for a hackathon to improve this issue (like the HF team often does) Ed had the idea to frame the majority voting as a "tree of thoughts" where you'd progressively grow and prune a tree of candidate solutions (arxiv.org/abs/2305.10601). This had an impressive impact on the variance and enabled them to be much more confident in their submissions (which showed in how the model ended up performing extremely well on the test set versus the validation set) Overcoming compute constraints: the Kaggle submissions had to run on 2xT4s in under 9h which is really hard because FA2 doesn't work and you can't use bfloat16 either. The team explored quantization methods like AWQ and GPTQ, finding that 8-bit quantization of a 7B model with GPTQ was best Looking at the data: a large part of the focus was also on checking the GPT-4 datasets for quality (and fixing them) as they quickly discovered that GPT-4 was prone to hallucinations and failing to correctly interpret the code output. Fixing data issues in the final week led to a significant boost in performance. Final push: The result were really amazing and the model climbed to the 1 place. And even more, while tying up for first place on the public, validation leaderboard (28 solved challenges versus 27 for the second place), it really shined when tested on the private, test leaderboard where it took a wide margin solving 29 challenges versus 22 for the second team. As Terence Tao himself set it up, this is "higher than expected" Maybe what's even more impressive about this competition, beside the level of math these models are already capable of is how ressource contraint the participants were actually, having to run inference in a short amont of time on T4 which only let us imagine how powerful these models will become in the coming months. Time seem to be ripe for GenAI to have some impact in science and it's probably one of the most exciting thing AI will bring us in the coming 1-2 year. Accelerating human development and tackling all the real world problems science is able to tackle.
30
89
7
1,820
382,805
Holy shit colorado. This is the worst trend summary EVER published. Worse than 12/27/2023
8
15
1
53
2,960
Kim Montgomery retweeted
forgot how exhausting it is to debate tech bros who insist - diversity is important obv except not important enough to spend effort on - their all male team is diverse in other ways! - the problem is not w the company but rather the women who don’t apply - they only hire the best
29
55
4
551
48,318
Kim Montgomery retweeted
Happy to share our first efforts for foundation modeling: H2O-Danube-1.8b A small 1.8b model based on Llama/Mistral architecture trained on only 1T natural language tokens showing competitive metrics across benchmarks in the <2B model space. We particularly hope for the model to be useful for fine-tuning around specific use cases, further democratizing LLMs to a wider audience economically. We plan on extending these efforts focusing on improvements around, but not limited to, data quality, common sense reasoning, context length, model size, training routines, inference efficiency, and fine-tuning in the near future. Base weights: huggingface.co/h2oai/h2o-dan… Chat weights: huggingface.co/h2oai/h2o-dan… Technical report: arxiv.org/abs/2401.16818
6
38
2
162
26,893
And they say Kagglers don’t do anything in the real world! New long context small LLM trained by a team of some of the best Kagglers in the world
H2O-Danube-1.8B Technical Report Open-sources a high-competitive 1.8B LM trained on 1T tokens following the core principles of LLama 2 and Mistral arxiv.org/abs/2401.16818
1
11
1
82
13,338
Kim Montgomery retweeted
We have mistralai/Mixtral-8x7B-Instruct-v0.1 hosted on gpt.h2o.ai - hop over there to play around with it and compare to other models!
3
15
1
83
12,714
Kim Montgomery retweeted
We at @h2oai are thrilled to bring together the largest gathering of @kaggle Grandmasters on a single stage in one day, and that includes none other than the current #1 - @ph_singer and current #4 - @kagglingpascal in competitions. Register- bit.ly/3Qb4Zyd
2
8
1,391
Wow @NASAMoon – after all this time, you finally put a ring on it! 🥰
179
1,721
160
9,497
1,756,212
Kim Montgomery retweeted
Whenever you are contemplating participating in @kaggle competitions and you might have heard someone say it is too far-fetched from practical data science work, consider this example: In the recent Science LLM competition participants learned among many other things: - How to fine-tune LLMs - How to properly use RAG techniques for augmenting LLMs - RAG chunking, embedding, similarity search, and other related techniques - Synthetic data generation for training models - How to optimize inference code for optimal runtime on limited HW resources. - How to fit large LLMs in small GPUs. People even managed to run 70B LLama2 on 2xT4. - And many other things I can encourage everyone to browse through the solution posts, lots of great insights there: kaggle.com/competitions/kagg…
8
108
6
656
123,524
Kim Montgomery retweeted
Introducing the Kaggle Competitions Research Grants Program, a new program to support academic and non-profit institutions’ efforts to advance their research through Kaggle Competitions. kaggle.com/competitions-rese…
2
60
7
322
60,346
Nice paper out of @UniofOxford on the power & ease of use of H2O #AutoML: sciencedirect.com/science/ar… @h2oai
1
3
10
1,388
Kim Montgomery retweeted
Open sourcing a brand-new framework and no-code GUI for fine-tuning LLMs: github.com/h2oai/h2o-llmstud… Some highlights: CLI & GUI available, many hyperparameter options, best-practice from Kaggle GMs, Lora, DDP, FSDP, 8bit, experiment tracking, evaluation, chat window, and much more!
33
1
148
15,938
Arxiv Chat: Chat w the latest papers 🙏 I made a really simple demo that makes it easy for me to understand the latest papers. The whole app is <100 lines of code: ✅ @langchain for the main logic ✅ @h2oai Wave for the UI ✅ ChatGPT for asking Qs
27
90
6
699
129,129
Kim Montgomery retweeted
🙏📚 Join @bhutanisanyam1 for a thought-provoking discussion on #ResponsibleAI with @ledell, @_dynamic24_ + @pandeyparul. We'll delve into the current states of #interpretability, using models responsibly, and how @h2oai products support these efforts. ow.ly/ql3x50MBCNT
1
4
14
2,463