Data pre-processing by CPU+LPDDR
Learning/inference with GPU+HBM - paurooteriSunday, June 15, 2025
Memory for AI
Sunday, June 08, 2025
boss like
I saw a kids t-shirt and read the first part
~のような ボス
~ No yōna bosua boss likeI guessed from the picture of a dinosaur that ボ might be bo(ss). Feels good to be able to recognise a language I am learning and understand it.
Saturday, May 24, 2025
Thursday, May 15, 2025
All in one AI
Controllable reasoning "Llama-Nemotron models is their ability to toggle between standard chat mode and reasoning mode. This "reasoning toggle" allows users to dynamically control the level of reasoning performed during inference."
The blog option of Alphaxiv is great. It makes the research papers more accessible.
what is Neural Architecture Search?
As opposed to manual, NAS employs algorithms to explore a vast search space of possible architectures and identify those that perform best on a given task.
- Puzzle Framework: The NAS framework used is called Puzzle (Bercovich et al., 2024), which transforms large language models into hardware-efficient variants under deployment constraints. (Page 3)
- Block-wise Local Distillation: Puzzle applies block-wise local distillation to build a library of alternative transformer blocks, each trained independently to improve computational properties. (Page 3)
- Mixed-Integer Programming (MIP): Puzzle uses a MIP solver to select the most efficient block configuration under given constraints like hardware compatibility, latency, memory budget, or desired throughput. (Page 4)
- Accuracy-Efficiency Tradeoff: Puzzle supports multiple block variants per layer with different accuracy-efficiency tradeoff profiles, enabling users to target specific points on the Pareto frontier. (Page 4)
- LN-Ultra Optimization: During Puzzle's architecture search phase, LN-Ultra is constrained to achieve at least a 1.5x latency reduction over Llama 3.1-405B-Instruct. (Page 5)
In essence, NAS, through the Puzzle framework, allows the researchers to automatically find efficient model architectures within the Llama 3 structure, optimizing for metrics like latency, memory usage, and throughput while maintaining a desired level of accuracy. This is a key step in creating the Llama-Nemotron models, particularly LN-Super and LN-Ultra.
Collective bias when individual LLM agents interact
alphaxiv
arxiv.org to alphaxiv.org and chat away with AI.
to
https://www.alphaxiv.org/pdf/2505.09343
Insights into DeepSeek-V3: Scaling Challenges and Reflections on Hardware for AI Architectures
Trying to understand the picture:
What is cross-entropy loss?
"Cross-entropy loss is a loss function used in machine learning and optimization, particularly in classification problems. It quantifies the difference between two probability distributions: the predicted distribution from your model and the true distribution of the labels."
What is the difference between a shared expert vs routed expert?
In the context of Mixture of Experts (MoE) models, "shared experts" and "routed experts" refer to different ways of organizing and utilizing the expert sub-networks within the larger model.
- Routed experts allow the model to specialize, with different experts handling different types of inputs.
- Shared experts process all tokens, potentially capturing general features or providing a baseline level of processing.
The Problem GQA Solves: In multi-head attention, each attention head has its own separate Q, K, and V vectors. During inference, the key and value vectors from previous tokens need to be stored in a cache (KV cache) to efficiently handle multi-turn conversations. This KV cache can consume a significant amount of memory, especially for long sequences.
How GQA Works: GQA reduces memory consumption by having multiple attention heads share a single set of Key and Value (KV) pairs. Instead of maintaining separate KV pairs for each attention head, multiple heads share one. This significantly compresses KV storage.