Skip to content

Terraform script to create a data science project in OCI to fine tune and deploy a stable diffusion XL

Notifications You must be signed in to change notification settings

carlgira/oci-tf-odsc-sdxl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCI Stable Diffusion XL - fine tuning

This repo enables you to create a data science project in OCI that will allows you fine tune stable diffusion XL with your own images.

First execute this the terraform, and after that go to the created notebook and execute the cells.

You'll need access to GPUs to execute eveything.

See the next video with all the steps.

Requirements

  • Terraform
  • ssh-keygen

Configuration

  1. Follow the instructions to add the authentication to your tenant https://medium.com/@carlgira/install-oci-cli-and-configure-a-default-profile-802cc61abd4f.

  2. Clone this repository:

    git clone https://github.com/carlgira/oci-tf-odsc-sdxl
  3. Set three variables in your path.

  • The tenancy OCID,
  • The comparment OCID where the instance will be created.
  • The number of instances to create
  • The "Region Identifier" of region of your tenancy.

Note: More info on the list of available regions here.

    export TF_VAR_tenancy_ocid='<tenancy-ocid>'
    export TF_VAR_compartment_ocid='<comparment-ocid>'
    export TF_VAR_region='<oci-region>'

Build

To build the terraform solution, simply execute:

    terraform init
    terraform plan
    terraform apply

Notebook

Go to the data science project and open the notebook session that was created. You'll need to follow the all the instructions.

Acknowledgements

About

Terraform script to create a data science project in OCI to fine tune and deploy a stable diffusion XL

Resources

Stars

Watchers

Forks

Packages

No packages published