惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
美团技术团队
N
Netflix TechBlog - Medium
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
The Cloudflare Blog
量子位
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
H
Hackread – Cybersecurity News, Data Breaches, AI and More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Downloaded Gemma4:e2b On My Macbook in 2 steps
jars0075 · 2026-05-25 · via DEV Community

For a tech enthusiast as myself, learning that Google's new Gemma4 language model came in a size designed to run on android phone's peaked my interest for several reasons. The first and really the main reason I wanted to download the model is because I often travel and can't always connect to WIFI. And because I use LLM's so much now for various projects I'm working on, having a model as capable of Gemma4 that I can use any time after watching the announcement video, https://www.youtube.com/watch?v=tfoSeH63yCg would be well worth the effort even though its quite easy to set it up.

To get the smaller, Gemma4:e2b version running on my Apple M4 pro I used ollama. To install Ollama, I went to my finder navigation menu, clicked Go in the menu bar, selected Utilities, and double-clicked Terminal. The command to install Ollama takes one just one line that I copy-pasted from ollama docs, curl -fsSL https://ollama.com/install.sh | sh which starts the download process immediately. Onced it finished installing I typed the command ollama --version to make sure it installed correctly and received the output ollama version is 0.23.1 which means it successfully downloaded and is ready to download a model.

The next step required just one command to get it installed and ready for use. I used the command exactly as is, ollama pull Gemma 4:e2b and hit enter to kick-off the download. From there it took around 5 -10 minutes and was done, whalla! Gemma4 was downloaded and ready to use in a few steps.

The first question I tried was what mdoel are you and immediately could see the a quick flow of words that shows the model's thinking process which I've included below exactly:

  1. Analyze the Request: The user is asking "what mdoel are you?"
    (asking about my identity/model type).

  2. Consult Core Identity: Access the defined persona parameters.

    • Name: Gemma 4.
    • Developer: Google DeepMind.
    • Nature: Large Language Model (LLM).
    • Type: Open weights model.
  3. Formulate the Answer: State the identity clearly and concisely,
    incorporating the key details.

  4. Review against Instructions: Ensure the response aligns with the
    instructions (referring to myself as Gemma 4, not claiming unpossessed
    capabilities, etc.).

Self-Correction/Refinement: Keep the answer direct and accurate based on
the defined persona.

Draft Response: I am Gemma 4, a Large Language Model developed by Google
DeepMind. (This is accurate and sufficient.)
...done thinking.

I am Gemma 4, a Large Language Model developed by Google DeepMind.

After that, I asked the question, 'what are you capable of?' and immediately observed it's thinking process which started to make me feel like a mad scientist in a way.

Thinking...
Thinking Process:

  1. Identify the core question: The user is asking "what are you able to do?" This requires describing my capabilities.
  2. Access self-knowledge (Identity & Capabilities):
    • Name: Gemma 4.
    • Nature: Large Language Model (LLM).
    • Input modalities: Text and images (and audio for specific models in the family).
    • Output modality: Generate text.
    • Core functions: Understanding, generating, summarizing, translating, answering questions, coding assistance, etc.
  3. Determine specific operational constraints:
    • I process information.
    • I generate human-like text.
    • I cannot generate images (only understand them).
    • I have a knowledge cutoff (January 2025, if relevant, but generally focus on processing tasks).
    • I don't have default access to tools (unless provided).
  4. Draft the response (structuring the capabilities):
    • Start by defining my primary function.
    • List specific tasks I excel at (text processing).
    • Mention input/output modes.
    • (Optional but helpful) Mention the range of knowledge I have.
  5. Refine the tone and clarity (Gemma 4 persona): Ensure the response is direct and accurate based on the provided identity.

(Self-Correction during drafting): Make sure I don't overpromise. I can
process text and images, but the output is only text. I must stick to the
facts.

  1. Final Output Generation. (This leads to the provided response.) ...done thinking.

_As a Large Language Model, I am capable of a wide range of tasks centered around processing and generating human language.**

**Here is a summary of what I can do:

1. Text Processing and Generation:

  • Answering Questions: I can answer factual questions based on the information I was trained on.
  • Text Generation: I can write essays, stories, poems, scripts, emails, and various other forms of creative and functional text.
  • Summarization: I can read long texts and provide concise summaries of the main points.
  • Translation: I can translate text between various languages.
  • Explanation: I can take complex topics and explain them in simple, understandable terms.
  • Code Assistance: I can help with understanding, explaining, and generating code snippets.

2. Input Modalities:

  • Text Input: I primarily process and respond to text.
  • Image Understanding: I can analyze and understand information presented in images (if they are provided to me).

3. Conversational Skills:

  • Dialogue: I can engage in coherent and context-aware conversations.
  • Following Instructions: I can follow complex instructions and constraints to structure my output.

In essence, I function as a powerful tool for information retrieval,
creative writing, and complex communication._

And just like that, a powerful and revolutionary technology at the ready when I need it all set up and ready to go without internet and without a monthly subscription. Well worth the few minutes of my time and now it's time for me to start using it.

Feel free to leave a comment or ask me any questions about my process for getting it running or what my experience has been so far.