Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 18, 2023. It is now read-only.
/XLA.jlPublic archive

Julia on TPUs

License

NotificationsYou must be signed in to change notification settings

JuliaGPU/XLA.jl

Repository files navigation

NOTE: We're in the process of adding better instructions. Check back in a bit.

Getting started on TPUs

Running on Colab

Google currently offers free access to Cloud TPUs through its Colab notebookservice. Colab does not officially support julia at the moment, but it ispossible to install julia by manually installing it into the runtime (thoughthis has to be done every time the runtime gets reset). By this mechanism,you can get access to TPUs through the notebook interface. Start with the installationnotebook indocs/colab/InstallJuliaXLA.ipynb:

Open in Colab
Run in Google Colab

Afterwards, any JuliaTPU notebook should work if opened without resetting the runtimein between.

Running on GCP

The process for setting up this repository to run against TPUs is muchthe same as the process for setting up the repository locally. However, sincethere is additional steps involved in launching the actual TPU, we are providinga tutorial to walk you through all the steps. It is recommended for those new toJulia and/or TPUs. If you're already familiar with both, you may skip the tutorialand just use the setup guide below. The tutorial will open in Google Cloud Shell,by clicking the button below:

Open in Cloud Shell

Getting started (CPU/GPU backend)

  • Grab julia on branchkf/tpu3 (Prebuilt Linux x86_64 binaries with TPU support are availablehere)
  • Instantiate this repo
  • julia> using TensorFlow
  • Get yourself anxrt_server (either running it locally viarun(`$(joinpath(dirname(pathof(TensorFlow)),"..","deps","downloads","bin","xrt_server"))`) or by spinning up a Google Cloud TPU and starting an SSH tunnel to expose its port to the world) and connect it to localhost:8470
  • Run the script inexamples/vgg_forward.jl

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp