
Building. Prev research engineer @scale_AI
San Francisco, CA
Joined September 2015
- Tweets1.3K
- Following398
- Followers199
- Likes2.4K
Penn Jenks retweeted
Enjoy attention? Want to make it ~18% faster? Try out Sigmoid Attention. We replace the traditional softmax in attention with a sigmoid and a constant (not learned) scalar bias based on the sequence length.
Paper: arxiv.org/abs/2409.04431
Code: github.com/apple/ml-sigmoid-…
This was an amazing collaboration with some great researchers at Apple: Federico Danieli, @EeshanDhekane, @FlorisWeers, @danbusbridge, @PierreAblin, Tatiana Likhomanenko, Jagrit Digani, Zijin Gu, @AmitisShidani1 and Russ Webb.
More details in 🧵below.
Penn Jenks retweeted
If you know Torch, I think you can code for GPU now with OpenAI's Triton language.
We made some puzzles to help you rewire your brain. Starts easy, but gets quickly to fun modern models like FlashAttention and GPT-Q.
Good luck! github.com/srush/Triton-Puzz…
Penn Jenks retweeted
Fine-tuning the LLaMA-2-Chat model may degrade its original capabilities (arxiv.org/abs/2401.03129). But here's a lifeline: Chat Vector (arxiv.org/abs/2310.04799) keeps a chat model's original capability (it also works on Mistral). Recommend to everyone fine-tuning their LLMs.
Penn Jenks retweeted
If you're interested in evaluating LLMs in Korean but are put off by the practice of translating evaluation data into other languages, try these benchmarks!
HAE-RAE focuses on Korean-specific knowledge and culture.
K-MMLU is a replication of MMLU using Korean national exams.
🔥 Excited to share:
1️⃣ HAE-RAE Bench: Evaluation of Korean Knowledge in Language Models (LREC-COLING 2024)
2️⃣ KMMLU: Measuring Massive Multitask Language Understanding in Korean (Under Review)
📢 TL;DR -> Together with @AiEleuther we improve evaluation practices for Korean language by releasing two datasets HAE-RAE Bench and KMMLU. [1/4]
Penn Jenks retweeted
Happy to see that our work on diffusion model objectives (arxiv.org/abs/2303.00848) is starting to get noticed, with e.g. Stable Diffusion 3 (arxiv.org/abs/2403.03206) building on our result that the flow matching objective can be simply understood as a special case of diffusion.
Penn Jenks retweeted
Do you want to train massive deep learning models with ease? Our 10 new tutorial notebooks of our popular UvA DL course show you how, implementing data, pipeline and tensor parallelism (and more) from scratch in JAX+Flax! 🚀🚀
Check them out here: uvadlc-notebooks.readthedocs…
🧵 1/11
Penn Jenks retweeted
The Orca-Math paper does a comparison of DPO and KTO for mathematical reasoning, finding that KTO is slightly better when all data is used and 25+ pts better when you have fewer positive examples than negative examples.
Microsoft presents Orca-Math
Unlocking the potential of SLMs in Grade School Math
Mathematical word problem-solving has long been recognized as a complex task for small language models (SLMs). A recent study hypothesized that the smallest model size, needed to achieve over 80% accuracy on the GSM8K benchmark, is 34 billion parameters. To reach this level of performance with smaller models, researcher often train SLMs to generate Python code or use tools to help avoid calculation errors. Additionally, they employ ensembling, where outputs of up to 100 model runs are combined to arrive at a more accurate result. Result selection is done using consensus, majority vote or a separate a verifier model used in conjunction with the SLM. Ensembling provides a substantial boost in accuracy but at a significant cost increase with multiple calls to the model (e.g., Phi-GSM uses top-48 to boost the performance from 68.2 to 81.5). In this work, we present Orca-Math, a 7-billion-parameter SLM based on the Mistral-7B, which achieves 86.81% on GSM8k without the need for multiple model calls or the use of verifiers, code execution or any other external tools. Our approach has the following key elements: (1) A high quality synthetic dataset of 200K math problems created using a multi-agent setup where agents collaborate to create the data, (2) An iterative learning techniques that enables the SLM to practice solving problems, receive feedback on its solutions and learn from preference pairs incorporating the SLM solutions and the feedback. When trained with Supervised Fine-Tuning alone, Orca-Math achieves 81.50% on GSM8k pass@1 metric. With iterative preference learning, Orca-Math achieves 86.81% pass@1. Orca-Math surpasses the performance of significantly larger models such as LLAMA-2-70B, WizardMath-70B, Gemini-Pro, ChatGPT-3.5. It also significantly outperforms other smaller models while using much smaller data (hundreds of thousands vs. millions of problems).
Penn Jenks retweeted
New Griffin paper is really interesting and contains a lot of implementation details
arxiv.org/abs/2402.19427 . Implementation is in Pallas which is a Jax like frontend to Triton/TPU lowering. They show that Associative Scan is inherently worse than Linear Scan in this context. (not sure if this is TPU specific.)
Penn Jenks retweeted
LLM planning methods, such as tree search, are critical for complex problem solving, but their practical utility can depend on the discriminator used with them. Check out our new findings: arxiv.org/abs/2402.10890
(1/6)
Penn Jenks retweeted
Let's implement Mamba in Triton. (srush.github.io/annotated-ma…)
A gentle, (but mildly obsessive) tutorial notebook about GPU programming in Triton. We're getting close to mere mortals being able to do this 😂
Penn Jenks retweeted
I find it deeply confusing that nobody has gotten around to doing this yet. Super low hanging fruit and requires ~ zero compute too! Mostly it requires a high-quality human study.
#stealmyidea
Replying to @BlancheMinerva
FID is largely meaningless for T2I models because it completely ignores the pairing of the prompt and the output. Develop a "multimodal FID" that is aware of both text and image embeddings based on this paper
arxiv.org/abs/2103.11521
Penn Jenks retweeted
Blog post about how to scale training runs to highly distributed settings (i.e., large batch sizes)! Empirical insights from my long-ago work on stochastic differential equations (SDEs). Written to be accessible - give it a shot!
cs.princeton.edu/~smalladi/b…
Penn Jenks retweeted
When I first learned about distillation, I didn't believe that it would work. I had to get a linear model to leverage distillation to convince myself. I thought I'd share the example with others: vladfeinberg.com/2024/02/04/…
Penn Jenks retweeted
The OpenMoE team has recently released a paper containing their learnings from building MoE models over the past 6 months. ⭐️
OpenMoE is one of the first open efforts in moe modeling. Their work includes some very interesting analyses of the behavior of mixture-of-expert models. 1/n
Penn Jenks retweeted
LLaVA 1.6 is out! 🥳
- Outperforms Gemini PRO on some benchmarks
- Higher resolution than LLaVA 1.5 (up to 4x more pixels!)
- Better OCR capability and instruction-following
- More conversational
Models: hf.co/collections/liuhaotian…
Blog: llava-vl.github.io/blog/2024…
Penn Jenks retweeted
Many people seem to think they can't do interesting LLM research outside a large lab, or are shoehorned into crowded topics. In reality, there are tons of wide-open high value questions. To prove it, I'll be tweeting one per week (every Monday) in 2024.
Please steal my ideas!
Penn Jenks retweeted
RAG or Fine-tuning 🤔 What's better? RAG? Fine-tuning? or a combination?
@Microsoft created a detailed case study on RAG and fine-tuning for domain-specific applications here in the agricultural sector. 👩🌾 A must-read for everyone who wants to learn or refresh his knowledge on RAG vs fine-tuning! 🧐
Synthetic data creation
1️⃣ Gather a high-quality domain-specific dataset, e.g., from databases, PDFs, or web data.
2️⃣ Convert “raw” data into a structured form, keeping the semantics (headings, sections,…)
3️⃣ Generate synthetically contextually relevant questions using LLM and the dataset.
4️⃣ Generate answers for the questions using RAG and LLMs
5️⃣ Filter & validate dataset by evaluating questions and answers using LLM
6️⃣ Fine-tune (smaller) LLM on the filtered dataset
7️⃣ Use LLM to evaluate the results of LLM for Correctness, Succinctness
Insights
✏️ collect high quality unstructured domain-specific data for RAG or fine-tuning
🤖 Synthetic data generation is viable
👍 Fine-tuning 6% accuracy, adding RAG improves it an additional 5%.
🧠 LLMs can be adapted to domains without the need to pretrain
🚨 Step 5️⃣ is crucial for data generation
❓ Potentially add hard negative examples to dataset with “I don’t know” answers
⚖️ Before fine-tuning 6️⃣ you should evaluate existing models on the dataset to create a baseline
🔀 Diversity of the generated questions is important
🏆 GPT-4 is the best LLM “as a Judge”
🤝 If possible always use RAG
Combining RAG & fine-tuning yields the best performance, but you might not need to fine-tune an LLM and can already leverage fine-tuned LLMs. But always try to use RAG for factual use cases. 🤗
Penn Jenks retweeted
DeepSeek-Coder: When the Large Language Model Meets Programming - The Rise of Code Intelligence
- Open-sources code models (1.3B ~ 33B) released under a permissive license
- Outperforms Codex and GPT-3.5
arxiv.org/abs/2401.14196
Penn Jenks retweeted
Weight averaging and model merging for LLMs seem to be the most interesting themes in 2024 so far. What are the benefits? Combining multiple models (or checkpoints) into a single one can improve training convergence, overall performance, and also robustness.
I will probably do a deeper dive in the upcoming weeks, but here are at least 3 interesting papers. To get started, here's a selection of papers on this learning trajectory (no pun intended).
Penn Jenks retweeted
State Space Models: A Modern Approach
This is an interactive textbook on state space models (SSM) using the JAX Python library.
probml.github.io/ssm-book/ro…







































