lquera (@Surreabral) profile picture

Things I believe: domain experts+ML experts = game-changers; AI as Augmentation Intelligence empowers & elevates; BPR before RPA; kindness matters.

California, USA
Joined August 2010
Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)Photo by lquera (@Surreabral)
1/2: Something deeply internalized as an economist that is useful transfer learning for being an ML engineer: models are useful but never capture complex reality so rejoice in what can be learned from them but invest in identifying what might be missing/wrong.
1
If you get annoyed trying to debug a blank-space issue in python, just remember the difference between “It’s worth less” and “It’s worthless”. A blank space can have tremendous value 😃
13
RAG Or Long Context LLMs - A Hamlet-Level Question! There has been much debate and argument about RAG vs. long-context LLMs. In this study, they find that the long context outperforms RAG. Our in-house experiments reveal that long context is ineffective when the LLM has to use complex reasoning based on the content in the context to provide the correct response. RAG is the only approach for those use cases. That being said, even the paper admits that RAG is much more cost-efficient, given that you only need to pass the most relevant parts of the document to the LLM This paper proposes SELF-ROUTE, a simple yet effective method that routes queries to RAG or LC based on model self-reflection. SELFROUTE significantly reduces the computation cost while maintaining comparable performance to LC. Their findings provide a guideline for long-context applications of LLMs using RAG and LC. So, the answer is BOTH for non-complex use cases and RAG for complex ones. TLDR: RAG isn't going anywhere for a very long time.
5
34
3
186
747,672
When I think of privacy-preserving ML, I think of @openminedorg but today @DeepLearningAI introduced me to Flower Labs flower.ai/docs/ with learn.deeplearning.ai/course…
3
7
Say what you want about X/Twitter...the ML Community on this platform is still the most knowledgeable, welcoming, and generous anywhere. Here's yet another example 👇Awesome experts freely sharing their knowledge 🤩👏
enjoying #ICML2024 ? already finished with llama-3.1 tech report? if so, you must be concerned about the emptiness you'll feel on your flight back home in a couple of days. do not worry! Wanmo and i have a new textbook on linear algebra for you to read, enjoy and cry on your long flight. (1/5)
1
11
There is a wildly underpriced tool where 81% of the users agreed that it increased their productivity and 62% said that it sped up their learning. survey.stackoverflow.co/2024… If you are NOT implementing AI tools in your development process, why on earth not?
8
Coding-tuned LLMs have made coding so much more fun! Just toss the error code and suspect code into the prompt* and boom, an hour of frustration avoided. Plus the learning benefit of the associated explanation, wow, the whole experience is so productive and empowering*. 😃
1
11
*1, you generally have it as part of your IDE, but you know what I mean *2, of course, it’s not perfect but it’s a magnitude of improvement over manual searches
7
Learn how to be an environmentally-aware developer, especially as model builders and deployers, with this new course from Google Cloud and DeepLearningAI: learn.deeplearning.ai/course… Thank you to Google for making Carbon Awareness part of the console and their advocacy 👏
1
9
It takes a shockingly small amount of code to make carbon sensitivity a part of the process. Business justification for that small effort might be 1) inclusion in ESG funds can raise stock price, 2) entice high quality employees, 3) possible carbon trading options...
4
🤖"In the loop" Everyone is trying to figure out how to best build agentic applications I've decided to start sharing some of my thoughts and learnings on how to do so in a new blog series (titled "In the loop") First one: what is an agent? blog.langchain.dev/what-is-a…
4
13
75
5,096
This repository on ML operations has free talks, books, papers and more: bit.ly/MLops Developed by @visenger
8
194
2
850
68,545
I've noticed new framework, API, etc. docs getting much better. Have we finally learned to value them and reward their creators better, or have LLMs made the process 10x faster/easier/better? Whichever, the end result will massively increase productivity and creativity.
11
Check out AutoGen from @Microsoft to create your next Agentic AI application. microsoft.github.io/autogen/ Intuitive, powerful, and very cool 🤩 (Also an outstanding example of effective documentation 👏)
1
22
“Be regular and orderly in your life like a bourgeois, so that you may be violent and original in your work.” — ​Flaubert​ via 5BF newsletter from @tferriss Maybe replace “violent” w “shocking” but you know what he means 😃 Similar to my fav “From discipline comes freedom”
1
5
Excited to share our work at @GoogleDeepMind! We propose Naturalized Execution Tuning (NExT), a self-training method that drastically improves the LLM's ability to reason about code execution, by learning to inspect execution traces and generate chain-of-thought rationales 🧵👇
15
117
7
565
75,731
Introducing Google AI Essentials: Learn how to apply #generativeAI to your work from experts at Google, zero experience required → goo.gle/3wjYkKO #GrowWithGoogle
95
112
12
454
84,956
Paul Hudson @twostraws taught me everything I know about iOS dev and he has long been such a generous educator for the Swift* community. Now he's created a free Swift website builder at github.com/twostraws/Ignite *language not artist. Although, maybe artist too but IDK 😀
1
25
A friend saw my interaction with a popular LLM UI and teased me for my politeness. My reasoning: 1) using civil discourse may have positive influence on model training datasets, & 2) it's to my own benefit that I don't get into bad conversational habits. We become what we do.
1
15
Note, however, that my code for calling the same LLM via API does not include the same markers of civility. So clearly reason two is more important to me. Apparently I'm a polite speaker and rude coder 😉
15
A good start to the new week: The highly requested Chapter 5 of my "Build an LLM from Scratch" book is finally available, "Pretraining an LLM on Unlabeled Data". In the previous chapters, we implemented the data sampling and attention mechanism and coded the LLM architecture from scratch. The core focus of this chapter is to finally implement a training function and pretrain the LLM! In particular, this chapter covers: - Computing the training and validation set losses to assess the quality of LLM-generated text during training - Implementing a training function and pretraining the LLM - Saving and loading model weights to continue training an LLM - Loading pretrained weights from OpenAI Happy reading!
One of the best ways to understand LLMs is to code one from scratch! Last summer, I started working on a new book, "Build a Large Language Model (from Scratch)": manning.com/books/build-a-la… I'm excited to share that the first chapters are now available via Manning's early access program if you are looking to read something over the holidays or pick up a new project in 2024! In short, in this book, I'll guide you step by step through creating your own LLM, explaining each stage with clear text, diagrams, and examples. This includes Implementing the data preparation, sampling, and tokenization pipeline: 1. Coding multi-head attention from the ground up 2. Building and pretraining a GPT-like model 3. Learning how to load pretrained weights 4. Finetuning the model for classification 5. Instruction-finetuning the model with direct preference optimization PS: The code implementations are in PyTorch. Don't hesitate to reach out if you have any questions!
13
140
3
846
95,471