Chip Huyen

huyenchip.com · Personal blog · on HN since 2017

Chip Huyen writes about machine learning systems, real-time ML, RLHF, LLM agents, and ML engineering careers.

What HN saysCommenters recommend her articles and book on ML systems design, and one calls her RLHF piece a great article.
98HN people shared it
32linked it in comments
88stories submitted
2.5Kstory points
7 months agolast shared
2017people per year2026

Most-shared posts

  1. 1
    RLHF: Reinforcement Learning from Human Feedback
    16 people · 7 points · first shared 2023 · discussion on HN
  2. 2
    Real-time machine learning: challenges and solutions
    8 people · 45 points · first shared 2022 · discussion on HN
  3. 3
    Building LLM Applications for Production
    7 people · 8 points · first shared 2023 · 1 comments on HN
  4. 4
  5. 5
    Machine learning is going real-time
    5 people · 14 points · first shared 2020 · discussion on HN
  6. 6
    Multimodality and Large Multimodal Models (LMMs)
    5 people · 9 points · first shared 2023 · discussion on HN
  7. 7
    Introduction to Machine Learning Interviews Book
    4 people · 178 points · first shared 2021 · 9 comments on HN
  8. 8
  9. 9
    Building a Generative AI Platform
    4 people · 10 points · first shared 2024 · 1 comments on HN
  10. 10
    Data Distribution Shifts and Monitoring
    4 people · 10 points · first shared 2022 · 1 comments on HN
  11. 11
  12. 12
  13. 13
    Confession of a so-called AI expert
    3 people · 209 points · first shared 2017 · 96 comments on HN
  14. 14
    7 Reasons not to join a startup and 1 reason to
    3 people · 11 points · first shared 2021 · discussion on HN
  15. 15
    Common pitfalls when building generative AI applications
    3 people · 7 points · first shared 2025 · discussion on HN

What HN people wrote when they linked it

emilwallner · 2025-02-07
Thanks! I saw your earlier question related to working with AI at FAANG, from the context of being 30ish, and self-taught. I was around 27 when I started learning software engineering and AI. I made a free e-book here (https://emilwallner.gumroad.com/l/no-ml-degree), and I believe most of the key points are still valid, however, when I learned software engineering and ML, ML was a rather small field and tools like chatGPT and claude didn’t exist. Imo, asking about a curriculum is the wrong framing, for me, it was more about how to find resources to focus full-time and being in an environment that increases my motivation. I started learning software engineering at home taking courses, but I procrastinated too much to be effective, maybe I did around 10 hours of effective learning per week. For me, studying C at 42 (https://www.42network.org/42-schools/), a free peer-to-peer school was crucial, and I recommend something similar. It enabled me to focus 70-90 hours a week, and after 6 months I was good enough to get competitive startup job offers. During my time, the FastAI course (https://www.fast.ai/) was the best practical AI course. I'd probably spend a week looking for ambitious projects made by recent autodidacts, and ask them which course they think is best now. And spend max 1-2 months taking the course. As for picking projects and building a portfolio, the advice in my e-book is still valid. An ambitious but realistic timeframe for landing a FAANG job is 3-5 years.…
namnnumbr · 2025-05-24
For SWEs interested in "AI Engineering" (either getting involved in how models work, or building applications on them), there's a critical paradigm shift in that using "AI" requires more of an experimental mindset than software engineering typically does. - I strongly recommend Chip Huyen's books ("Designing Machine Learning Systems" and "AI Engineering") and blog (https://huyenchip.com/blog/). - Andreessen Horowitz' "AI Cannon" is a good reference listicle (https://a16z.com/ai-canon/) - "12 factor agents" (https://github.com/humanlayer/12-factor-agents)
simonw · 2025-01-24
I haven't read these all the way through myself but I've seen enough of them that I'm confident suggesting them: - Prompt Engineering for LLMs by John Berryman and Albert Ziegler: https://www.amazon.com/Prompt-Engineering-LLMs-Model-Based-Application… - AI Engineering by Chip Huyen, which I recommend based on the strength of this extract about "agents": https://huyenchip.com/2025/01/07/agents.html
upghost · 2024-12-24
It's just a fancy word for clamping the new reward value to within some delta of the original value. Otherwise the model ends up "exploiting" outliers that make sense to machines but not to humans. They do the same thing with PPO in RLHF. Great article, if you're interested: https://huyenchip.com/2023/05/02/rlhf.html#3_2_finetuning_using_the_re…
arnabgho · 2024-06-26
I was a MLE Tech Lead at Snap and laid some of the foundations of the generative AI infra at Snap. I would highly recommend MLE route as a very rewarding career path. This book is a very good introduction to designing Machine Learning Systems for production: https://www.amazon.com/Designing-Machine-Learning-Systems-Production-R… This blog by the same author is highly recommended as an intro into building production grade AI and ML systems: https://huyenchip.com/2023/04/11/llm-engineering.html To summarize answers to your questions: (1) Yes it is wise to do this transition especially at an inflection point in the zeitgeist of the times as now (2) Yes (3) See above for resources on how to get started and reach mastery in the craft of ML Engineering.
continuousml · 2023-08-13
You're absolutely right. And I am in academia so I'm not aware of what's being done in industry. I've heard people prefer conformal prediction since it is simple and distribution-free. Also, I recommend this fantastic article by Chip Huyen: https://huyenchip.com/2022/02/07/data-distribution-shifts-and-monitori…
heliophobicdude · 2023-05-04
I think the another great paper is RLHF article from Chip Huyen https://huyenchip.com/2023/05/02/rlhf.html
de_nied · 2023-04-22
Try following the links in the article. They give much more detailed information. For example, your temperture explination can be found here[1] (Ctrl+F), which is also linked in the article. [1]: https://huyenchip.com/2023/04/11/llm-engineering.html#prompting_vs_fin…
ElijahLynn · 2017-08-11
s/thinking about what he's describing/thinking about what she's describing https://huyenchip.com/
mememememememo · 2026-03-27
Not sure it is true LLMs don't see code or cli commands directly in their training. They go through reinforcement learning and they could easily be trained on a command line. People are paid to give human feedback. See https://huyenchip.com/2023/05/02/rlhf.html
nrhrjrjrjtntbt · 2025-11-15
Yes. The learning comes from running tests on the program and ensuring they pass. So running as an agent. Tests and compiler give hard feedback- thats the data outside the model that it learns from. I think modern RLHF schemes have models that train LLMs. LLMs teaching each other isn't new. My knowledge is limited, just based on a read of https://huyenchip.com/2023/05/02/rlhf.html though.
cma · 2025-04-22
I think this is definitely not true of catastrophic forgetting from finetuning. And with other related types of forgetting from model abliteration there are often extreme increases hallucination. The InstructGPT paper also showed that RLHF made hallucination worse (with more user data rejecting common hallucinations instruction tuning and RLHF may lower specific hallucinations rejected by users though). Some mention of that here: https://huyenchip.com/2023/05/02/rlhf.html#rlhf_and_hallucination
jumping_frog · 2024-11-27
langcss · 2024-07-29
I think this is how RLHF actually works. https://huyenchip.com/2023/05/02/rlhf.html#3_1_reward_model
gcr · 2024-07-26
A complementary resource is Chip Huyen’s interview book, https://huyenchip.com/ml-interviews-book/ I find her book to be more practical and humble, though perhaps less feature-complete than the book from this post. IMO Kashani and Ivry’s writing feels a little uppity and needlessly offputting — for example, logistic regression is lumped under Kindergarten in the table of contents. Sure it’s fundamental, but implying it’s not useful anymore in our age of deep learning (listed under “Bachelor’s,” of course) is a little myopic/insulting, no? Students who feel pandered to by know-it-alls probably learn worse than students whose skills are being collaboratively built up by enthusiastic mentors. This feeling was particularly loud from the foreward, ToC, and intro; maybe it gets better after…?
gerdesj · 2024-03-15
This section invites some discussion (says British bloke): "https://huyenchip.com/2024/03/14/ai-oss.html#the_growing_china_open_so…
chiphuyen · 2024-03-15
Hi, I'm Chip, the author of the post. I spent waaaay too much time doing research for this. The AI engineering layer was especially hard because so many tools have similar and/or overlapping features. It was also a lot of pain trying to understand the repos that only have Chinese in the README do. The full list of the repos is published here: https://huyenchip.com/llama-police
quickthrower2 · 2023-10-07
> Among those who labeled demonstration data for InstructGPT, ~90% have at least a college degree and more than one-third have a master’s degree. Source: https://huyenchip.com/2023/05/02/rlhf.html#demonstration_data
cs702 · 2023-08-23
...because the technology cannot yet live up to the insane hype about and around it... fueled by over-enthusiastic promoters selling snake-oil. There are still quite a few challenges to making LLMs work reliably. For example, see https://huyenchip.com/2023/08/16/llm-research-open-challenges.html. Until AI researchers and practitioners find ways to overcome those challenges -- possibly requiring new breakthroughs -- the technology won't live up to the hype. Eventually, I believe AI will live up to the hype. But no one knows with certainty how long it will take to get there. Shame on anyone who pretends otherwise to sell snake-oil!
deepsun · 2023-06-29
Reasonable argument, I like it, however would add a bit of salt: I've seen several times so far that people maintaining things are actually doing a much better job, while those who were granted honor of doing a new thing because hey they are "pros". And once they did the prototype, they are _considered_ even more "pros", because hey, they wrote it. The people who rethought and rewrote the thing later were real makers, but didn't get the appreciation of "pros". The worst thing is that "pros" status keeps working for itself, even while delivering worse job. I wouldn't have a problem if the system could fix itself over time. Kinda related: "Confession of a so-called AI expert " https://huyenchip.com/2017/07/28/confession.html
rounakdatta · 2023-06-21
There's also this exhaustive post from one and only Chip Huyen: https://huyenchip.com/2023/05/02/rlhf.html
Banana699 · 2022-07-07
There is also the much larger confusion arising of whether it's an ML compiler in the sense of being a specialized compiler for ML code (compiles a description of a network to efficient ML-specific low-level IR to enable further optimization and code generation), or whether it's an ML compiler, a compiler (or part of it) that uses ML. The first meaning is extremly common, the top 2 results for "ML Compiler" on google returns[1][2], both using it in the first sense. It's not that ML or ML-like techniques in compiler writing is new but the first sense is definitely at least as popular an interpretation. [1] https://huyenchip.com/2021/09/07/a-friendly-introduction-to-machine-le… [2] https://petewarden.com/2021/12/24/why-are-ml-compilers-so-hard/
Cenk · 2021-05-12
Here’s a fun quote from his book, via Chip Huyen’s blog (https://huyenchip.com/2019/03/11/silicon-valley-misogyny.html) > “Most women in the Bay Area are soft and weak, cosseted and naive despite their claims of worldliness, and generally full of shit. They have their self-regarding entitlement feminism, and ceaselessly vaunt their independence, but the reality is, come the epidemic plague or foreign invasion, they’d become precisely the sort of useless baggage you’d trade for a box of shotgun shells or a jerry can of diesel.” I’m also not sure if his stance on privacy will fit in well at Apple: > “Most people don’t care about privacy. Media elites care about it, underemployed Eurocrats care about it. And the entire privacy-industrial complex — there’s an entire set of very loud voices who are constantly beating the drum and building media careers around this.”
michelb · 2021-05-12
This guy sounds like the worst culture fit at Apple. https://huyenchip.com/2019/03/11/silicon-valley-misogyny.html
vertak · 2020-07-05
You can give this article by Chip Huyen a read. Mayhaps you will find a niche for a solo or small dev team. Though it is focused on MLOps if that makes a different for the type of niche you're looking for. https://huyenchip.com/2020/06/22/mlops.html
nthcolumn · 2017-08-11
Is she having doubts brought on by the recent Google Manifesto perhaps: http://huyenchip.com/2017/08/09/sexism-in-silicon-valley.html posted earlier.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close