<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rusdy Krisman</title>
    <description>The latest articles on DEV Community by Rusdy Krisman (@rusdykrisman).</description>
    <link>https://dev.to/rusdykrisman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4151368%2F39abcadf-278a-4516-be6d-77cf3e62e716.png</url>
      <title>DEV Community: Rusdy Krisman</title>
      <link>https://dev.to/rusdykrisman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rusdykrisman"/>
    <language>en</language>
    <item>
      <title>EVPN/VXLAN/BGP Fabrics Fundamentals – Part 1: The Foundations</title>
      <dc:creator>Rusdy Krisman</dc:creator>
      <pubDate>Fri, 04 Sep 2026 05:18:54 +0000</pubDate>
      <link>https://dev.to/rusdykrisman/evpnvxlanbgp-fabrics-fundamentals-part-1-the-foundations-em9</link>
      <guid>https://dev.to/rusdykrisman/evpnvxlanbgp-fabrics-fundamentals-part-1-the-foundations-em9</guid>
      <description>&lt;h4&gt;
  
  
  &lt;strong&gt;A Beginner’s Guide to Modern Ethernet Fabrics for HPC and AI Environments&lt;/strong&gt;
&lt;/h4&gt;

&lt;h6&gt;
  
  
  vendor-neutral fundamental, packet walks, AI/HPC design context , and troubleshooting
&lt;/h6&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Part 1 — The Foundations&lt;/strong&gt;  ← &lt;em&gt;You are here&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://rusdykrisman.com/evpn-vxlan-bgp-part2-vxlan-evpn/" rel="noopener noreferrer"&gt;Part 2 — VXLAN and EVPN&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://rusdykrisman.com/evpn-vxlan-bgp-part3-distributed-network-services/" rel="noopener noreferrer"&gt;Part 3 — Distributed Networking Services&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://rusdykrisman.com/evpn-vxlan-bgp-part4-how-fabric-works/" rel="noopener noreferrer"&gt;Part 4 — How The Fabric Works&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://rusdykrisman.com/evpn-vxlan-bgp-part5-hpc-ai-environments/" rel="noopener noreferrer"&gt;Part 5 — HPC and AI Environments&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://rusdykrisman.com/evpn-vxlan-bgp-part6-operations-automation-troubleshooting/" rel="noopener noreferrer"&gt;Part 6 — Operations, Automation, and Troubleshooting&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://rusdykrisman.com/evpn-vxlan-bgp-part7-design-examples-glosary-references/" rel="noopener noreferrer"&gt;Part 7 — Design Examples, Glosary, and References&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The one-sentence version&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;EVPN, VXLAN, and BGP are related but different. VXLAN encapsulates traffic. EVPN advertises reachability. BGP transports routing information. The physical underlay forwards the outer IP packet.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx437zuig88pswenkr2oc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx437zuig88pswenkr2oc.png" width="799" height="598"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;_ The central mental model: logical services ride over a routed physical fabric._&lt;/p&gt;

&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;Modern data-centre fabrics separate physical IP reachability from logical tenant and workload networks. A leaf-spine underlay provides many equal-cost routed paths. VXLAN carries logical Layer-2 or Layer-3 segments across that underlay. EVPN, carried as an MP-BGP address family, distributes endpoint and network reachability so the fabric can make better forwarding decisions than a flood-and-learn overlay alone.&lt;/p&gt;

&lt;p&gt;This guide starts with that mental model and then builds the details gradually: leaf-spine architecture, the BGP underlay, VXLAN encapsulation, EVPN route types, distributed gateways, IRB, multihoming, packet walks, automation, observability, and troubleshooting. The final third focuses on HPC and AI environments, where east-west bandwidth, RDMA, congestion control, multi-rail topology, and failure behaviour change the design priorities.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Is an EVPN/VXLAN/BGP Fabric?
&lt;/h3&gt;

&lt;p&gt;In plain English, an EVPN/VXLAN/BGP fabric is a network in which the physical switches form a routed IP mesh, while logical networks are carried across that mesh as overlays. BGP is commonly used to build IP reachability and to distribute EVPN information. VXLAN is the encapsulation that carries an original Ethernet frame—or, in some designs, routed tenant traffic—between tunnel endpoints called VTEPs.&lt;/p&gt;

&lt;p&gt;The most useful beginner mental model is to picture two networks at the same time. The &lt;strong&gt;underlay&lt;/strong&gt; is the real network of cables, switch ports, IP addresses, and routes. The &lt;strong&gt;overlay&lt;/strong&gt; is the logical view presented to applications and tenants: subnets, bridge domains, VRFs, and VNIs. The overlay depends on the underlay, but the underlay does not need to understand every tenant MAC address or subnet.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fabisiahcdesb4g4x5mco.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fabisiahcdesb4g4x5mco.png" width="800" height="641"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 1 – Underlay versus overlay: the overlay is logical; the underlay is the physical forwarding medium.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A second separation matters just as much: &lt;strong&gt;control plane versus data plane&lt;/strong&gt;. The control plane learns and distributes information used to make forwarding decisions. The data plane moves packets and frames using the resulting forwarding tables. EVPN is primarily control plane. VXLAN is primarily data-plane encapsulation. The ASIC in a switch forwards the actual traffic.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Common misconception&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;EVPN does not encapsulate user packets, and VXLAN does not by itself tell every VTEP where each endpoint lives. EVPN and VXLAN solve complementary problems.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Why Data-Centre Networking Changed
&lt;/h3&gt;

&lt;p&gt;Traditional enterprise data centres often extended Layer 2 through several tiers of switching. Spanning Tree Protocol (STP) prevented loops by blocking redundant paths. This was understandable when most traffic was north-south—client to server or server to external network—but it wastes links and creates awkward failure domains when servers communicate heavily with one another.&lt;/p&gt;

&lt;p&gt;Virtualization, private cloud, containers, and large distributed systems increased the number of endpoints and made east-west communication dominant. Operators also wanted small repeatable switches instead of a few very large chassis, and they wanted automation that could configure thousands of similar links predictably. A routed Clos/leaf-spine topology matched these needs because every leaf can reach every other leaf through multiple equal-cost spine paths.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Traditional tendency&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Modern fabric tendency&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Large Layer-2 domains&lt;/td&gt;
&lt;td&gt;Routed Layer-3 underlay with smaller physical failure domains&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;STP blocks redundant links&lt;/td&gt;
&lt;td&gt;ECMP actively uses many equal-cost paths&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chassis scale-up&lt;/td&gt;
&lt;td&gt;Leaf/spine horizontal scale-out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VLAN-centric segmentation&lt;/td&gt;
&lt;td&gt;VRF/VNI-based logical segmentation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flood-and-learn endpoint discovery&lt;/td&gt;
&lt;td&gt;Control-plane distribution with EVPN where applicable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manual per-device configuration&lt;/td&gt;
&lt;td&gt;Templates, source of truth, validation and CI/CD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mostly north-south assumptions&lt;/td&gt;
&lt;td&gt;Heavy east-west traffic, especially AI/HPC&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;AI and HPC amplify the east-west problem. Distributed training may cause hundreds or thousands of accelerators to exchange synchronized data. Scale-out storage and checkpointing can add large flows at the same time. A fabric therefore needs not only connectivity but predictable path count, high bisection bandwidth, clear failure behaviour, and observable congestion.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Short History
&lt;/h3&gt;

&lt;p&gt;Ethernet first gave data centres a simple shared link-layer model. VLANs, standardized in IEEE 802.1Q, added logical separation inside a switched network. STP and its successors kept those networks loop-free, but at the cost of disabling some redundant paths. As data centres grew, routed Layer 3 boundaries were pushed closer to servers to reduce Layer-2 failure domains and make all links usable.&lt;/p&gt;

&lt;p&gt;Clos topologies—often implemented as leaf-spine—provided many short parallel paths using repeated building blocks. BGP, historically associated with the Internet, proved attractive inside very large data centres because it is mature, policy-capable, horizontally scalable, and well suited to simple point-to-point routed adjacencies. RFC 7938 documented a practical eBGP approach for large-scale data-centre routing.&lt;/p&gt;

&lt;p&gt;Virtualization then created a different requirement: keep the operational advantages of a routed IP fabric while offering logical segments that can span racks. VXLAN, documented in RFC 7348, added a 24-bit VNI and UDP/IP encapsulation. EVPN, defined first for BGP/MPLS in RFC 7432 and adapted to network virtualization overlays in RFC 8365, supplied a BGP-based control plane for endpoint and service reachability.&lt;/p&gt;

&lt;h2&gt;
  
  
  Foundation Concepts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Leaf-Spine Architecture
&lt;/h3&gt;

&lt;p&gt;In a leaf-spine fabric, endpoints connect to leaf switches. Every leaf connects to every spine in the same fabric plane. Spines normally do not connect directly to endpoints, and leaves normally do not connect directly to other leaves. The result is a two-stage Clos network with a predictable number of hops between racks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1g85ycxt8j3jmp6vdebw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1g85ycxt8j3jmp6vdebw.png" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 2 – A simple two-spine, four-leaf fabric. Every leaf has a path through every spine.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Because the leaf-to-spine links have equal routing cost, the forwarding plane can use &lt;strong&gt;Equal-Cost Multipath (ECMP)&lt;/strong&gt;. Instead of blocking redundant links, the network hashes flows across several active next hops. Adding spines can increase aggregate fabric capacity until leaf port limits or other design boundaries are reached.&lt;/p&gt;

&lt;p&gt;Oversubscription describes the ratio between potential server-facing bandwidth and uplink bandwidth. A 1:1 design is often called nonblocking at the intended tier because the total leaf downlink capacity is matched by uplink capacity. Many enterprise networks deliberately oversubscribe because workloads rarely transmit at line rate simultaneously. Large distributed AI jobs can make that assumption unsafe, so compute fabrics are often designed with much lower oversubscription.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fugqw5a36d97wlclfol2u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fugqw5a36d97wlclfol2u.png" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 3 – East-west traffic has multiple active paths instead of a single STP-selected tree.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What to remember&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Leaf-spine is a topology, not an overlay protocol. You can build a perfectly valid leaf-spine network with plain Layer-3 routing and no VXLAN or EVPN at all.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  The IP Underlay
&lt;/h3&gt;

&lt;p&gt;The underlay’s job is deliberately simple: provide resilient IP reachability between infrastructure addresses, especially VTEP loopbacks. A common design uses numbered or unnumbered point-to-point Layer-3 links between leaves and spines, plus loopback addresses that remain stable even when an individual physical link changes state.&lt;/p&gt;

&lt;p&gt;Any routing protocol that meets the requirements can build this reachability. Some fabrics use OSPF or IS-IS. Many large designs use eBGP because each point-to-point adjacency can be modeled simply, operational boundaries are explicit, and BGP already exists for the EVPN overlay. Using BGP twice does not mean the two functions are the same: the underlay address family carries infrastructure IP prefixes, while the overlay EVPN address family carries EVPN routes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffnjr5vo5y8adgky4n8lz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffnjr5vo5y8adgky4n8lz.png" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 4 – Illustrative underlay addressing. The exact scheme varies by implementation.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The underlay generally does &lt;strong&gt;not&lt;/strong&gt; need to know Tenant-A’s MAC addresses, every VM subnet, or every Kubernetes service. It just forwards outer IP packets between VTEPs. Keeping this role narrow makes the physical network easier to reason about and troubleshoot.&lt;/p&gt;

&lt;h3&gt;
  
  
  BGP for Beginners
&lt;/h3&gt;

&lt;p&gt;Routing protocols let routers exchange reachability. BGP is a path-vector protocol: it advertises prefixes together with attributes that describe how those prefixes can be reached and how paths should be selected. BGP speakers form explicit neighbor relationships, exchange routes, and install selected paths into routing tables.&lt;/p&gt;

&lt;p&gt;An &lt;strong&gt;Autonomous System (AS)&lt;/strong&gt; is a routing domain identified by an AS number. eBGP operates between different AS numbers; iBGP operates within the same AS. Data-centre designs often assign AS numbers in ways that make leaf-spine relationships easy to automate—for example one AS per leaf and one common or grouped AS for spines—but many models are valid.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcjmc1wqcrpeb6cdtm7qn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcjmc1wqcrpeb6cdtm7qn.png" width="800" height="269"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 5 – BGP peers exchange reachability and attributes; they do not forward user traffic merely because a BGP session exists.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MP-BGP (Multiprotocol BGP)&lt;/strong&gt; extends BGP so it can carry multiple address families. IPv4 unicast is one address family. IPv6 unicast is another. EVPN is another. That is why you will often hear “MP-BGP EVPN”: BGP is the transport and route-selection framework, while EVPN defines the information model carried in that address family.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;BGP role&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Typical information&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Purpose&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Underlay BGP&lt;/td&gt;
&lt;td&gt;Infrastructure IP prefixes, loopbacks, point-to-point reachability&lt;/td&gt;
&lt;td&gt;Make VTEP and fabric addresses reachable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MP-BGP EVPN overlay&lt;/td&gt;
&lt;td&gt;MAC/IP advertisements, IMET information, IP prefixes, Ethernet-segment information&lt;/td&gt;
&lt;td&gt;Distribute logical service and endpoint reachability&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Common misconception&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;BGP is not “only for the Internet.” The protocol is used inside large data centres because its operational model also fits horizontally scaled Clos fabrics.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Next: &lt;a href="https://rusdykrisman.com/evpn-vxlan-bgp-part2-vxlan-evpn/" rel="noopener noreferrer"&gt;Part 2 — VXLAN and EVPN&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>aiinfrastructureaifa</category>
      <category>networking</category>
      <category>technology</category>
    </item>
    <item>
      <title>Generative AI for Beginners – Part 2: How It Works</title>
      <dc:creator>Rusdy Krisman</dc:creator>
      <pubDate>Thu, 03 Sep 2026 04:35:53 +0000</pubDate>
      <link>https://dev.to/rusdykrisman/generative-ai-for-beginners-part-2-how-it-works-4nc6</link>
      <guid>https://dev.to/rusdykrisman/generative-ai-for-beginners-part-2-how-it-works-4nc6</guid>
      <description>&lt;h4&gt;
  
  
  A Beginner’s Guide to the Fundamentals
&lt;/h4&gt;

&lt;h5&gt;
  
  
  A practical, concept-first guide for technology professionals and curious beginners
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://rusdykrisman.com/genai-part1-what-it-is/" rel="noopener noreferrer"&gt;Part 1 —&lt;/a&gt;&lt;/strong&gt; &lt;strong&gt;&lt;a href="https://rusdykrisman.com/genai-part1-what-it-is/" rel="noopener noreferrer"&gt;What It Is and Why It Matters&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 2 —&lt;/strong&gt;  &lt;strong&gt;How It Works&lt;/strong&gt;  ← &lt;em&gt;You are here&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How Large Language Models Work
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;An LLM can be understood at a useful level without deriving the mathematics. The important idea is that text becomes numerical representations, passes through many transformer layers, and is used to predict what should come next.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: text becomes tokens
&lt;/h3&gt;

&lt;p&gt;The tokenizer converts text into token IDs. The exact token boundaries depend on the model’s tokenizer. Common words may be one token, while unusual words may be split into several pieces. The model does not operate directly on visible characters or words; it operates on these numerical token representations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: tokens become vectors
&lt;/h3&gt;

&lt;p&gt;Each token ID is mapped to a vector representation called an embedding. The network transforms these vectors through many layers. During this process, representations become context-sensitive: the representation of a word such as “bank” differs depending on whether nearby text is about money or a river.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: transformer layers relate the context
&lt;/h3&gt;

&lt;p&gt;Self-attention lets the model weigh relationships among tokens. Other transformations inside each layer refine the representation. Repeating this process across many layers lets the model capture syntax, semantics, patterns of reasoning, styles, and task structures that emerged during training.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: the model predicts a distribution for the next token
&lt;/h3&gt;

&lt;p&gt;At generation time, the model calculates probabilities for possible next tokens. A decoding strategy chooses one token. That token is appended to the context, and the process repeats. Sophisticated behavior emerges because the model has learned rich internal representations and because each prediction is conditioned on the entire available context—not because it is simply looking up a canned phrase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Figure 5 – The autoregressive generation loop&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff88p8ir5tdi4swrc1aem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff88p8ir5tdi4swrc1aem.png" alt="Figure 5 - The autoregressive generation loop" width="800" height="641"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Why models can appear to reason—and why they can fail
&lt;/h3&gt;

&lt;p&gt;Large models can learn patterns that support decomposition, analogy, code execution planning, mathematical transformations, and multi-step explanation. Some models are trained or run with techniques that allocate more computation to difficult problems. However, their outputs are still generated by a learned model under uncertainty. A fluent chain of reasoning can contain a hidden error, and a confident answer can still be wrong.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Common Mistake&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;“Next-token prediction” is a correct description of a common training and generation objective, but calling an LLM “just autocomplete” hides the important part: the network has learned complex representations that make those token predictions useful across many tasks.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The Transformer Architecture
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Transformers are the architectural foundation of most modern LLMs. The key innovation is attention: a way to dynamically relate parts of a sequence to one another.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Attention in intuitive terms
&lt;/h3&gt;

&lt;p&gt;Suppose the sentence says, “The server could not reach the database because it was offline.” To interpret “it,” the model must decide which earlier words are most relevant. Attention provides a learned mechanism for assigning importance to relationships in the context rather than relying only on a fixed-size memory of previous steps.&lt;/p&gt;

&lt;h3&gt;
  
  
  Query, Key, and Value
&lt;/h3&gt;

&lt;p&gt;A common analogy is information retrieval. A Query represents what a token is looking for. Keys represent what other tokens offer for matching. Values contain the information that can be combined if a match is important. The analogy is useful, but the real mechanism is numerical: learned projections create query, key, and value vectors, and attention weights determine how information is mixed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Position still matters
&lt;/h3&gt;

&lt;p&gt;Attention alone does not inherently encode word order, so transformer systems include positional information. Different architectures implement this in different ways. The goal is the same: let the model distinguish “dog bites man” from “man bites dog.”&lt;/p&gt;

&lt;h3&gt;
  
  
  Transformer blocks
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Figure 6 – Simplified transformer block&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2wgeahvvrgf9e8g1muzg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2wgeahvvrgf9e8g1muzg.png" alt="Figure 6 - Simplified transformer block" width="683" height="1024"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Encoder-only, decoder-only, and encoder-decoder
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Architecture&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Strength&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Typical role&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Encoder-only&lt;/td&gt;
&lt;td&gt;Builds representations of an input&lt;/td&gt;
&lt;td&gt;Classification, embeddings, understanding tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decoder-only&lt;/td&gt;
&lt;td&gt;Generates sequences autoregressively&lt;/td&gt;
&lt;td&gt;Most conversational LLMs and code generators&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Encoder-decoder&lt;/td&gt;
&lt;td&gt;Encodes input then generates output&lt;/td&gt;
&lt;td&gt;Translation and sequence-to-sequence tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Foundation Models and Large Language Models
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;A foundation model is a reusable base. An application can use it directly, adapt its behavior, ground it with external data, or place it inside a larger workflow.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What makes a model a foundation model?
&lt;/h3&gt;

&lt;p&gt;A foundation model is trained broadly enough to support many downstream tasks rather than one narrow prediction target. It can be adapted through prompts, retrieval, fine-tuning, tools, or application logic. Language models are the most familiar example, but foundation models can also span vision, audio, and multimodal inputs.&lt;/p&gt;

&lt;h3&gt;
  
  
  General-purpose versus specialized models
&lt;/h3&gt;

&lt;p&gt;General-purpose models are designed to handle a wide range of topics and instructions. Specialized models may be optimized for coding, mathematics, embeddings, safety classification, speech, or a specific industry. The best model for a workload is not necessarily the largest general-purpose model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Open-weight versus proprietary
&lt;/h3&gt;

&lt;p&gt;Open-weight models make trained model weights available under a license, allowing organizations to run, inspect, adapt, or redistribute them within the license terms. Proprietary models are normally consumed through a hosted service or API. “Open-weight” does not automatically mean fully open-source: training data, training code, or licensing terms may still be restricted.&lt;/p&gt;

&lt;h3&gt;
  
  
  Small Language Models and Large Language Models
&lt;/h3&gt;

&lt;p&gt;Smaller models can be cheaper, faster, easier to deploy privately, and sufficient for well-defined tasks. Larger models tend to offer broader capability and robustness but need more compute and memory. Production systems increasingly route different tasks to different models rather than assuming one model should handle everything.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Dimension&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Smaller model&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Larger model&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Usually lower per request/self-host footprint&lt;/td&gt;
&lt;td&gt;Usually higher&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency&lt;/td&gt;
&lt;td&gt;Often lower&lt;/td&gt;
&lt;td&gt;Can be higher&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment&lt;/td&gt;
&lt;td&gt;More feasible on edge or modest GPUs&lt;/td&gt;
&lt;td&gt;Often requires larger accelerators or hosted APIs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Capability breadth&lt;/td&gt;
&lt;td&gt;Best when task is bounded&lt;/td&gt;
&lt;td&gt;Often stronger across diverse tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Privacy/control&lt;/td&gt;
&lt;td&gt;Can be easier to self-host&lt;/td&gt;
&lt;td&gt;Depends on deployment option&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The GenAI Model Lifecycle
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The model lifecycle separates the expensive process of creating or adapting a model from the operational process of serving it to applications.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Figure 7 – Model lifecycle&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2vqb5qm1qldctb7dchx6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2vqb5qm1qldctb7dchx6.png" alt="Figure 7 - Model lifecycle" width="800" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Data and pre-training
&lt;/h3&gt;

&lt;p&gt;Pre-training exposes a model to a very large dataset and optimizes it to learn general patterns. This is computationally expensive and is usually performed by model developers rather than ordinary enterprise application teams. Data quality, mixture, filtering, deduplication, and rights management can strongly affect the resulting model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Instruction tuning and alignment
&lt;/h3&gt;

&lt;p&gt;A raw pre-trained model may be good at continuing text but poor at behaving like an assistant. Instruction tuning trains it on examples of instructions and desired responses. Alignment techniques use preference or policy signals to make behavior more useful and safer. RLHF is one well-known family of methods; newer approaches can use AI-generated preference data or direct preference optimization techniques.&lt;/p&gt;

&lt;h3&gt;
  
  
  Evaluation before deployment
&lt;/h3&gt;

&lt;p&gt;A model should be measured against the tasks it must perform. General benchmark scores are useful but not enough. An enterprise needs workload-specific evaluation sets covering accuracy, groundedness, safety, latency, cost, and failure modes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Inference and operations
&lt;/h3&gt;

&lt;p&gt;Inference is the production phase in which users and applications submit requests. Serving systems batch work, manage GPU memory, cache reusable information, enforce quotas, monitor latency, and scale capacity. The operational lifecycle includes observability, safety monitoring, model versioning, and controlled upgrades.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Beginner Mental Model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most companies should not start by asking, “How do we train our own foundation model?” A more practical sequence is: select a model, evaluate it, ground it with data, add application controls, and only fine-tune if there is a clear reason.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Previous: &lt;a href="https://rusdykrisman.com/genai-part1-what-it-is/" rel="noopener noreferrer"&gt;Part 1 – What It Is and Why It Matters&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>genaiagenticai</category>
      <category>technology</category>
    </item>
    <item>
      <title>Generative AI for Beginners – Part 1: What It Is and Why It Matters</title>
      <dc:creator>Rusdy Krisman</dc:creator>
      <pubDate>Thu, 03 Sep 2026 03:06:19 +0000</pubDate>
      <link>https://dev.to/rusdykrisman/generative-ai-for-beginners-part-1-what-it-is-and-why-it-matters-ac</link>
      <guid>https://dev.to/rusdykrisman/generative-ai-for-beginners-part-1-what-it-is-and-why-it-matters-ac</guid>
      <description>&lt;h4&gt;
  
  
  A Beginner’s Guide to the Fundamentals
&lt;/h4&gt;

&lt;h5&gt;
  
  
  A practical, concept-first guide for technology professionals and curious beginners
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Part 1 —&lt;/strong&gt;  &lt;strong&gt;What It Is and Why It Matters&lt;/strong&gt; ← &lt;em&gt;You are here&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://rusdykrisman.com/genai-part2-how-it-works/" rel="noopener noreferrer"&gt;&lt;strong&gt;Part 2 —&lt;/strong&gt;&lt;/a&gt; &lt;a href="https://rusdykrisman.com/genai-part2-how-it-works/" rel="noopener noreferrer"&gt;&lt;strong&gt;How It Works&lt;/strong&gt;  &lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The one-sentence version&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Think of Generative AI as a new software capability built around models that can generate useful content from context. The model is important, but a production GenAI system is usually much larger than the model: it includes applications, data retrieval, security controls, tools, identity, monitoring, and operational infrastructure.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Introduction: What Is Generative AI?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Generative AI is easiest to understand by starting with what it does: it creates new output from patterns learned during training and from the context supplied at run time.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  A plain-English definition
&lt;/h3&gt;

&lt;p&gt;Generative Artificial Intelligence (GenAI) is a class of AI systems that can produce new content such as text, software code, images, audio, video, structured data, and combinations of these formats. A GenAI model does not normally retrieve a pre-written answer from a database. Instead, it generates an output step by step according to patterns represented in its learned parameters and the information available in the current context.&lt;/p&gt;

&lt;p&gt;For a text model, generation usually means predicting a useful sequence of tokens. For an image model, it means constructing an image representation that matches the user’s instructions. Multimodal systems can accept several forms of input at once—for example, a screenshot plus a question—and produce text, code, or another media type in response.&lt;/p&gt;

&lt;h3&gt;
  
  
  What “generative” means
&lt;/h3&gt;

&lt;p&gt;Traditional analytical systems often classify, score, forecast, rank, or detect. Generative systems can do those things as part of a larger task, but their defining feature is that they can synthesize a new output. The output may be highly constrained, such as a JSON object that follows a schema, or open-ended, such as a draft article.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Approach&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Typical Input&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Typical Output&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Simple Example&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Predictive AI&lt;/td&gt;
&lt;td&gt;Historical features&lt;/td&gt;
&lt;td&gt;Score, class, forecast&lt;/td&gt;
&lt;td&gt;Estimate fraud probability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generative AI&lt;/td&gt;
&lt;td&gt;Prompt + context&lt;/td&gt;
&lt;td&gt;New text, code, image, audio, etc.&lt;/td&gt;
&lt;td&gt;Draft a customer reply&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Search&lt;/td&gt;
&lt;td&gt;Query&lt;/td&gt;
&lt;td&gt;Ranked sources or documents&lt;/td&gt;
&lt;td&gt;Find pages about a topic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Traditional software&lt;/td&gt;
&lt;td&gt;Explicit inputs&lt;/td&gt;
&lt;td&gt;Deterministic programmed behavior&lt;/td&gt;
&lt;td&gt;Calculate tax from rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automation&lt;/td&gt;
&lt;td&gt;Trigger + workflow&lt;/td&gt;
&lt;td&gt;Execution of predefined steps&lt;/td&gt;
&lt;td&gt;Create a ticket when an alert fires&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  GenAI is usually a component, not the whole application
&lt;/h3&gt;

&lt;p&gt;A chatbot makes the model visible, so it is tempting to equate “GenAI application” with “LLM.” In production, however, the model is normally one component inside a broader system. The application may authenticate the user, retrieve enterprise data, enforce policies, call external tools, validate outputs, log events, and route requests to different models.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Figure 1 – A minimal GenAI request&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyvfrrpyu9rq1w124ive6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyvfrrpyu9rq1w124ive6.png" alt="Figure 1 - A minimal GenAI request" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Common Mistake&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Do not use “AI,” “machine learning,” “GenAI,” and “LLM” as if they were exact synonyms. GenAI is one part of AI, and LLMs are one important class of generative model.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why Generative AI Matters
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The importance of GenAI is not just that it can write. The deeper shift is that natural language can now act as a flexible interface to software, knowledge, and workflows.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Natural language becomes a computing interface
&lt;/h3&gt;

&lt;p&gt;For decades, people adapted themselves to software: they learned menus, commands, query languages, forms, APIs, and application-specific workflows. GenAI adds another interface model. A person can describe an objective, provide context, and ask the system to transform, explain, analyze, or create. This lowers the interaction cost for many tasks and makes sophisticated software capabilities accessible to a wider population.&lt;/p&gt;

&lt;h3&gt;
  
  
  Knowledge work augmentation
&lt;/h3&gt;

&lt;p&gt;Many knowledge-work tasks involve reading, synthesizing, transforming, and communicating information. GenAI can accelerate the mechanical parts of that work: summarize a large document, compare alternatives, create a first draft, translate between technical and executive language, generate test cases, or turn a natural-language request into code. The best use is often augmentation rather than blind substitution: the human defines the objective, reviews the output, and handles judgment that cannot safely be delegated.&lt;/p&gt;

&lt;h3&gt;
  
  
  Software development acceleration
&lt;/h3&gt;

&lt;p&gt;Code generation is a particularly strong example because software has explicit structure and can be tested. Models can explain unfamiliar code, draft functions, generate unit tests, propose refactors, produce configuration, and help debug failures. This changes the developer’s workflow from typing every token manually toward specifying intent, reviewing results, and validating behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  Enterprise automation and decision support
&lt;/h3&gt;

&lt;p&gt;When connected to trusted data and controlled tools, GenAI can become the reasoning and language layer in a workflow. For example, it can read a support case, retrieve the relevant runbook, explain the likely cause, and—after approval—call an IT service-management API. This combination of language understanding, retrieval, and tool use is a foundation for agentic workflows.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why This Matters&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;GenAI compresses the distance between intent and execution. That is powerful, but it also means security, permissions, data quality, validation, and human oversight become part of the application design—not optional add-ons.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A Short History of Artificial Intelligence and Generative AI
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Modern GenAI did not appear suddenly. It is the result of decades of progress in algorithms, data, computing hardware, software frameworks, and large-scale engineering.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  From symbolic AI to learned representations
&lt;/h3&gt;

&lt;p&gt;Early AI research often focused on symbolic reasoning: humans encoded knowledge as rules, logical statements, or expert-system structures. These systems could perform well in narrow domains, but they were expensive to build and brittle when the real world did not fit the encoded rules.&lt;/p&gt;

&lt;p&gt;Machine learning shifted part of the burden from explicit rules to data. Instead of programming every decision, engineers trained statistical models to learn patterns from examples. Neural networks extended this idea by learning layered representations, and deep learning made those networks much larger and more capable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why GPUs mattered
&lt;/h3&gt;

&lt;p&gt;Training deep neural networks requires enormous numbers of matrix operations. Graphics Processing Units (GPUs) were originally designed to execute many numerical operations in parallel for graphics. Their parallel structure also proved highly effective for neural-network workloads. Improvements in GPU hardware, programming libraries, and distributed computing made it practical to train models on previously impossible scales.&lt;/p&gt;

&lt;h3&gt;
  
  
  From sequence models to attention and transformers
&lt;/h3&gt;

&lt;p&gt;Earlier language systems often used recurrent neural networks (RNNs) and Long Short-Term Memory (LSTM) networks to process sequences. These architectures were useful but difficult to parallelize across long sequences. Attention mechanisms allowed a model to focus on the most relevant parts of an input. The Transformer architecture, introduced in 2017, built on attention and enabled much more parallel training and more effective modeling of long-range relationships.&lt;/p&gt;

&lt;h3&gt;
  
  
  Foundation models, instruction tuning, and the conversational breakthrough
&lt;/h3&gt;

&lt;p&gt;As model scale, data, and compute increased, researchers found that a model trained broadly could be adapted to many downstream tasks. These became known as foundation models. GPT-style decoder models demonstrated strong general language generation. Instruction tuning and alignment methods such as Reinforcement Learning from Human Feedback (RLHF) made models better at following human instructions and interacting conversationally.&lt;/p&gt;

&lt;h3&gt;
  
  
  RAG, multimodality, tools, and agents
&lt;/h3&gt;

&lt;p&gt;The next major shift was architectural. Instead of expecting one model to contain every useful fact, applications began retrieving external knowledge at run time through Retrieval-Augmented Generation (RAG). Multimodal models expanded beyond text. Tool use allowed models to call APIs, search systems, calculators, code runtimes, and databases. By the mid-2020s, these capabilities were increasingly assembled into agentic systems that could plan and execute multi-step workflows under policy and human control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Figure 2 – Simplified GenAI evolution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftlnponll7g6u8b6orefl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftlnponll7g6u8b6orefl.png" alt="Figure 2 - Simplified GenAI evolution" width="799" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The AI Family Tree
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;A clear vocabulary prevents a great deal of confusion. The terms overlap, but they refer to different scopes and capabilities.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Figure 3 – A practical AI family tree&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi23vznb5gqmz2dktnrk0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi23vznb5gqmz2dktnrk0.png" alt="Figure 3 - A practical AI family tree" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Artificial Intelligence
&lt;/h3&gt;

&lt;p&gt;Artificial Intelligence is the broadest term. It covers software techniques intended to perform tasks associated with perception, prediction, planning, language, problem solving, or decision support. Not all AI uses machine learning.&lt;/p&gt;

&lt;h3&gt;
  
  
  Machine Learning and Deep Learning
&lt;/h3&gt;

&lt;p&gt;Machine Learning (ML) refers to systems that learn patterns from data rather than relying only on explicitly programmed rules. Deep Learning is a subset of ML that uses neural networks with many layers and large numbers of parameters. Modern language and multimodal models are primarily deep-learning systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Generative AI and Foundation Models
&lt;/h3&gt;

&lt;p&gt;Generative AI focuses on producing new content. A foundation model is trained broadly enough to serve as a base for many tasks and applications. An LLM is a foundation model specialized in language, although modern LLMs increasingly participate in multimodal systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI Agents
&lt;/h3&gt;

&lt;p&gt;An AI agent is not simply a bigger chatbot. It is an application pattern in which a model can decide among actions, use tools, observe results, maintain state, and continue toward an objective. The surrounding runtime determines what the agent is allowed to do and when a human must approve an action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Core Concepts for Beginners
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The vocabulary of GenAI becomes much easier once each term is connected to a simple mental model.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Concept&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Beginner-friendly meaning&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Model&lt;/td&gt;
&lt;td&gt;A learned mathematical system that maps inputs to outputs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parameters&lt;/td&gt;
&lt;td&gt;Learned numerical values inside the model. They encode statistical patterns, not a human-readable encyclopedia.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Training&lt;/td&gt;
&lt;td&gt;The process of adjusting model parameters using data and an optimization objective.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dataset&lt;/td&gt;
&lt;td&gt;The examples used for training, evaluation, fine-tuning, or testing.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inference&lt;/td&gt;
&lt;td&gt;Running a trained model to produce an output.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Token&lt;/td&gt;
&lt;td&gt;A unit of text processed by a language model. It may be a word, part of a word, punctuation, or another symbol.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tokenization&lt;/td&gt;
&lt;td&gt;Converting raw text into tokens and token IDs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context window&lt;/td&gt;
&lt;td&gt;The amount of input and generated history a model can consider in one request or session.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prompt&lt;/td&gt;
&lt;td&gt;Instructions and context supplied to a model.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;System prompt&lt;/td&gt;
&lt;td&gt;Higher-priority instructions that define behavior, boundaries, role, or policy for an application.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Temperature&lt;/td&gt;
&lt;td&gt;A sampling control that can influence output variability; exact behavior depends on the model/API.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embedding&lt;/td&gt;
&lt;td&gt;A numerical vector that represents semantic properties of content.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vector similarity&lt;/td&gt;
&lt;td&gt;A mathematical way to estimate how close two embeddings are in semantic space.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hallucination&lt;/td&gt;
&lt;td&gt;A plausible-sounding output that is unsupported, incorrect, or invented.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grounding&lt;/td&gt;
&lt;td&gt;Connecting model output to trusted external evidence or context.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fine-tuning&lt;/td&gt;
&lt;td&gt;Additional training that adapts a base model to desired behavior or a domain.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quantization&lt;/td&gt;
&lt;td&gt;Representing model weights or calculations with lower numerical precision to reduce memory or improve performance.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency&lt;/td&gt;
&lt;td&gt;How long one request takes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Throughput&lt;/td&gt;
&lt;td&gt;How much work a system completes per unit of time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Requests per second&lt;/td&gt;
&lt;td&gt;A common throughput measure for serving systems.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Input vs output tokens&lt;/td&gt;
&lt;td&gt;Tokens sent to the model versus tokens generated by the model; they often have different cost and performance characteristics.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Figure 4 – From text to generated tokens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff12rxlswh0l0l98unaww.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff12rxlswh0l0l98unaww.png" alt="Figure 4 - From text to generated tokens" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Beginner Mental Model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Training changes the model. Inference uses the model. RAG usually changes the context supplied at inference time; it does not normally change the model’s weights.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Next: &lt;a href="https://rusdykrisman.com/genai-part2-how-it-works/" rel="noopener noreferrer"&gt;Part 2 – How It Works&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>genaiagenticai</category>
      <category>technology</category>
    </item>
  </channel>
</rss>
