fabianbaumann (@ftw_baumann) profile picture
Joined January 2020
fabianbaumann retweeted
New preprint! The collective behavior of LLM agents can be predicted from tests on a single agent, but only if the agent is measured in the context in which it acts. Measured out of context, it mispredicts what the population does. arxiv.org/pdf/2611.12256
3
7
1
31
1,331
fabianbaumann retweeted
I'm Boris and I created Claude Code. Lots of people have asked how I use Claude Code, so I wanted to show off my setup a bit. My setup might be surprisingly vanilla! Claude Code works great out of the box, so I personally don't customize it much. There is no one correct way to use Claude Code: we intentionally build it in a way that you can use it, customize it, and hack it however you like. Each person on the Claude Code team uses it very differently. So, here goes.
1,300
6,902
1,284
54,121
8,248,990
fabianbaumann retweeted
University of Michigan has an open assistant professor position in Complex Systems. Amazing opportunity to do join an interdisciplinary community of faculty and students. Looking for discipline thinkers who transcend disciplines. lsa.umich.edu/cscs/news-even…
3
60
1
162
25,981
🔔 New paper out in @PNASNews 🔔 “Large Language Models based on historical text could offer informative tools for behavioral science” W/ Michael Varnum, Nicolas Baumard, & @kurtjgray
5
80
5
299
39,114
fabianbaumann retweeted
Large study shows humans can learn from AI feedback but access to AI also amplifies existing inequalities by increasing the skill gap and reduces intellectual diversity: everyone learns to specialize in the same areas arxiv.org/abs/2409.18660
1
24
1
71
9,346
fabianbaumann retweeted
Haha we've all been there. I stumbled by this tweet earlier today and tried to write a little utility that auto-generates git commit message based on the git diff of staged changes. Gist: gist.github.com/karpathy/1dd… So just typing `gcm` (short for git commit -m) auto-generates a one-line commit message, lets you to accept, edit, regenerate or cancel. Might be fun to experiment with. Uses the excellent `llm` CLI util from @simonw llm.datasette.io/en/stable/
This post is from an account that no longer exists. Learn more
170
328
57
4,749
596,754
fabianbaumann retweeted
Our project for experimentally testing planetary regulation (Lovelock & Margulis) on the test tube, using a synthetic microbial Gaian system (+1 PhD), has been funded by @AgEInves. A great adventure that started at @sfiscience 2 yrs ago with @VictorVmaull & @jordiplam
4
38
1
182
8,633
fabianbaumann retweeted
Super excited to share our new work (and the first of my PhD) : "Evolving Self-Assembling Neural Networks: From Spontaneous Activity to Experience-Dependent Learning" We propose Lifelong Neural Developmental Programs for continually self-organizing artificial neural networks !
9
62
10
475
55,663
fabianbaumann retweeted
Deadline shifted to June 15!
Postdoc position in Marseilles in an interdisciplinary project with @BrovelliAndrea cpt.univ-mrs.fr/~barrat/post… Deadline for applications: June 5, 2024
8
9
1,987
I've gotten quite a few cold emails from students who found this long review I wrote useful and I'd like to do...something with it. It's way too long to submit as a stand-alone paper to, say, Entrop tho. Does anyone publish big tutorial reviews like this? arxiv.org/abs/2304.12482
11
78
1
413
59,519
Now out in Trends in Cognitive Sciences!
🚨 New preprint 🚨 In "Beyond the here and now: Counterfactual simulation in causal cognition", I discuss what role counterfactual simulation plays for how people judge causation and assign responsibility. 📰 osf.io/preprints/psyarxiv/72…
2
59
272
41,574
fabianbaumann retweeted
Anyone else find themselves estimating the "GPT grade" of things you hear/read? When something is poorly written or generic, it's "GPT-2 grade" content. When something is lit, you can complement it as being "GPT-7 grade" etc. This reminds me of a fun side project I had saved for myself but will realistically never get around to, maybe someone can take a shot. Simply - train a classifier that predicts GPT-grade of any text. The training data would be samples from models of increasing strength. It might be that GPT models are too coarse and that too much changed between each one. Ideally you'd want a nice miniseries where everything is held constant except the model size, e.g. Llama 3 series, esp when they also release the smaller (and bigger!) models. Sample from the models over many prompts (or use base models?), classify the model size, then point it at various text on the internet, e.g. study the divergence between the comments section of WSJ and VC thought leadership :p. To be clear I have no idea if this would work, e.g. the classifier might very well latch on to the style a lot more than the content. Or it might measure not exactly an "intelligence" of text, but more just a "generic-ness", a proxy for frequency or so. It might also be an interesting way to study what is learned as you increase model size. But that's why it's an interesting project - it feels like it might kind of work, but it's not obvious and a number of details are tbd. Eye candy: ChatGPT attempts to visualize the above
56
71
13
1,224
250,855
Honesty and helpfulness are two central goals of LLMs. But what happens when they are in conflict with one another? 😳 We investigate trade-offs LLMs make, which values they prioritize, and how RLHF and Chain-of-Thought influence these trade-offs: arxiv.org/abs/2402.07282 [1/3]
1
11
1
59
11,110
fabianbaumann retweeted
In our new paper in @Ecology_Letters we apply modern coexistence theory to higher order species interactions where we compute niche and fitness differences as changin over time Thanks to Agnieszka Majer, Anna Skoracha (not on twitter) and @L_Kuczynski doi.org/10.1111/ele.14428 1/7
1
9
26
2,461
fabianbaumann retweeted
the divide on perceived ideology of Target but not Walmart is pretty striking
Our latest Path to 2024 report examines attitudes toward corporate political activism. Only 27.8% of Americans support corporations taking stances on social issues, with more Dems (39%) expressing support than Reps (23.3%). Read the full report: prlpublic.s3.amazonaws.com/r…
4
7
3
23
9,561
fabianbaumann retweeted
How can we model the collective behavior of complex systems with many dimensions? Is it possible 2 find a model reduction that captures the key components? Check this great paper in @PhysRevLett & how to use it in many different contexts (networks+Ising) physics.byu.edu/faculty/tran…
1
32
1
141
11,742
fabianbaumann retweeted
It’s amazing how many empirical features of interactions and collective response can emerge from a simple imperative: to minimize surprise. Out today in PNAS @PNASNews - with @conorheins @richardpmann Karl Friston and colleagues! @CBehav @maxplanckpress pnas.org/doi/10.1073/pnas.23…
7
107
12
399
68,489
fabianbaumann retweeted
Highly amusing update, ~18 hours later: llm.c is now down to 26.2ms/iteration, exactly matching PyTorch (tf32 forward pass). We discovered a bug where we incorrectly called cuBLAS in fp32 mathmode 🤦‍♂️. And ademeure contributed a more optimized softmax kernel for very long rows (50,257 elements per row, in the last logits layer). But the fun doesn’t stop because we still have a lot of tricks up the sleeve. Our attention kernel is naive attention, not flash attention, and materializes the (very large) preattention and postattention matrices of sizes (B, NH, T, T), also it makes unnecessary round-trips with yet-unfused GeLU non-linearities and permute/unpermute inside our attention. And we haven’t reached for more optimizations, e.g. CUDA Graphs, lossless compressible memory (?), etc. So the updated chart looks bullish :D, and training LLMs faster than PyTorch with only ~2,000 lines of C code feels within reach. Backward pass let’s go.
A few new CUDA hacker friends joined the effort and now llm.c is only 2X slower than PyTorch (fp32, forward pass) compared to 4 days ago, when it was at 4.2X slower 📈 The biggest improvements were: - turn on TF32 (NVIDIA TensorFLoat-32) instead of FP32 for matmuls. This is a new mathmode in GPUs starting with Ampere+. This is a very nice, ~free optimization that sacrifices a little bit of precision for a large increase in performance, by running the matmuls on tensor cores, while chopping off the mantissa to only 10 bits (the least significant 19 bits of the float get lost). So the inputs, outputs and internal accumulates remain in fp32, but the multiplies are lower precision. Equivalent to PyTorch `torch.set_float32_matmul_precision('high')` - call cuBLASLt API instead of cuBLAS for the sGEMM (fp32 matrix multiply), as this allows you to also fuse the bias into the matmul and deletes the need for a separate add_bias kernel, which caused a silly round trip to global memory for one addition. - a more efficient attention kernel that uses 1) cooperative_groups reductions that look much cleaner and I only just learned about (they are not covered by the CUDA PMP book...), 2) the online softmax algorithm used in flash attention, 3) fused attention scaling factor multiply, 4) "built in" autoregressive mask bounds. (big thanks to ademeure, ngc92, lancerts on GitHub for writing / helping with these kernels!) Finally, ChatGPT created this amazing chart to illustrate our progress. 4 days ago we were 4.6X slower, today we are 2X slower. So we are going to beat PyTorch imminently 😂 Now (personally) going to focus on the backward pass, so we have the full training loop in CUDA.
150
517
122
5,931
1,080,157
fabianbaumann retweeted
THE REVENGE OF PYTORCH just kidding :) @cHHillee (from PyTorch team) was kindly able to help improve the PyTorch baseline, done by 1) upgrading to nightly, 2) using the "compound" F.sdpa (scaled dot product attention) layer directly, and turning on a torch compile flag: TORCHINDUCTOR_COORDINATE_DESCENT_TUNING=1 The numbers are a bit different because this is a bit different GPU (A100 80GB, with higher memory bandwidth) but: llm.c: 23.026892 PyTorch 2.2: 22.408ms PyTorch nightly: 21.090ms PyTorch nightly + F.sdpa: 19.224ms PyTorch nightly + F.sdpa + coordinate descent tuning torch inductor flag: 18.809ms so ~20% speedup, see the fork for more details: github.com/Chillee/llm.c?tab… another nice attached pointer is that torch compile can also generate and emit C++ code: github.com/Chillee/llm.c/blo…
28
41
7
1,199
296,439