首页›发现›人工智能›Jay Alammar

Jay Alammar

Atom
访问网站
文章数10
更新频率近 8 周没有更新
最近抓取20分钟前
订阅方式Atom
订阅地址https://jalammar.github.io/feed.xml

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

Moving To Substack

I’m freezing this blog and starting to post on my Substack instead. The authoring experience is much more convenient for me there. Please follow me there, and check out The Illustrated DeepSeek R-1 if you haven’t yet. And check out our How

Generative AI and AI Product Moats

Here are eight observations I’ve shared recently on the Cohere blog and videos that go over them.: Article: What’s the big deal with Generative AI? Is it the future or the present? Article: AI is Eating The World

Remaking Old Computer Graphics With AI Image Generation

AI 摘要The author recounts using AI image generation tools—Stable Diffusion (via Dream Studio), Midjourney, and DALL-E—to recreate the intro cinematic of the 1987 MSX video game Nemesis 2 in higher-resolution graphics. He describes the prompting process and the challenges encountered, such as reproducing specific poses, consistent characters, and readable text, which he addressed through prompt engineering, in-painting, outpainting, and manual Photoshop edits. He concludes with a comparison of the three services, praising Dream Studio's workflow and API, Midjourney's superior image quality, and DALL-E's outpainting capabilities.

The Illustrated Stable Diffusion

AI 摘要This article provides an illustrated, accessible explanation of how Stable Diffusion works, breaking down its three main components: a CLIP text encoder that converts prompts into token embeddings, a UNet + scheduler that gradually denoises information in latent space, and an autoencoder decoder that produces the final pixel image. It explains how diffusion models are trained to predict and remove noise, and how text conditioning allows users to control what images are generated. The article also highlights the speed benefit of running diffusion on compressed latent representations rather than raw pixels, and notes that larger language models improve generated image quality.

Applying massive language models in the real world with Cohere

A little less than a year ago, I joined the awesome Cohere team. The company trains massive language models (both GPT-like and BERT-like) and offers them as an API (which also supports finetuning). Its founders include Google Brain alums in

The Illustrated Retrieval Transformer

AI 摘要The article explains DeepMind's RETRO (Retrieval-Enhanced Transformer), a language model that performs on par with GPT-3 despite being only 4% of its size (7.5 billion vs. 185 billion parameters) by augmenting its input with information retrieved from a database containing 2 trillion tokens. The model uses BERT sentence embeddings to look up nearest neighbors in a key-value database and incorporates the retrieved text through an encoder-decoder architecture that employs chunked cross-attention in special RETRO decoder blocks. This approach demonstrates that continuously scaling up model size is not the only way to improve performance, since separating factual world knowledge from language processing allows for smaller, cheaper, and faster models.

Explainable AI Cheat Sheet

Introducing the Explainable AI Cheat Sheet, your high-level guide to the set of tools and methods that helps humans understand AI/ML models and their predictions. I introduce the cheat sheet in this brief video:

Finding the Words to Say: Hidden State Visualizations for Language Models

AI 摘要This article introduces Ecco, an open-source package for making transformer language models more transparent by visualizing how hidden states evolve from layer to layer during text generation. By projecting each layer's hidden state onto the output vocabulary, the visualizations reveal token rankings and probability scores across layers, demonstrating how models build confidence in their output choices. The article showcases applications such as examining subject-verb agreement tasks, understanding layer contributions to token selection, and probing gender bias in profession-related predictions.

Interfaces for Explaining Transformer Language Models

AI 摘要This article introduces interactive interfaces for interpreting transformer-based language models, focusing on two explainability methods: input saliency and neuron activations. It demonstrates how gradient-based saliency (Gradient × Input) reveals which input tokens most influenced each generated output token, with examples using models like GPT2-XL and DistilGPT2, and examines how neuron groups in feed-forward layers respond to different input patterns. The article is accompanied by an open-source library, Ecco, for creating similar interactive visualizations in Jupyter notebooks.

How GPT3 Works - Visualizations and Animations

AI 摘要The article explains how GPT-3 works as a massive transformer decoder model with 175 billion parameters, trained on 300 billion tokens of text at an estimated cost of $4.6 million and 355 GPU years. It describes the training process of predicting the next word, calculating errors, and updating parameters across 96 transformer decoder layers with alternating dense and sparse self-attention within a 2048-token context window. Finally, it notes that the model generates output one token at a time and that upcoming fine-tuning capabilities will make it even better at specific tasks.