Skip to content

Example for running Llama 2 on Ray with TPUs

License

Notifications You must be signed in to change notification settings

davidxia/ray-llama

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray-llama

Examples for running Llama 2 on Ray with Google Cloud TPUs.

Folder structure

  • cluster: sample YAML files for creating your Ray cluster.
  • notebooks: sample notebook to demonstrate interacting with Ray TPU clusters.
  • docker: sample Docker files for quick env setup.
  • serve: sample code for RayServe deployments.
  • train: sample code for pretraining from scratch.
  • scripts: sample scripts to automate common tasks.

How to Get Started

To get started with this repo, a great option to start is to started with an interactive notebook environment. See notebooks.

If you are interested in large scale training runs, see train to get started.

If you are interested in serving, see serve to get started.

Setting up Your Environment

To quickly set up your environment, you can run

$ ./scripts/set_project_info.sh

and supply a base GCR/Docker path and GCP project ID. This will automatically set these values in cluster YAML files and scripts.

About

Example for running Llama 2 on Ray with TPUs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.1%
  • Shell 12.9%
  • Jupyter Notebook 5.0%