--- title: Gemma4 emoji: 🔥 colorFrom: blue colorTo: gray sdk: static pinned: false short_description: Chat with Gemma 4 models fully in the browser via MediaPipe models: - litert-community/gemma-4-E2B-it-litert-lm - litert-community/gemma-4-E4B-it-litert-lm --- Source code from [MediaPipe Samples](https://github.com/google-ai-edge/mediapipe-samples/tree/main/examples/llm_inference/llm_chat_ts/), simplified for Gemma 4 by removing authentication code and changing templates. For more information, see [MediaPipe Web LLM Inference API reference documentation](https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inference/web_js)