SShortSingh.
Back to feed

Week 5 ML Series: How Tensors Power Every AI Model, From CPU to GPU

0
·2 views

A developer progressing through a 32-week machine learning curriculum reached Week 5, focusing on tensors — the core data structure underlying all AI models. Tensors are typed, multi-dimensional arrays that can reside on either a CPU or GPU, and are described by their rank, shape, dtype, and device. The session introduced scalars, vectors, matrices, and higher-dimensional tensors using PyTorch, with hands-on scripts demonstrating element-wise operations, broadcasting, and CPU-to-GPU memory transfers. All experiments were run remotely via SSH on an NVIDIA DGX Spark machine using a pre-configured PyTorch environment with CUDA support. This week also marked the start of a parallel CUDA track within the broader goal of understanding how machine learning inference works at a low level.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

AGI-64 Port Lets Commodore 64 Run Classic Sierra Adventure Games

A project called AGI-64 has been developed to bring Sierra On-Line adventure games to the Commodore 64 platform. Sierra's Adventure Game Interpreter (AGI) engine originally powered classic titles such as King's Quest and Space Quest on PC systems. AGI-64 is an implementation of that engine tailored for the Commodore 64's hardware capabilities. The project allows retro computing enthusiasts to experience these classic Sierra titles on vintage C64 hardware. Further technical details and coverage are available via the Mean Hamster software blog.

0
ProgrammingDEV Community ·

Event-driven architecture helps AI agents handle real-world production failures

AI agent systems that rely on long synchronous chains are prone to failure when steps are slow, services restart, or human approvals are needed. An event-driven architecture addresses this by letting agents publish facts to an event bus, allowing other components to react independently without being directly wired together. This decoupling means a temporarily unavailable service can still process events once it recovers, and workflows are not lost when a restart occurs. Distinguishing between events, which record facts, and commands, which request actions, is key to keeping such systems predictable and auditable. Standards like CloudEvents can provide a common metadata envelope when events cross team or platform boundaries.

0
ProgrammingDEV Community ·

Developer builds fully browser-based bubble text generator using SVG and Canvas

A developer built a browser-only text-art generator using Next.js, SVG, and Canvas that requires no server, accounts, or file uploads. The tool accepts short phrases and applies one of three font styles across eight visual finishes, including glossy, holographic, chrome, and neon. To ensure consistent rendering across devices, font files are bundled with the app and embedded directly into generated SVGs using base64-encoded data URLs. Text dimensions are calculated using CanvasRenderingContext2D.measureText rather than character count, ensuring accurate layout regardless of font width variation. The pipeline converts React-controlled inputs into a cropped, watermark-free PNG entirely within the browser.

0
ProgrammingDEV Community ·

Developer Builds Angular 20 Pet Management App with Google Gemini AI Integration

A developer created Pet-Wallet, a browser-based pet management app built with Angular 20 that lets users add, edit, and track pets along with their medications and daily care tasks. The app uses Google Gemini AI to extract pet details from uploaded PDF documents, helping users quickly populate new pet profiles. Because the project is a front-end-only application, users must supply their own Gemini API key to use the AI import feature, as the developer chose not to expose credentials in a public repository. Pet-Wallet stores all data locally in the browser and is deployed via GitHub Pages with automated deployments through GitHub Actions. The project was submitted as part of a DEV Community weekend coding challenge and marks the developer's first post on the platform.