Understanding Electromagnetism via Field Tensor and Exterior Derivative

Math is a language and language can be simple and more sophisticated. Based on Faraday's discovery of electromagnetism, Maxwell came up with Maxwell equations, the vector calculus language to describe it, but when we elevate to 4D and leverage tensor and differential geometry to describe the same, we got more beautiful statement. From Reumi's world, … Continue reading Understanding Electromagnetism via Field Tensor and Exterior Derivative

True Understanding of Query, Key and Value in Transformer’s Attention Mechanism

If you truly understand a theory, you can code it up and run it. So is my approach to truly understanding q, k and v in transformer's attention mechanism. in Previous blog, using "the cat chased the mouse" as an example the math is illustrated in details. Now apply it in codes (from Andrej Kaparthy): … Continue reading True Understanding of Query, Key and Value in Transformer’s Attention Mechanism

Web Search, File Search and Computer Use Released by OpenAI

OpenAI just released in face of fierce competition in the market. When generating model responses, you can extend model capabilities using built-in tools. These tools help models access additional context and information from the web or your files. The example below uses the web search tool to use the latest information from the web to generate a model … Continue reading Web Search, File Search and Computer Use Released by OpenAI

Discrete Differential Geometry: Interpolation and Discretization

If I measure three points in a space with three temperature, it's easy and straightforward to interpolate every point in this triangle so I have a smooth view approximately. We can use simple weighting schema depending on distance to each of the three points. It's exactly the same logic to be applied when elevate to … Continue reading Discrete Differential Geometry: Interpolation and Discretization

Derivative is the Opposite of the Boundary

In calculus, we learn that the derivative measures change. But in a deeper mathematical sense, differentiation acts as the opposite of taking a boundary. This idea is best understood using the language of differential forms and chains. At its core, differentiation isn't just about slopes—it's about how things flow across a space. And just as … Continue reading Derivative is the Opposite of the Boundary