Sunday, March 26, 2023
  • PRESS RELEASE
  • ADVERTISE
  • CONTACT
Asia Post
No Result
View All Result
  • HOME
  • NEWS
    • INDIA
    • CHINA
    • WORLD
  • DEFENSE
  • POLITICS
  • BUSINESS
  • HEALTH
  • SPORTS
  • ENTRTAINMENT
  • TECHNOLOGY
  • LIFESTYLE
  • TRAVEL
  • OUR TEAM
Asia Post
No Result
View All Result

You can now run a GPT-3 level AI model on your laptop, phone, and Raspberry Pi

March 13, 2023
in TECHNOLOGY
0 0
0
Share on FacebookShare on TwitterShare on Email


An AI-generated abstract image suggesting the silhouette of a figure.

Ars Technica

Things are moving at lighting speed in AI Land. On Friday, a software developer named Georgi Gerganov created a tool called “llama.cpp” that can run Meta’s new GPT-3-class AI large language model, LLaMA, locally on a Mac laptop. Soon thereafter, people worked out how to run LLaMA on Windows as well. Then someone showed in running on a Pixel 6 phone. Next came a Raspberry Pi (albeit very slowly).

If this keeps up, we may be looking at a pocket-sized ChatGPT competitor before we know it.

But let’s back up a minute, because we’re not quite there yet. (At least not today—as in literally today, March 13, 2023.) But what will arrive next week, no one knows.

Since ChatGPT launched, some people have been frustrated by the AI model’s built-in limits that prevent it from discussing topics that OpenAI has deemed sensitive. Thus began the dream—in some quarters—of an open source large language model (LLM) that anyone could run locally without censorship and without paying API fees to OpenAI.

Open source solutions do exist (such as GPT-J), but they require a lot of GPU RAM and storage space. Other open source alternatives could not boast GPT-3-level performance on readily available consumer-level hardware.

Enter LLaMA, an LLM available in parameter sizes ranging from 7B to 65B (that’s “B” as in “billion parameters,” which are floating point numbers stored in matrices that represent what the model “knows”). LLaMA made a heady claim: that its smaller-sized models could match OpenAI’s GPT-3, the foundational model that powers ChatGPT, in the quality and speed of its output. There was just one problem—Meta released the LLaMA code open source, but it held back the “weights” (the trained “knowledge” stored in a neural network) for qualified researchers only.

Advertisement

Flying at the speed of LLaMA

Meta’s restrictions on LLaMA didn’t last long, because on March 2, someone leaked the LLaMA weights on BitTorrent. Since then, there’s been an explosion of development surrounding LLaMA. Independent AI researcher Simon Willison has compared this situation to the release of Stable Diffusion, an open source image synthesis model that launched last August. Here’s what he wrote in a post on his blog:

It feels to me like that Stable Diffusion moment back in August kick-started the entire new wave of interest in generative AI—which was then pushed into over-drive by the release of ChatGPT at the end of November.

That Stable Diffusion moment is happening again right now, for large language models—the technology behind ChatGPT itself. This morning I ran a GPT-3 class language model on my own personal laptop for the first time!

AI stuff was weird already. It’s about to get a whole lot weirder.

Typically, running GPT-3 requires several datacenter-class A100 GPUs (also, the weights for GPT-3 are not public), but LLaMA made waves because it could run on a single beefy consumer GPU. And now, with optimizations that reduce the model size using a technique called quantization, LLaMA can run on an M1 Mac or a lesser Nvidia consumer GPU.

Things are moving so quickly that it’s sometimes difficult to keep up with the latest developments. (Regarding AI’s rate of progress, a fellow AI reporter told Ars, “It’s like those videos of dogs where you upend a crate of tennis balls on them. [They] don’t know where to chase first and get lost in the confusion.”)

For example, here’s a list of notable LLaMA-related events based on a timeline Willison laid out in a Hacker News comment:

  • February 24, 2023: Meta AI announces LLaMA.
  • March 2, 2023: Someone leaks the LLaMA models via BitTorrent.
  • March 10, 2023: Georgi Gerganov creates llama.cpp, which can run on an M1 Mac.
  • March 11, 2023: Artem Andreenko runs LLaMA 7B (slowly) on a Raspberry Pi 4, 4GB RAM, 10 sec/token.
  • March 12, 2023: LLaMA 7B running on NPX, a node.js execution tool.
  • March 13, 2023: Someone gets llama.cpp running on a Pixel 6 phone, also very slowly.
  • March 13, 2023, 2023: Standord releases Alpaca 7B, an instruction-tuned version of LLaMA 7B that “behaves similarly to OpenAI’s “text-davinci-003” but runs on much less powerful hardware.
Advertisement

After obtaining the LLaMA weights ourselves, we followed Willison’s instructions and got the 7B parameter version running on an M1 Macbook Air, and it runs at a reasonable rate of speed. You call it as a script on the command line with a prompt, and LLaMA does its best to complete it in a reasonable way.

A screenshot of LLaMA 7B in action on a MacBook Air running llama.cpp.
Enlarge / A screenshot of LLaMA 7B in action on a MacBook Air running llama.cpp.

Benj Edwards / Ars Technica

There’s still the question of how much the quantization affects the quality of the output. In our tests, LLaMA 7B trimmed down to 4-bit quantization was very impressive for running on a MacBook Air—but still not on par with what you might expect from ChatGPT. It’s entirely possible that better prompting techniques might generate better results.

Also, optimizations and fine-tunings come quickly when everyone has their hands on the code and the weights—even though LLaMA is still saddled with some fairly restrictive terms of use. The release of Alpaca today by Stanford proves that fine tuning (additional training with a specific goal in mind) can improve performance, and it’s still early days after LLaMA’s release.

As of this writing, running LLaMA on a Mac remains a fairly technical exercise. You have to install Python and Xcode and be familiar with working on the command line. Willison has good step-by-step instructions for anyone who would like to attempt it. But that may soon change as developers continue to code away.

As for the implications of having this tech out in the wild—no one knows yet. While some worry about AI’s impact as a tool for spam and misinformation, Willison says, “It’s not going to be un-invented, so I think our priority should be figuring out the most constructive possible ways to use it.”

Right now, our only guarantee is that things will change rapidly.





Source link

Tags: GPT3laptopLevelModelphoneRaspberryRun
ShareTweetSend

Related Posts

TECHNOLOGY

WE Hub ties up with Australia’s Cyber West Sign to boost opportunities for Australian, Indian start-ups

March 26, 2023
TECHNOLOGY

Twitter Blue Subscribers May Be Able To Hide Their Paid Blue Check Marks Soon: Know More

March 26, 2023
TECHNOLOGY

Epic made a Rivian R1T demo to show off its latest Unreal Engine 5 tools

March 25, 2023
TECHNOLOGY

The tide has shifted for solo GPs

March 25, 2023
TECHNOLOGY

Microsoft researchers say GPT-4 showed early signs of AGI, with performance close to human levels in tasks spanning coding, medicine, law, psychology, and more (Chloe Xiang/VICE)

March 25, 2023
TECHNOLOGY

Asus ROG Phone 7 Series Key Specifications Leak Ahead of April 13 Launch Date: All Details

March 25, 2023
Load More
Next Post

China’s ‘Two Sessions’ ends with Xi in charge and Li in second – The China Project

Ex-Malaysian PM Muhyiddin Hit With Seventh Graft Charge – The Diplomat

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest

Pharma industry: Domestic pharma industry revenues expected to grow 6-8 pc next fiscal: Icra

March 16, 2023

Chainsaw Man Chapter 124: Chainsaw Man Chapter 124: Check release date, where to read

March 16, 2023

Rani Rampal Becomes First Woman Hockey Star To Get Stadium Named After Her

March 21, 2023

Ramadan 2023: Moon sighting, sehri and iftar timings in Delhi, Mumbai and other states of India

March 20, 2023

Delhi Corona Guidelines Mask Mandatory Amid Rising Covid-19 Cases Rs 500 Fine For Not Wearing Facemasks

August 11, 2022

Rohit Shetty makes Marathi cinema debut with Tejasswi Prakash’s ‘School College Ani Life’; Trailer out

March 20, 2023

netherlands: France vs Netherlands: Date, time, live channel, where to watch Kylian Mbappe’s EURO 2024 qualification match

March 24, 2023

TV actress Tunisha Sharma’s last rites performed in Mumbai; accused’s mother, sister attend funeral

December 27, 2022

China’s trust assets expand in 2022

March 26, 2023

Odisha CM Patnaik inaugurates, lays foundation for Rs 2,000-cr projects

March 26, 2023

397 New Cases in Maharashtra, No Death

March 26, 2023

The Guardian view on how Covid began: look to the future | Editorial

March 26, 2023

NTPC’s CSR initiative: Screening camp for birth/physical deformities held in tribal dominated district

March 26, 2023

png: Having problem saving WebP Images as JPEG, PNG? Here’s how to do it

March 26, 2023

Akanksha Dubey death: Video of Bhojpuri actor crying inconsolably goes viral

March 26, 2023

Boxing Worlds: Nikhat bags second gold

March 26, 2023
Asia Post

Get the latest news and follow the coverage of breaking news, local news, national, politics, and more from the Asia's top trusted sources.

Categories

  • BUSINESS
  • CHINA
  • DEFENSE
  • ENTRTAINMENT
  • HEALTH
  • INDIA
  • INDIA-NORTHEAST
  • LIFESTYLE
  • POLITICS
  • SPORTS
  • TECHNOLOGY
  • TRAVEL
  • WORLD

Recent News

  • China’s trust assets expand in 2022
  • Odisha CM Patnaik inaugurates, lays foundation for Rs 2,000-cr projects
  • 397 New Cases in Maharashtra, No Death
  • Home
  • Disclaimer
  • DMCA
  • Privacy Policy
  • Cookie Privacy Policy
  • Terms and Conditions
  • Our Team
  • Contact

Copyright © 2021 Asia Post.
Asia Post is not responsible for the content of external sites.

No Result
View All Result
  • HOME
  • NEWS
    • INDIA
    • CHINA
    • WORLD
  • DEFENSE
  • POLITICS
  • BUSINESS
  • HEALTH
  • SPORTS
  • ENTRTAINMENT
  • TECHNOLOGY
  • LIFESTYLE
  • TRAVEL
  • OUR TEAM

Copyright © 2021 Asia Post.
Asia Post is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In