aiur (@alwayslaunch) header
aiur (@alwayslaunch) profile picture

human wrapper over ai wrappers

New York, NY
Joined January 2024
Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)Photo by aiur (@alwayslaunch)
“Mom how did we get so rich?” “Your dad added ‘serverless ai’ to his database company and sold his shares during the series D before it went to zero”
12
48
2
1,232
64,689
Interesting point from @altcap Being early in some markets is the same as being wrong, eg search in the late 1990s You could have bought Google at the IPO in 2004 and captured 90% of the value
48
98
23
1,362
394,389
while the app store was hot back in the day one of my friends quit his job on the spot & told me as we were having breakfast (we both worked together). i asked him what his plan was. he said he had no idea but will figure it out. we got dinner a month later and he told me he spent his entire time documenting apps that were popular on the app store but were poorly made. so he decided to clone one of them, & make it way better and use his distribution skills to target. he made $5m on that one app in 1 year. it’s likely the same thing happens with ai, but instead of targeting small apps, you target a mediocre run mid sized business & totally change the way it functions from the bottoms up to reduce cost & decrease inefficiency. if i were a vc firm, i’d have skilled people on the hunt to find & break down these types of legacy businesses. which businesses do you think are ripe for this type of direct targeting by skilled entrepreneurs?
23
37
4
899
105,859
The dark secret of AI research is that AI research is not that hard, but veiled in the mystique of prestige and difficulty. Coding a transformer from scratch is not hard. Coding a multimodal LLM from scratch is not hard. Some of these AI researchers be gatekeeping. The YouTuber who taught me a 32 step makeup routine would be able to code a transformer from scratch. My hair dresser who lightened my hair to this precise shade of caramel bronde would be able to code a transformer from scratch. My friends from undergrad who went into the adult entertainment industry instead of STEM would be able to code a transformer from scratch with their eyes closed. The knowledge is _specialized_, but not difficult. There is a difference. Our perception of AI research has more to do with socioeconomics, class, and what we consider prestigious, than the inherent difficulty of the thing. Some of these AI researchers be gatekeeping.
348
460
158
5,276
932,844
1/ my partners @sequoia like to tell a story about how we had this brilliant SaaS thesis that led us to Fred Luddy, founder of @ServiceNow... but the truth is that we pinged him because it was a company, and my job was to find companies. here is the actual CRM record, starting in 2008: lmwa [“left message with assistant”, back when cold calls actually involved picking up the phone] lmwa emailed lmwa emailed lvm [“left voice mail”] lvm lvm emailed emailed emailed first response!!!
39
62
31
887
328,526
Coding with Claude
133
852
139
9,957
942,578
People who think LLMs are replacing all engineering are the people who last coded when everything was an index.php file and production push was simply an FTP copy.
64
89
12
862
77,163
The same behavior happened during the ZIRP era. Take a margin loan out against your equities at a 2% variable rate and buy an AirBnB with it that yields 7%. 7% - 2% = 5% of free money, right?! ...right?
1
20
1
652
170,140
People often ask why prices like $2.8/m token for Llama 405B, while being super fast, are still profitable at @LeptonAI. We've even been asked by a leading GPU provider! So, I figured we should share some technical analysis. This information could benefit the community. We've taken these statistics and analysis for granted, but they might not be obvious to everyone. 1. Big batches: Each request receives an output of ~30 tokens/second. Batching (grouping multiple requests simultaneously) significantly improves total throughput, often 10x or higher than a single request. GPUs are more efficient with larger batches. 2. Dynamic batching: This technique immediately adds a new request to an existing batch instead of making it wait, ensuring the GPU always works at high capacity. 3. Input tokens: The ~30 tokens/second refers to output tokens. Input tokens are processed much faster (known as "prefilling"). Typically, the input length is many times larger than the output (3x to 10x). This increases the total number of tokens processed, explaining why there is often separate billing for input and output. 4. Quantization: Using 8-bit integers or 8-bit floats instead of 16-bit floats reduces memory usage and speeds up processing because the GPU accesses less memory. Newer GPUs also have hardware instructions for lower bit numbers, increasing speed further. For example, the new Nvidia Blackwell GPU supports 4-bit floats (fp4). Quantization also saves memory, allowing even bigger batches from point 1, making it more economic. 5. Speculative decoding: This method uses a smaller model to predict the next token. For example, predicting "you" after "it is good to see" doesn't require a large model. Smaller models make such predictions faster. The Medusa algorithm by @tianle_cai is a specific example of this approach. 6. Prompt caching: LLMs often encounter repeated prefixes, such as "you are a smart AI agent" in system prompts. Caching these prefilled prompts avoids recalculating them, speeding up repeated requests. 7. Optimizing GPU setups: This involves using large GPUs for big models, small GPUs for small models, and matching GPUs to specific tasks—some are better for prefilling, others for decoding. There are many optimization opportunities here. This is not a complete list. We integrate these methods (and a growing number of more) in our runtime to ensure profitability with reasonable traffic. Lepton is created by experts who have developed key AI software over the past decade - Caffe, ONNX, PyTorch - alongside cloud experts like the creator of etcd and core contributors to Kubernetes. We provide not only LLM APIs, but also a full cloud-native experience to help you find, use, and optimize GPUs on our cloud platform. We love the open-source and open-access community. What AI technical explanation would you like to hear next?
How are model providers making money serving Llama 405B? A 8xH100 node costs around 1k per day. It can serve Llama 405B at ~300tok/s (with ten batched requests). > That's 26M tokens per day, at $3/Mtokens = $78
36
141
32
1,050
257,725
Controversial take, but at this point in the cycle LLM wrappers or applications may actually be a better opportunity than LLM ops/infra/tools: - Things are changing so quickly that building your product around an architecture or pattern that might not be relevant in 3 months is rough. - The engineer's tendency to prematurely optimize and build the general abstraction is leading to everyone in the space going for the infra or framework opportunity. There might be more libraries than applications right now. At some point you have to go and do something with all the picks and shovels. - Most of the money in VC (and YC) is going to these sort of companies since the few that work will capture a lot. But that means right now it's extremely saturated and anything you build can be copied quickly by a VC-backed company. - The few companies that *are* building proper AI applications right now are already extremely technical and are less likely to buy a bunch of point solutions. They're more likely to build custom solutions in house, and even discover new patterns before infra or tool companies. I'm glad these companies exist, and I'm working on a service in this space in my spare time (Embedding Sync) - so this is more of my reflections from investing in the space and chatting with lots of folks. Long term, there will definitely be some huge success in the space (I really like what @langchain is doing with LangSmith), but the market opportunity for building the marginal LLMops company seems much worse than working a layer above it on consumer or industry application to problems.
35
57
17
684
371,933
"Writing online is a conversation" – @fredwilson, writer of essays (and checks) for the last 20 years
12
15
3
133
18,419
People are so keen on replacing software engineers with LLMs. Software engineers won't be replaced. They will more potentially have an entirely new stack.
49
114
39
1,151
214,902
I used to pitch seed investors with a fancy slide deck. It generated average interest from average investors—and virtually no interest from sophisticated consumer investors. After about 3 months of trial & error, I switched to: ⬝ Hand them a prototype ⬝ Leave the room ⬝ Quickly text my team to interact with the investor on the app Then after 5 minutes, I would come back into the room and start explaining the longterm vision. Virtually every time they would interrupt me and say they'd like to invest. For consumer products, you should let them speak for themselves, instead of wasting your time on a presentation that convinces your idea is good. While you should certainly have slides ready to explain your tactical plans, getting an investor to experience the Aha Moment themselves will compensate for any other issue with your pitch. The last mile of conviction—when they tap "Send" on the wire—all comes down to intuitively understanding the concept. And if the product demo doesn't resonate with them: they were never going to invest anyway.
48
98
39
2,948
444,933
AI companies train their models on internet data, but we've literally run out of Common Crawl data. To solve this shortage, companies like openai and anthropic are rumored to be generating synthetic data. Whisper enables someone to scrape all the tokens from youtube. Unreal engine, blu rays. Real world data like sensors and 3d can generate a better "world model." Companies like openai and anthropic are rumored to be paying to license high quality private datasets that aren't in Common Crawl. UiPath and the H Company have a partnership. (UiPath records and automates the workflows of browser tasks) After that, then what? Do we run out of human data and just rely on synthetic data? Where do we find more tokens? The largest reservoir of human tokens are in the human brain🧠 As you think through hard problems, your brain's internal monologue becomes a tree of reasoning branches🌴 Lately the frontier ai labs are rumored to be experimenting with Q* and Quiet Star which are loosely inspired by the RL reasoning and MCTS done by a real human's internal monologue. I wonder if the AI labs are currently building a noninvasive BCI to decode a brain's internal monologue, and then scraping those tokens to train the next GPT? Do brain decodings lead to AGI? With better reasoning capabilities, AI models can win gold in the math olympiad and make new discoveries in math and science. However there's important ethical implications to consider when involving human subjects and medical neuroprosthesis
4
3
2
27
3,314
Buried in 10 years of Jensen Huang's Stanford talks are the secrets to building the most valuable tech company in the world. I dug through hours of talks and mapped out how the 30 year veteran CEO of NVIDIA thinks about inventing the future.
31
393
24
2,382
433,695
Don't be fooled by the "venture" in "venture debt." Lenders don't have the same incentives as investors. You don't get how different they are till it happens to you. They're perfectly happy to kill a prosperous company to get their capital back.
74
114
42
1,510
348,374
This post got a lot of attention. I wanted to add more, here's my advice of how to go from no experience in ML to getting hired (from someone who got a FAANG job as an ML scientist without any CS or ML degrees) Classes/Resources to follow: Getting hired for an intro level ML job only takes 2 graduate level classes in addition to a normal software engineering job, Intro to ML and Deep Learning with a Focus in your specialty area. See next tweet for links Don’t skip the basics! Machine learning is extremely easy to do wrong. Here’s cautionary tale: Once I saw someone build an ML model, test it, and get 90%+ F1 score. They deployed the model to production, where it ran for months. They then transferred ownership of the model to my team, who investigated more deeply. It turns out the model was useless! It wasn’t doing any better than random guessing! The problem was there was train/test leakage, so the high test score was just from overfitting to examples in the test set. The people responsible for deploying the model originally didn’t know the importance of auditing + monitoring the model in production so they didn’t even know how useless it was. Knowing the basics would've prevented this. Learn by building: I can’t count how many times I’ve watched a lecture or read a paper, thought I understood it, but when I tried to implement it, I realized I didn’t understand as well as I thought I did. Taking courses is important, but you’ll get so much more out of them if you start with a project idea in mind. Don’t expect things to work perfectly first try. It usually takes me 50+ experiments before I have a model that I’m ready to release to production. Design your experiments so you can iterate quickly. What projects to work on: Start off with small projects, things you can imagine building in a weekend. As you learn more, you’ll be able to build bigger and cooler projects in the same amount of time (also you’ll build a good library of reusable code that’s common between the projects). One good thing to practice is reading a paper and implementing it. That helps you understand the paper better, and can be really useful to other people. For building a portfolio to get hired, it’s important that there’s some way to easily verify that the project is good. For example, if I tell you I trained a model and got 99% percent accuracy, that doesn’t really tell you anything, because maybe I just had some train/test leakage, or the data was imbalanced with more positives, or it was just an easy problem. Try to have some easily understandable impact from your model. For example, in my initial portfolio, I did one image generation project, and during the interview I showed the interviewer pictures from my phone. For another project I made a model to play the 2048 game. The model was able to get the 4096 tile, which is better than I could do myself. My last portfolio project was some freelance work I had done, so I could demonstrate business impact. It’s even better if you show the quality of the project through a metric everyone recognizes. E.g. If you can do well in a kaggle competition, get a paper into a conference, or make a library or model that a lot of people use, then that will stand out. Work with others: Post about your work online. Share what you’ve learned. You’ll meet cool people and learn a lot from them. Getting attention from posting your work is a good way to make opportunities for yourself, especially compared to applying for jobs where you don’t even know if the recruiter will look at your resume. There's a lot more to include (e.g. common pitfalls, how to think with an ML mindest), but wanted to start with this high level roadmap. If there's interest I can do a follow up post with more info about any common questions I get Basically, I just want to make the point that all the information you need to get started in ML is freely available. You don't need fancy degrees or to be a genius. You just need to get the skills and build.
Replying to @levelsio
I’m an ML scientist at a FAANG company and half my colleagues (including myself) have no CS degree. We transferred from other fields after teaching ourselves ML. Just build cool stuff and then getting hired isn’t too hard
16
123
10
1,317
413,138
My 3 predictions after consulting and advising over 10 companies: 1. We will transition from chatbots to report generation. 2. The focus will shift from time saved to better decision-making and minimizing mistakes. 3. The API will resemble structured outputs jxnl.co/writing/2024/06/05/p…
23
45
10
462
105,960
Great paper summarizing the prompt techniques - The Prompt Report. - 58 text-only prompting techniques including zero-shot, few-shot, thought generation, ensembling, self-criticsm, and decomposition techniques. Few-shot CoT performs the best among the few techniques they benchmarked - Prompt Engineering: Meta prompting, auto prompt, automatic prompt engineer, gradient free instructional prompt search, prompt optimization with textual gradients, RLPrompt, dialogue-comprised policy-gradient-based discrete prompt optimization - Answer Engineering: Answer shape, answer space, answer extractor - Agents: tool use agents, code-based agents, observation-based agents, RAG - Security: prompt hacking (prompt injection, jailbreaking), risks (data privacy, code generation concerns, customer service), hardening measures ( prompt-based defense, guardrails, detectors). - Alignment: ambiguity, biases, calibration, prompt sensitivity 🔗arxiv.org/abs/2406.06608
26
436
21
2,322
356,122
We ran some numbers 🤓🧮 Up to around $500K ARR there's not a whole lot of difference between VC-backed and bootstrapped businesses... ...then things start to diverge! Full report chartmogul.com/reports/saas-…
4
4
15
1,729