Tag

window.ai

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Jul 17, 2024 · Artificial Intelligence

Run Transformers.js in the Browser with Google’s window.ai – Live Demo

This article introduces how to use the JavaScript library transformers.js directly in the browser, leveraging Google’s built‑in window.ai models, outlines supported AI tasks, demonstrates a live demo, and provides the core implementation code for model loading, worker communication, and text generation.

browser AIjavascripttext generation
0 likes · 5 min read
Run Transformers.js in the Browser with Google’s window.ai – Live Demo
Code Mala Tang
Code Mala Tang
Jul 4, 2024 · Artificial Intelligence

Run Gemini Nano AI Locally in Chrome Canary: Step‑by‑Step Guide

This tutorial walks you through downloading Chrome Canary, enabling the Gemini Nano Prompt API and optimization guide flags, installing the 1.5 GB model, and using the window.ai JavaScript API to create sessions and send prompts, while discussing performance, limitations, and the benefits of offline AI.

Chrome CanaryGemini NanoLocal AI
0 likes · 7 min read
Run Gemini Nano AI Locally in Chrome Canary: Step‑by‑Step Guide