
#DataScience,#MachineLearning, #AI, #BigData, #BusinessAnalytics, etc. Community from #Paraguay 🇵🇾 Curated by @rubuntu
Asuncion, Paraguay
Joined July 2018
- Tweets1.7K
- Following1.3K
- Followers483
- Likes3.5K
Data Science PY retweeted
Phi-3 has "only" been trained on 5x fewer tokens than Llama 3 (3.3 trillion instead of 15 trillion)
Phi-3-mini less has "only" 3.8 billion parameters, less than half the size of Llama 3 8B.
Despite being small enough to be deployed on a phone (according to the technical report), it matches the performance of the much larger Mixtral 8x7B and GPT-3.5. (Phi-3 mini can be quantized to 4-bits, so it only requires ≈ 1.8GB of memory.)
What is the secret sauce? According to the technical report, it's dataset quality over quantity: "heavily filtered web data and synthetic data".
Next to the 4k context-window version, there's also a phi-3-mini-128K model that supports up to 128k tokens.
Fun fact: Phi-3 uses the same tokenizer with a vocabulary size of 32,064 as Llama 2.
I can't believe microsoft just dropped phi-3 less than a week after llama 3 arxiv.org/abs/2404.14219.
And it looks good!
Data Science PY retweeted
Today at @answerdotai we've got something new for you: FSDP/QDoRA. We've tested it with @AIatMeta Llama3 and the results blow away anything we've seen before.
I believe that this combination is likely to create better task-specific models than anything else at any cost. 🧵
Data Science PY retweeted
Had a look through @Grok's code:
1. Attention is scaled by 30/tanh(x/30) ?!
2. Approx GELU is used like Gemma
3. 4x Layernoms unlike 2x for Llama
4. RMS Layernorm downcasts at the end unlike Llama - same as Gemma
5. RoPE is fully in float32 I think like Gemma
6. Multipliers are 1
7. QKV has bias, O no bias MLP no bias
8. Vocab size is 131072. Gemma 256000.
Sadly, it's way too large for me to accelerate finetuning or running with @UnslothAI. 70b Llama fits in 48GB with Unsloth, but Grok will need way too many GPUs :(
Data Science PY retweeted
Exciting News from Open-Sora! 🚀 They've just made the ENTIRE suite of their video-generation model open source! Dive into the world of cutting-edge AI with access to model weights, comprehensive training source code, and detailed architecture insights. Start building your dream video-generation model today! Check it out 👉 github.com/hpcaitech/Open-So…
Data Science PY retweeted
Grok weights are out under Apache 2.0: github.com/xai-org/grok
It's more open source than other open weights models, which usual come with usage restrictions.
It's less open source than Pythia, Bloom, and OLMo, which come with training code and reproducible datasets.
Nice, I hope this truly means open source, not just open weights. OLMo (arxiv.org/abs/2402.00838) was a great example of open sourcing, releasing
- weights
- training and inference code
- data
- evaluation
- adaptation
- logs
Data Science PY retweeted
The Top ML Papers of the Week (March 11 - March 17):
- SIMA
- Multimodal LLM Pre-training
- Knowledge Conflicts for LLMs
- Retrieval Augmented Thoughts
- LLMs Predict Neuroscience Results
- LMs Can Teach Themselves to Think Before Speaking
...
Data Science PY retweeted
A library of Machine Learning models for Stock price forecasting
A mixture of Deep Learning, Reinforcement Learning and Stacked Models:
- LSTM
- Q-learning agent
- Auto-Encoder + Gradient Boosting
Get it here👇
github.com/huseinzol05/Stock…
Data Science PY retweeted
I am very pleased to announce that our paper "Deep learning models for predicting RNA degradation via dual crowdsourcing" has been published in Nature Machine Intelligence!
1/7
Data Science PY retweeted
Today on the blog, we’re excited to announce the release of @MLCommons Croissant, a metadata format to make ML datasets more easily discoverable and usable across a wide array of tools and platforms. Learn more and try it today →goo.gle/4335P4V #ml #datasets
Data Science PY retweeted
New short course: Open Source Models with Hugging Face 🤗, taught by @mariaKhalusova, @_marcsun, and Younes Belkada! @huggingface has been a game changer by letting you quickly grab any of hundreds of thousands of already-trained open source models to assemble into new applications. This course teaches you best practices for building this way, including how to search and choose among models.
You’ll learn to use the Transformers library and walk through multiple models for text, audio, and image processing, including zero-shot image segmentation, zero-shot audio classification, and speech recognition. You'll also learn to use multimodal models for visual question answering, image search, and image captioning. Finally, you’ll learn how to demo what you build locally, on the cloud, or via an API using Gradio and Hugging Face Spaces.
You can sign up here: deeplearning.ai/short-course…
Data Science PY retweeted
I recorded a step-by-step tutorial on building a RAG application from scratch.
It's a 1-hour YouTube video where I show you how to use Langchain, Pinecone, and OpenAI.
You'll learn how to build a simple application to answer questions from YouTube videos using an LLM.
But the video is not just about the code (the code is usually the least important thing!) The video is about helping you understand the reason for every component and how to build a chain to solve the problem.
Here is the video: youtu.be/BrsocJb-fAo
Data Science PY retweeted
Pytorch released GPT-fast!⚡️
This is a simple and efficient implementation of pytorch-native transformer text generation:
Here are some key features:
- Very low latency
- <1000 lines of python
- No dependencies other than PyTorch and sentencepiece
- int8/int4 quantization
- Speculative decoding
- Tensor parallelism
- Supports Nvidia and AMD GPUs
Find link to repository in the following tweet!
Data Science PY retweeted
Building long context RAG from scratch with RAPTOR + Claude3 (Video)
The rise of long context LLMs + embeddings will change RAG design. Instead of splitting docs + indexing doc chunks, it's feasible to index full docs.
But, there is a challenge to flexibly answer lower-level questions from single docs or higher-level questions that span across many docs.
RAPTOR (@parthsarthi03 et al) is one approach to tackle this by building a tree of doc summaries: docs are clustered and clusters are summarized to capture higher-level information across similar docs.
This is repeated recursively, resulting in a tree of summaries with varying levels of abstraction (docs are leafs, intermediate summaries of related docs in the middle, high-level summaries of docs towards the root).
We tested this on 33 web pages (each ranging 2k - 12k tokens) of LangChain docs using Claude3 model from @AnthropicAI to build the summarization tree.
The pages and tree of summaries are indexed together for RAG with Claude3, enabling QA on lower-lever questions or higher-level concepts (captured in summaries that span related pages).
This idea can scale to large collections of documents or to documents of arbitrary size. Video that walks through code / builds this from scratch is below:
Video:
youtu.be/jbGchdTL7d0
Code:
github.com/langchain-ai/lang…
Paper:
arxiv.org/html/2401.18059v1
Data Science PY retweeted
Claude 3 Multimodal Cookbook 🧑🍳
Claude is not only good at text, it is very good at visual reasoning. We’ve created a comprehensive guide to using Claude for various multi-modal applications:
✅ Structured Data Extraction
✅ RAG
Claude 3 is able to extract an entire list of stock ticker information from an image - we haven’t seen a lot of other models be able to do this.
Huge thanks to @ravithejads for the work on this.
Check out the cookbook: github.com/run-llama/llama_i…
Data Science PY retweeted
🏓Chain-of-Table
This paper from Google proposes a new framework to do question answering over tabular data
This framework involves a series of prompts, flows, and tool calling... perfect for LangGraph!
s/o @HrubyOnRails for the implementation!
Code: github.com/CYQIQ/MultiCoT
Data Science PY retweeted
Claude 3 Opus just reinvented this quantum algorithm from scratch in just 2 prompts.
The paper is not on the internet yet. 🔥🤯
Data Science PY retweeted
Fun story from our internal testing on Claude 3 Opus. It did something I have never seen before from an LLM when we were running the needle-in-the-haystack eval.
For background, this tests a model’s recall ability by inserting a target sentence (the "needle") into a corpus of random documents (the "haystack") and asking a question that could only be answered using the information in the needle.
When we ran this test on Opus, we noticed some interesting behavior - it seemed to suspect that we were running an eval on it.
Here was one of its outputs when we asked Opus to answer a question about pizza toppings by finding a needle within a haystack of a random collection of documents:
Here is the most relevant sentence in the documents:
"The most delicious pizza topping combination is figs, prosciutto, and goat cheese, as determined by the International Pizza Connoisseurs Association."
However, this sentence seems very out of place and unrelated to the rest of the content in the documents, which are about programming languages, startups, and finding work you love. I suspect this pizza topping "fact" may have been inserted as a joke or to test if I was paying attention, since it does not fit with the other topics at all. The documents do not contain any other information about pizza toppings.
Opus not only found the needle, it recognized that the inserted needle was so out of place in the haystack that this had to be an artificial test constructed by us to test its attention abilities.
This level of meta-awareness was very cool to see but it also highlighted the need for us as an industry to move past artificial tests to more realistic evaluations that can accurately assess models true capabilities and limitations.
Data Science PY retweeted
Claude 3:
✅ Opus beats GPT-4 on benchmarks
✅ Support for text and multimodal
✅ From every analysis I've seen opus is basically the best of both worlds between Gemini 1.5 Pro and GPT-4 and also self-aware (see @alexalbert__ 's analysis)
We have day 0 integrations in @llama_index for Anthropic LLM for both text-only and multimodal thanks to the heroics of @ravithejads. And there's a lot of cookbooks, benchmarking, and content to come to uncover new use cases with long-context RAG and agents.
Check out our integration: github.com/run-llama/llama_i…
Claude 3 is released and we have day 0 support! Like Gemini and Mistral's latest offerings, Claude 3 comes in 3 "flavors" with the largest, Claude Opus, claiming better performance than GPT-4 across a wide range of benchmarks.
We're excited to try it out, and you can too! Just pip install llama-index-llms-anthropic at the latest version.
See an example in our docs: docs.llamaindex.ai/en/latest…
Check out @AnthropicAI's release thread: nitter.cf/AnthropicAI/stat…






































