Agile Coach /CSM/CSPO/CISM/CISA/CRISC/ITIL Expert/Python/Ruby/Linux
Taipei
Joined March 2009
- Tweets548
- Following3.5K
- Followers468
- Likes2.1K
Pi-Hsing Chung retweeted
See the impressive collection of @OReillyMedia Machine Learning / AI / Data Science books at: amzn.to/3icyoqJ
Pi-Hsing Chung retweeted
8 types of LLMs powering AI Agents:
① GPT — General-purpose
② MoE — Expert routing
③ LRM — Deep reasoning
④ VLM — Vision + language
⑤ SLM — Lightweight
⑥ LAM — Action-oriented
⑦ HLM — Hierarchical model
⑧ LCM — Concept-level
AI Agents need the right model for every task.
Pi-Hsing Chung retweeted
Algorithms and Programs — An AI-Assisted Approach: amzn.to/3UtbPDE
—
Define, design, and develop algorithms for your specific need with confidence.
Amazon summary: “Rather than relying on traditional pseudocode, this book uses precise algorithm outlines that are easier to understand and directly support correct implementation. This approach bridges the gap between design and code, reducing ambiguity and minimizing errors.”
Pi-Hsing Chung retweeted
Source for graphic: linkedin.com/feed/update/urn…
+ See the classic book on Neural Network mathematics fundamentals in the quoted post below… ⤵️
Learn Neural Networks fundamentals in this classic Machine Learning book: “Neural Smithing — Supervised Learning...”
amzn.to/2RX40V2
——————
#DataScience #ML #DeepLearning #AI #Algorithms #Mathematics #DataScientist
Pi-Hsing Chung retweeted
Embeddings are everywhere in modern AI, but the word "embedding" is doing a lot of different jobs.
A token embedding is a learned row in a vocabulary matrix. A contextual embedding is a hidden-state vector whose value depends on the surrounding sequence. A sentence or document embedding usually requires another step => some pooling or model-specific readout that turns variable-length representations into one fixed-size vector. These are related ideas, but they are not interchangeable.
The geometry is learned too. There is nothing inherently semantic about a vector just because it has 768 or 1,024 dimensions. The training objective has to shape the space so that useful pairs score well and unrelated examples separate. That is why contrastive training, hard negatives, pooling strategy, normalization, and the similarity function matter so much in modern retrieval systems.
This also explains several production bugs that look harmless at first. Cosine similarity and dot product are not generally the same, though they coincide for unit-normalized vectors. Changing the embedding model while keeping the same dimensionality does not preserve the coordinate system. Ignoring query/document prefixes can change results for models trained asymmetrically. Changing preprocessing or pooling can invalidate an existing index even when every vector still has the expected shape.
I put together a technical handbook that works through embeddings from first principles => token lookup tables, contextual representations, pooling, cosine/dot/L2 geometry, contrastive learning, dense retrieval, hard negatives, Matryoshka representations, multilingual and multimodal embeddings, and the implementation details that matter when these vectors are used for search and RAG.
The mental model I kept coming back to while writing it is simple => an embedding is useful geometry learned for a purpose. To understand one, you need to know what was mapped, how the vector was produced, what objective shaped the space, and how those vectors are compared.
Sharing the handbook here:
Pi-Hsing Chung retweeted
Tokenization is the first boundary between human-readable text and the sequence an LLM actually computes over.
A model does not receive words, sentences, or source code directly. Text passes through a tokenizer that may normalize Unicode, apply pre-tokenization rules, segment the text into learned pieces, map those pieces to integer IDs, and insert special tokens before the model ever sees an embedding.
That preprocessing step has consequences across the system. It changes how much text fits into a fixed context window, how efficiently different languages and code are represented, how numbers and identifiers are split, which vocabulary entries receive useful training signal, and even whether metrics such as perplexity can be compared fairly across models.
It also explains why several common simplifications are wrong. BPE is not inherently byte-level. SentencePiece is not a single tokenization algorithm. Token IDs are labels tied to learned model parameters, not semantic coordinates. And once a model has been trained around a tokenizer, replacing that tokenizer is not a harmless preprocessing swap.
I put together a technical handbook that works through this from first principles => Unicode and UTF-8, normalization, pre-tokenization, BPE, byte-level BPE, Unigram, WordPiece, vocabulary construction, special tokens, chat templates, multilingual and code behavior, numerical tokenization, context length, under-trained tokens, and the failure modes that usually get skipped.
The explanations are grounded in the original papers and current implementations.
Sharing Understanding Tokenization here:
Pi-Hsing Chung retweeted
Foundations of Large Language Models: arxiv.org/abs/2501.09223 [277-page PDF]
Pi-Hsing Chung retweeted
The most important skills for using AI coding agents effectively. Presenting the AI Engineering Skills Map for using coding agents.
Pi-Hsing Chung retweeted
Download this Free 189-page PDF — The Little Book of Deep Learning: fleuret.org/public/lbdl.pdf
————
#MachineLearning #ML #DataScience #DataScientist #Mathematics
Pi-Hsing Chung retweeted
Introduction to Time Series Analysis and Forecasting [2nd edition] (from the Wiley Series in Probability and Statistics): amzn.to/3PYxMW3
Pi-Hsing Chung retweeted
"Mathematical Thinking - For People Who Hate Math: Level Up Your Analytical and Creative Thinking Skills. Excel at Problem-Solving and Decision-Making"
Get started at amzn.to/4byYxv7
U2 - Street Of Dreams (Official Video) youtu.be/hRnS0Wf64Is?si=xROZ… via @YouTube
2
Pi-Hsing Chung retweeted
People think learning Claude takes days. It doesn't.
I wrote 17 free guides that teach it in hours:
Claude 101: ruben.substack.com/p/claude-……
Claude Code: ruben.substack.com/p/the-cla……
Claude Skills: ruben.substack.com/p/claude-…
Claude Design: ruben.substack.com/p/claude-…
Claude for Excel: ruben.substack.com/p/how-to-……
How to Prompt: ruben.substack.com/p/prompt-…
Claude + Linkedin: ruben.substack.com/p/claude-……
Be good at Claude: ruben.substack.com/p/s
Stop writing like AI: ruben.substack.com/p/its-not……
Claude Certificates: ruben.substack.com/p/im-clau……
Claude for your team: ruben.substack.com/p/claude-……
Claude Connectors: ruben.substack.com/p/claude-……
Set up Claude Cowork: ruben.substack.com/p/claude-……
Stop Prompting Claude: ruben.substack.com/p/stop-pr……
Claude to sound like you: ruben.substack.com/p/youre-j……
Stop hitting Claude limits: ruben.substack.com/p/how-to-……
Stop using Claude at work: ruben.substack.com/p/how-to-……
___
If you’d love to see more content like this, don’t forget to follow @sauda_coder for more AI magic.
Pi-Hsing Chung retweeted
1. Claude (solve any problem)
2. Perplexity (research anything)
3. Portfoliotab (create your portfolio)
4. Klingai (create AI videos)
5. Tripo AI (create 3D models)
6. Gemini (perfect writing)
7. Capcut (edit videos)
8. TheAILibrary (helpful tools)
9. Youlearn (summarize YouTube)
10. Canva (design graphics)
11. ElevenLabs (clone voices)
12. Podcastle (edit podcasts)
13. ✅ Save this list, it might be incredibly useful.
Pi-Hsing Chung retweeted
🚨 Anthropic just showed a 27-minute workshop on how to actually do prompts for Claude.
Taught by the people who built it.
Free. No registration. No paywall.
I've seen $300 courses that don't cover what they teach in the first 8 minutes.
Watch it and bookmark it now.
Pi-Hsing Chung retweeted
Personal knowledge bases are having a moment.
Team knowledge bases are a different problem entirely.
Andrej Karpathy shared his LLM-powered research setup:
1️⃣ Ingest → clip articles, papers, repos into a raw/ folder
2️⃣ Compile → LLM builds a .md wiki — summaries, backlinks, concepts
3️⃣ Q&A → ask complex questions. The LLM navigates its own index
4️⃣ Compound → every query enriches the wiki. It gets smarter over time
You rarely touch it manually. It's the LLM's domain.
Cool. But this is a personal swipe file. Not a team knowledge base.
A personal wiki going stale is your problem. A team wiki going stale is everyone's problem.
Team KBs need things personal ones don't: a verification layer, freshness monitoring, search across Slack + docs + meetings, and constant ingestion from internal tools, not just web clippings.
And the instinct to pre-map everything?
That's the enterprise version of "if we just organized the wiki better, people would find things."
Organization lost to search in '98. Google won. It's happening again in AI. Context graphs are the new folder structures: impressive to build, painful to maintain.
Agentic retrieval builds context on the fly. No pre-computed graph needed. We ran Glean's own benchmark questions through ours, no stored graph, and it handled every one. (Details in the article below from @Christophepas)
Karpathy said: "There is room here for an incredible new product instead of a hacky collection of scripts."
He's right. And that product exists. 👉 linkedin.com/pulse/your-comp…
Best Probability Courses- mltut.com/best-resources-to-…


































