Skip to content

roryclear/tinygrad-cloud-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tinygrad host for iOS

Run tinygrad code using your iPhone or iPad's GPU

steps

  1. install and open this app on your iPhone or iPad

  2. install tinygrad on a computer connected to the same wifi network

  3. run any tinygrad code

CLOUD=1 HOST={your iphone/ipad IP address}:6667 python3 examples/gpt2.py --model_size=gpt2

Also try YOLOv8 on tinygrad, by caching tinygrad cloud batches, models can be easily ran locally.

notes

  • Max allowed app RAM < total RAM. An iPhone 13 (4GB RAM) cannot use over 2GB in a single app for example, it will crash. Each device has its own limit.
  • Metal cannot be ran in the background on iOS, the app must be open to run.
  • Modifying one line in tinygrad to send batches on copyin() can increase the amount of memory that can be used, depending on the situation. This needs to be fixed within this app.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published