How to Run Gemma 4 on Your Phone Without Internet: A Hands-On Guide 

How to Run Gemma 4 on Your Phone Without Internet: A Hands-On Guide 

Most AI instruments rely on the web, sending your prompts to distant servers for processing earlier than returning outcomes. This course of has all the time been invisible to customers. Google adjustments that with Gemma 4! Which if configured correctly, runs immediately in your cellphone, eliminating the necessity for fixed connectivity.

With a one-time obtain, all the pieces runs regionally in your gadget, maintaining your information personal. You may entry it via Google AI Edge Gallery App. On this article, we discover methods to use the app and what you possibly can construct with it with out Web, as soon as it has bee configured regionally in your gadget.

What Precisely is Gemma 4?

The Gemma 4 household consists of 4 distinct fashions, every optimized for numerous {hardware} necessities by Google. The E2B model is a low-resource gadget, whereas the E4B model has been designed for greater throughput. The bigger fashions are really spectacular; for instance, the 31B dense mannequin ranks #3 when it comes to all open-source fashions worldwide, whereas the 26B MoE mannequin sits at #5, outperforming many bigger fashions. 

Gemma 4 Model Family

Whereas these benchmarks are noteworthy, there are numerous different causes to understand this new era of synthetic intelligence (AI). The complete Gemma 4 household has been engineered to offer capabilities past easy chat; will probably be capable of carry out advanced logic and facilitate agentic workflows, course of phrase, video, and audio, and use greater than 140 totally different languages. 

For gadgets equivalent to telephones, the 2 edge variants of Gemma 4 (E2B and E4B) have been created particularly for low-resource {hardware}. These fashions can deal with imaginative and prescient, audio, and textual content information; embody perform calls; and be sufficiently small to suit throughout the storage limitations of cell platforms.

Learn extra: Google’s Gemma 4: Arms-On 

The App that Makes it Potential

Google has launched their AI Edge Gallery software which works on each Android and iOS platforms. Your smartphone performs all processing duties with no need any cloud service. The appliance features as an open-source software program.  

The next options of AI Edge Gallery make it important for our use case: 

  • AI Chat with Pondering Mode: The mannequin demonstrates its reasoning course of by explaining your query via its full reasoning path 
  • Ask Picture: You need to use your digital camera to scan any object which you wish to examine and ask questions relating to it. 
  • Audio Scribe: The instrument permits customers to transform spoken audio into textual content or totally different languages with no need an web connection. 
  • Agent Expertise: The system can carry out a number of duties with out human steering by using sources equivalent to Wikipedia. 
  • Immediate Lab: Customers can consider their prompts by controlling the temperature settings to enhance their outcomes. 

The Agent Expertise characteristic stands out as a necessary factor of the system. It marks one of many earliest situations the place shoppers can use multi-step agentic AI know-how which operates totally offline on their cell gadgets. 

Why this Really Issues?

The flexibility to run AI on native methods supplies a number of advantages which transcend its aesthetic attraction. The three predominant benefits of this know-how current genuine advantages to customers: 

  • The mannequin operates totally in your gadget which establishes privateness as the first requirement. The appliance doesn’t transmit any of your shared content material which incorporates prompts and responses and pictures to Google or another server. The system operates via its community connection which solely requires the mannequin to be downloaded.  
  • No connectivity wanted. The system features correctly when you’re on a flight or in a basement or in an space with weak sign. Gemma 4 operates independently of your present location. The software program supplies full performance after you obtain it. 
  • The mannequin turns into freely usable for an indefinite interval after you full its obtain. It operates with out utilizing any background sources as a result of it requires no tokens or credit or subscriptions.  

The licensing settlement establishes one other requirement. Google launched Gemma 4 beneath an Apache 2.0 license which allows companies to make use of and modify and construct on the fashions with none utilization restrictions.

Gemma 4 E2B | E4B

Which Mannequin Must you Choose?

Most individuals change into confused at this level. The scale of a mannequin doesn’t decide its worth as a result of bigger fashions don’t all the time outperform smaller ones. The 4 variants of Gemma 4 embody Efficient 2B (E2B) and Efficient 4B (E4B) and 26B Combination of Specialists and 31B Dense. For telephones, you want to use the E2B and E4B methods in line with Enterprise At this time. 

The next supplies a necessary overview: 

  • Gemma 4 E2B requires lower than 1.5GB RAM to function. The system supplies rapid responses to easy inquiries whereas producing temporary summaries via its Q&A. 
  • Gemma 4 E4B requires roughly 2.5GB RAM for its operation. The system can execute extra superior visible assignments via its enhanced reasoning talents and its improved perform calling system. 

The E2B system performs higher than different methods for primary operations that present high-performance wants. The E4B system provides higher efficiency than different methods as a result of it handles advanced perform schemas and a number of perform choices higher than different methods.  

Gemma 4 E2B | E4B

You need to start with E2B as your start line. Change to E4B while you observe that it fails to deal with multi-step reasoning duties. 

Getting Began with Gemma 4

Step 1: Go to the Google Play Retailer (for Android) or Apple Retailer (for iOS), kind in Google AI Edge Gallery and obtain the app.

Step 2: Open the app. You may be delivered to the primary menu and see all 5 modes which you can select from (AI Chat, Ask an Picture, Audio Scribe, Agent Expertise, and Immediate Lab). 

Step 3: Navigate to the Mannequin Administration part and obtain both Gemma 4 E2B or Gemma 4 E4B. The one time you want to be related to the web is when downloading these fashions; you solely should do that as soon as. 

Step 4: After downloading, you possibly can activate airplane mode. From this level on, all features will work with out being related to the web.

Task1: Constructing a Sudoku Sport utilizing AI Chat characteristic

Right here, we’ll be growing the sudoku sport utilizing Gemma 4 on Google AI Edge Gallery by deciding on the AI Chat characteristic: 

  1. Begin by opening the app and deciding on AI Chat, then allow Pondering Mode
  2. Sort “Please create a sudoku sport utilizing Html Css Javascript with a view to have a timer, examine resolution features, and be sure that it’s mobile-friendly” (no quotes). 
  3. The mannequin will carry out its logic earlier than producing full code. 
  4. When performed, merely copy all of the code and paste it into a brand new textual content file that will likely be saved as an .html file, then open the brand new html file utilizing any net browser; your sport ought to now be working. 

Word: If you wish to have extra cleanly constructed code from the outset, attempt utilizing Gemma 4 E4B. Additionally, ought to points come up with features which have beforehand labored appropriately, merely inform Gemma which perform you want hassle with and ask her for assist repairing it. 

Assessment Evaluation:

After I prompted E2B mannequin then it simply stopped mid-task however after prompting the E4B mannequin, it produced the output. The mannequin gave us html code file with thorough instruction which was fairly useful in case of non-tech customers. Although, it might have additionally proven us a frontend interface which was a bit disappointing. Additionally, because it’s working in offline mode, it’s taking alot of time which reveals us the limitation of the mannequin. 

Task2: Automate Duties with Agent Expertise

  1. Allow the Map, Electronic mail, and Wikipedia abilities by tapping Agent Expertise and allow them. 
  2. After that, you possibly can take a look at the agent by giving them the next three requests one after the opposite: 
    • “Discover a espresso store that’s closest to me and place it on a map for me.” 
    • “Compose an electronic mail for me to ship to John indicating that I’m going to be 10 minutes late and ship it.” 
  3. After every request, the agent will break the request down into particular person duties, name the suitable instrument(s), and ensure with you earlier than finishing and sending any work. 

Word: You may monitor exactly which abilities have been utilized by the agent after every step. The agent is totally clear of their actions with you as effectively. 

Assessment Evaluation:

Outcomes have been considerably assorted for a number of agent ability varieties. For the primary question, Map typically offered outcomes the place the placement appeared appropriate on the map, however it ought to have been capable of detect my location by itself as a substitute of explicitly asking me.  

For the second question, it loaded the ability for ‘send-email’ appropriately. After the execution of ability, it confirmed that message has been despatched however it didn’t have any data the place it despatched the message, which is sort of a big disadvantage. The response time and occasional breakdowns of the power to finish the duty demonstrated that there’s nonetheless a big quantity of enchancment to make throughout the Use of Agentic AI Sort Units. 

What Can’t it Do (But)?

Once we speak about Gemma 4, it has some limitations as effectively: 

  • There’s a battery drain related to utilizing inference, because it requires considerably extra laptop energy than different forms of apps. Subsequently, will deplete your battery a lot quicker than different forms of apps. Units with devoted NPUs are significantly better at managing inference battery utilization than utilizing cpu-only for inference. For instance, a Pixel 9 Professional with a Gemma 4 4B will deplete its battery at a a lot slower fee than utilizing solely a pure CPU. 
  • As well as, the bigger variations of Gemma (26B and 31B) can’t be used on a cell phone; you want a laptop computer with numerous RAMS to run them. The E2B and E4B gadgets are fantastic for every day duties; nonetheless, they won’t be changing frontier cloud fashions anytime quickly. 
  • Lastly, the sting fashions have a 128k context window, which is sweet; nonetheless, since telephones don’t have as a lot reminiscence as computer systems do, you will want to maintain your conversations comparatively quick on a cellphone. 

Conclusion 

The time period “AI in your cellphone” all through a number of years described as a primary interface which accessed distant cloud APIs. The system processed your info via a circuitous route which handed via an unprotected server.  

Gemma 4 establishes an totally new connection between two totally different entities. 

Your present pocket gadget can carry out three features which embody transcribing talks and analysing visible content material and fixing troublesome challenges via offline capabilities. Beforehand, system operation required a whole server facility. Now it requires an app obtain. 

The period of AI working silently in your pocket gadget, with no server concerned, is not a analysis demo.  

Regularly Requested Questions

Q1. What’s Gemma 4 and the way does it work offline?

A. Gemma 4 runs immediately in your cellphone, processing prompts regionally after a one-time obtain, with out sending information to exterior servers.

Q2. Which Gemma 4 mannequin ought to I take advantage of on a cellphone?

A. Use E2B for primary duties with low RAM, and E4B for extra advanced reasoning and superior features on cell gadgets.

Q3. What are the primary advantages of working AI offline?

A. It ensures privateness, works with out the web, and avoids ongoing prices like subscriptions, tokens, or cloud utilization charges. 

Riya Bansal

Information Science Trainee at Analytics Vidhya
I’m presently working as a Information Science Trainee at Analytics Vidhya, the place I give attention to constructing data-driven options and making use of AI/ML methods to unravel real-world enterprise issues. My work permits me to discover superior analytics, machine studying, and AI functions that empower organizations to make smarter, evidence-based selections.
With a robust basis in laptop science, software program growth, and information analytics, I’m captivated with leveraging AI to create impactful, scalable options that bridge the hole between know-how and enterprise.
📩 It’s also possible to attain out to me at [email protected]

Login to proceed studying and revel in expert-curated content material.