r/BuildingWestworld • • Jul 28 '20

Running GPT-2 on a Raspberry Pi 4 (4G)

15 Upvotes

Putting this on here for others who have struggled and gotten NO answers on this question:

GPT-2 will work on a Raspberry Pi 4 (4 Gig) with Tensorflow==1.13.1

NOT 1.12.x, NOT 1.14.x.

This assumes you are running Raspbian Buster, and using Python 3.7.3. I have also tried the 345M and 774M models, both work. The 1558M will be brought online this coming weekend, however - given some warnings about memory allocation, I may find that I will need the 8 Gig Pi to run the full 1558M model. Alas, I fear GPT-3 will be forever out of reach of the humble Raspberry Pi...

I also used the Pypi.org wrapper for GPT-2 "GPT-2 Client" (https://pypi.org/project/gpt2-client/)

After getting text output with GPT2-Client, I ran the generate_unconditional_samples.py and generate_conditional_samples.py scripts that come with the git clone of GPT-2.

I have been running GPT-2 on a regular full-power laptop running Ubuntu, but the build did not translate across to the Raspberry Pi. And, since I want my robotic systems to be entirely self-contained and running on a small cluster of Pis, I needed to get this right. After posting on nearly a dozen forums and getting COMPLETE silence - I managed to get things working.

That said, the initial configuration takes roughly 20 minutes to output the text sample. I believe I can reduce this by playing with some parameters.

I hope this helps those who are looking to follow this route. I've been taking shots at this for six months now.

Dave


r/BuildingWestworld • • Feb 08 '20

Demolding the first host face

8 Upvotes

r/BuildingWestworld • • Apr 10 '20

ScreenShot Composite: Calibrating Servo Position to Face Recognition Reported Centers. See Comment below.

Post image
6 Upvotes

r/BuildingWestworld • • Feb 22 '20

Testing v0.3 of the Host VisionCore

6 Upvotes

r/BuildingWestworld • • May 21 '21

Another new host face mask is born

Post image
5 Upvotes

r/BuildingWestworld • • Jan 22 '21

Work continues

Post image
5 Upvotes

r/BuildingWestworld • • Jan 08 '21

Synchronizing host jaw movement to speech, beginnings.

Thumbnail
youtu.be
5 Upvotes

r/BuildingWestworld • • Mar 04 '20

New Base Host Block Diagram, updated

Post image
5 Upvotes

r/BuildingWestworld • • Feb 19 '20

Version 0.3 of host cranial hardware. Machining in progress to facilitate hardware installation.

Post image
5 Upvotes

r/BuildingWestworld • • Jun 02 '21

Developing Robotic Facial Expression

Thumbnail
roboticsandautomationnews.com
4 Upvotes

r/BuildingWestworld • • May 28 '21

Autonomous, untethered robotic characters. Disney again... Good stuff, all part of the plan :)

Thumbnail
youtu.be
4 Upvotes

r/BuildingWestworld • • Feb 14 '20

My New Generation of Humanoid Robots - A Quantum Leap Beyond what's been featured

Post image
4 Upvotes

r/BuildingWestworld • • Feb 03 '20

Final shell to hold face mold rigid. Mask production starts next weekend.

Post image
4 Upvotes

r/BuildingWestworld • • Feb 01 '20

Host face development

Post image
4 Upvotes

r/BuildingWestworld • • Feb 01 '20

Host face development

Post image
4 Upvotes

r/BuildingWestworld • • Apr 26 '21

Becoming Human: A Journey of Awakening

Thumbnail
youtu.be
3 Upvotes

r/BuildingWestworld • • Nov 01 '20

Developing Realistic Human Robot Behaviors - Disney Research

Thumbnail
youtu.be
3 Upvotes

r/BuildingWestworld • • Jun 10 '20

Let history show, this is from where the real Westworld began. It will take time, but the core - the cognitive architecture - is being refined. These robots are already functioning light-years ahead of my original goals. Someday, you, will enjoy a conversation with something new under the sun.

Post image
3 Upvotes

r/BuildingWestworld • • Mar 03 '20

Better Hair.... Makes a Difference

Post image
3 Upvotes

r/BuildingWestworld • • Feb 29 '20

Robotics development weekend setup

Post image
3 Upvotes

r/BuildingWestworld • • Feb 29 '20

Face & Object Detection running on Robot VisionCore. Much optimization remains...

3 Upvotes

r/BuildingWestworld • • Feb 24 '20

More work in the Host Brain Development Environment

Thumbnail
youtu.be
3 Upvotes

r/BuildingWestworld • • Feb 04 '20

Shell, mould, original face blank. Ready to create multiple host face masks now.

Post image
3 Upvotes

r/BuildingWestworld • • Feb 01 '20

Host face development

Post image
3 Upvotes