Git Product home page Git Product logo

devspaces's Introduction

Openshift DevSpaces

A working GPU node is required to load this devfile into DevSpaces

Directory Tree

├── components       Operator installation
    ├── operators
    └── stack
├── containers
    ├── dev-base     Build the DevSpaces container image.
├── devfile.yaml     Defines limits, repos for the workspace.
└── src              Example python programs to test GPU functionality.

Install the DevSpaces operator

oc apply -k components/operators

The DevSpace operator should install the DevWorkspace operator so there should be (2) operators installed.

oc get operators
NAME                                                              AGE
devspaces.openshift-operators                                     20d
devworkspace-operator.openshift-operators                         20d

Install Openshift DevSpaces (Che) Cluster Instance

oc apply -k components/stack

The DevSpaces stack can take up to 10 minutes to populate its registries and become ready.

Look for the following pods to be ready in the devspaces project:

NAME                                   READY   STATUS    RESTARTS   AGE
che-gateway-55697854bf-twq47           4/4     Running   0          77s
devfile-registry-577789b564-5wbqh      1/1     Running   0          8m7s
devspaces-7679d5cfcb-8lzw4             1/1     Running   0          63s
devspaces-dashboard-65cf874b95-v9f9c   1/1     Running   0          2m
plugin-registry-746bb64444-j26hw       1/1     Running   0          7m54s

Sample Applications

Setup python manually or run the devfile task from vscode.

python -m venv .venv
source .venv/bin/activate
pip install pip -Uq
pip install -r src/requirements.txt

Pytorch test.

python -m torch.utils.collect_env

Tensorflow 2.10 (versions >v2.10 report runtime errors)

python src/tf-beginner.py

Pytorch

python src/pytorch-gpu.py

Gradio/HuggingFace (This example takes at least 10 minutes to download model weights). At a minimum, an NIVDIA T4 is recommended.

python src/gradio-huggingface-code-llama.py

Teardown

Delete the DevSpaces cluster instance and the devspaces namespace.

oc delete -k components/operators

Links

devspaces's People

Contributors

bkoz avatar codekow avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.