Gladiator (@Tjsaysthat) header
Gladiator (@Tjsaysthat) profile picture

மனிதம் போற்று சூரரை அல்ல

சென்(னை)னிப்பட்டிணம்
Joined October 2014
Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)Photo by Gladiator (@Tjsaysthat)
Gladiator retweeted
2024's hottest skill: Learn how to build Retrieval Augmented Generation (RAG) applications using Large Language Models. Every company wants in. Your mind will explode if you look at the jobs posted on freelancing platforms. A few weeks ago, I wrote about LLMWare. It's a straightforward open-source library you can use to build a RAG application. It was good before, but now they are making things really interesting: LLMWare released 10 small, specialized models. They call them "SLIM" models, and each of them is good at doing something specific: 1. Sentiment 2. Named Entity Recognition 3. Topic 4. Ratings 5. Emotions 6. Entities 7. SQL 8. Category 9. Natural Language Inference 10. Intent But these aren't yet another set of models; they have something special: SLIM models produce programmatic outputs like Python dictionaries, JSON, and SQL. They will become crucial for building multi-step agent workflows that require structured output.  You can combine and stack these models and fine-tune them. You can run quantized versions without a GPU and combine them with larger models.  Here is LLMWare's GitHub page: github.com/llmware-ai/llmwar… Here is the HuggingFace page with all 10 SLIM models: huggingface.co/collections/l… We need more specialized models like these. That's how we can make autonomous agents a reality.
19
276
8
1,562
249,054
Important statistical techniques that you should know! Explained with examples...👇
8
186
4
854
77,132
Mohammed Shami receiving Arjuna Award for his brilliance in Indian cricket. - A proud moment for all Indian cricket fans. ❤️
447
7,402
408
91,280
2,681,937
I have cleared interviews at Adobe, Amazon, Google and Microsoft. Here are the primary resources I used for coding, system design, low level design and behavioral interviews:
30
302
2
1,693
269,198
Three teams have been dominating the LLM game for a while: @MistralAI for sota LLMs 🦙 @langchain for building with LLMs 🦜 @togethercompute for serving LLMs 🚀 If you know how, you can build things really, really fast now. Brief intro and code walk-through for you 👇
17
83
4
617
137,595
Gladiator retweeted
This new open-source library is magic! It helps you detect any of the following issues with Large Language Models: • Hallucinations • Misinformation • Harmfulness • Stereotypes • Disclosures • Prompt injections The library will help you find problems with your model you didn't know you had. If you try to do this by hand, it'll take you weeks. Here is how it works: The library is Giskard. It's fully open-source. Star the repository here: github.com/Giskard-AI/giskar…. Here is an example where we detect issues on a Retrieval Augmented Generation (RAG) task using Langchain and OpenAI GPT-3.5. We load a PDF document, ask questions about it, and run a scan to find any vulnerabilities. colab.research.google.com/gi… Giskard works with any Python model, including PyTorch, TensorFlow, HuggingFace, Scikit-Learn, XGBoost, and LangChain. They also released integrations with HuggingFace Spaces, Weights & Biases, and MLFlow. Seeing more and more open-source libraries tackling really complex problems is fantastic! Thanks to the team for partnering with me on this post. Are there any other open-source libraries you'd recommend for machine learning? (Obviously, something different from the usual suspects.)
7
148
2
954
220,989
Gladiator retweeted
FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization paper page: huggingface.co/papers/2303.1… The recent amalgamation of transformer and convolutional designs has led to steady improvements in accuracy and efficiency of the models. In this work, we introduce FastViT, a hybrid vision transformer architecture that obtains the state-of-the-art latency-accuracy trade-off. To this end, we introduce a novel token mixing operator, RepMixer, a building block of FastViT, that uses structural reparameterization to lower the memory access cost by removing skip-connections in the network. We further apply train-time overparametrization and large kernel convolutions to boost accuracy and empirically show that these choices have minimal effect on latency. We show that - our model is 3.5x faster than CMT, a recent state-of-the-art hybrid transformer architecture, 4.9x faster than EfficientNet, and 1.9x faster than ConvNeXt on a mobile device for the same accuracy on the ImageNet dataset. At similar latency, our model obtains 4.2% better Top-1 accuracy on ImageNet than MobileOne. Our model consistently outperforms competing architectures across several tasks -- image classification, detection, segmentation and 3D mesh regression with significant improvement in latency on both a mobile device and a desktop GPU. Furthermore, our model is highly robust to out-of-distribution samples and corruptions, improving over competing robust models.
3
64
1
293
54,705
Richard Feynman was a brilliant physicist best known for his exceptional contributions to quantum mechanics and his captivating teaching style, among others. Here are all of Feynman's Freely available Lectures at one place. A Thread 🧵
86
2,544
124
9,383
1,596,652
This series of Jupyter Notebooks is a VERY nice step-by-step introduction to data science and machine learning. If you're just starting out - I recommend walking through these notebooks as a first primer Definitely a great #100DaysOfMLCode project github.com/rasbt/python-mach…
11
168
1
672
89,190
Gladiator retweeted
When the @giskard_ai team reached out, I didn't know what to expect. I spent one day integrating it into some of my repositories. This is a no-brainer! Thanks to Giskard for their partnership! Check the project here: github.com/Giskard-AI/giskar….
6
5
70
15,956
Most people suck at SQL. Why? Because schools do a horrible job teaching it. Luckily, learning SQL is simple – if you know where to start. And unlike college, it won't cost you $120k. Use these 6 dead-simple steps to 10x your SQL skills (without the student loans):
8
206
4
880
151,950
Gladiator retweeted
How can you solve complex tasks using a Large Language Model? Here is a 2-minute introduction to everything you need to know to 10x the quality of your results. Let's talk about three techniques, in order of complexity, starting with the easiest one: • In-Context Learning • Indexing + In-Context Learning • Fine-tuning In-Context Learning The team that trained GPT-3 found something they couldn't explain: You can condition a model using examples of how you want it to behave. I included an example prompt in the attached video. You can "teach" the model how you want it to interpret questions, select the correct answers, and format the results by giving a few examples. You can also give specific knowledge to the model that will be helpful when formulating answers. We call this approach "grounding the model." There's another example in the video. Indexing + In-Context Learning Unfortunately, there is a limit to how much data you can include in a prompt. We call this the "context size." One version of GPT-4 supports a context of approximately 6,000 words, while the other supports 25,000 words. Although this sounds like a lot, many applications need more than that. Imagine you wrote a book and want to build an application to answer any questions about your story. What happens if your book is longer than the context? That's where Indexing comes in. Using a model, you can turn every book passage into an embedding. These are vectors, numbers that "encode" the passage's text. You can then store these embeddings in a particular database that supports fast retrieval of these vectors. You can then turn any question into an embedding and search the database for the list of passages that are similar to that query. Instead of using the entire book to ask the model, you can now use the relevant passages as in-context information, effectively working around the context size limitation. Fine-tuning Fine-tuning can give you an extra boost to get reliable outputs from your LLM. It is, however, the most complex approach on the list. There are different approaches to fine-tuning a model with your data. A popular technique is to process your data with your LLM and use the outputs to train a new classifier that solves your specific task. Notice that here you aren't modifying the LLM. Instead, you are chaining it with your trained classifier. Another approach is to modify the parameters of the LLM using your data. Think of this as "rewiring" the model in a way that solves your particular task. The results and costs will vary depending on how many layers you want to fine-tune from the original model. Many companies think that fine-tuning is the solution to their problems. In my experience, many will benefit from exploring the other two approaches. I love explaining Machine Learning and Artificial Intelligence ideas. If you enjoy in-depth content like this, follow me @svpino so you don't miss what comes next.
61
187
16
1,236
384,626
Gladiator retweeted
Are you looking to break into Machine Learning? Here is a great place to start: This is the best video series about Neural Networks for anyone who wants to understand how they work. 3blue1brown.com/topics/neura… Make sure you follow @abacusai! There's a lot more coming this month!
1
94
340
38,611
Gladiator retweeted
I gave ChatGPT a CSV file and asked it to add a new column. There was only one requirement: I wanted the data to remain linearly separable. I'm blown away by its answer.
11
55
2
518
203,734
Gladiator retweeted
This is a great time to break into AI and become the builders of the next decade. Language models are one of the most exciting places to start. You need 4 things: • Python • What the heck are embeddings? • A model to use • A sample to build Here is one idea:
36
246
8
1,784
716,201
🔎 Looking for a Python library for advanced natural language processing? 📆 📺 On May 11 at 5 pm CEST, join our webinar with @t_redactyl and @victorialslocum to learn about @spacy_io, a trending open-source #NLP tool! 👉 jb.gg/rqowm5
1
11
4
28
11,071