Skip to content

Latest commit

 

History

History
201 lines (121 loc) · 5.25 KB

README.md

File metadata and controls

201 lines (121 loc) · 5.25 KB

Determine Samples

🐙 🎈 🧨 How to use this Repo

Please make a fork of this repo to make and store your own changes. This repo will be like the main repo for samples and documentation. If you like to add some new examples or documentation please make a pull request.

⚙️ Install determine python locally

To install determine execute the command:

pip install determined

To Check if installed run:

det --version

You must see something like det 0.37.0

You can update the package running:

pip install --upgrade determined

🚀 Examples

  • cmd

    Run commands, when the scripts or commands ends the container is closed.

  • cmd_custom

    Run commands, when the scripts or commands ends the container is closed.(Using custom image).

  • cmd_custom_home

    Run commands, when the scripts or commands ends the container is closed.(Using custom image and load a conda enviroment from /nfs/home/cluser).

  • cmd_rtools_matlab

    Run a matlab code as a command without UI.

  • jupyter

    Run Jupyter from terminal.

  • mnist_torch

    Run the mnist_torch example(From https://docs.determined.ai/).

  • shell

    Open a shell

  • shell_custom

    Open a shell using the custom image.

  • shell_custom_add_caps

    Open a shell with extra capabilities

  • shell_custom_home_conda

    Open a shell using the conda enviroment from /nfs/home/clbente.

  • shell_custom_template

    Open a shell using a template.

  • shell_custom_vscode

    Open a shell and run a Vs code web to use in the browser.

  • shell_home_conda

    Open a shell using the conda enviroment from /nfs/home/clbente but using the determined docker image.

  • shell_home_conda_template

    Open a shell using the conda enviroment from /nfs/home/clbente but using the determined docker image. Using a template.

  • shell_rtools

    Open a rtools and open the url locally using a browser.

  • shell_streamlit

    Open a streamlit app and open the url locally using a browser.

  • train_neuro

    Custom example using a example code from kaggle.

🎯 Some helpfull agent enviroment variables(This is for the docker containers)

  • DET_ALLOCATION_ID=b54f9618-591e-4700-b119-e1e508f11dce.1

    Agent Task ID.

  • DET_AGENT_ID=Agent_i7_CPU_192.168.100.234_04

    Agent Id, in this case when a agent is setup the ID contains the IP address of the machine. This IP is internal to a local network

  • DET_USER=demo

    Determined user runing the task.

** You can check all the enviroment variables running the command printenv

💫 Custom images

The custom images contains some extra commands and utilities like:

For More check CPU dockerfile.cpu and GPU dockerfile.gpu (This dockerfile is for the latest image)

📝 Templates

You can check some basic templates.

⚗️ Some commands examples

# list users
$:- det user

# login first
$:- det user login USER

# change password of current user
$:- det user change-password

# create a user name USER
$:- det user create USER

# change password of USER
$:- det user change-password USER

# re-atach to shell
$:- det shell open ID-TASK

# list Agents
$:- det agent ls

# to view a snapshot of logs.
$:- det cmd logs <UUID>

# to view the current logs and continue streaming future output.
$:- det cmd logs -f <UUID>

# to stop the command.
$:- det cmd kill <UUID>

# Get experiments logs
$:- det trial logs -f <UUID>

🐚 Current images

You can use all 'determinedai/environments/*' docker images but is prefer to use the custom local images

We only maintaining the latest 3 images version, so when a new version is added to the cluster we remove the oldest image version.

   Custom Images

 - harbor.vhio.net/desktop:0.0.1

 - harbor.vhio.net/determine/srtools:0.24.5

 - harbor.vhio.net/determine/custom_cpu:0.24.1.6
 - harbor.vhio.net/determine/custom_cpu:0.24.1.7
 - harbor.vhio.net/determine/custom_cpu:0.24.1.8

 - harbor.vhio.net/determine/custom_gpu:0.24.1.6
 - harbor.vhio.net/determine/custom_gpu:0.24.1.7
 - harbor.vhio.net/determine/custom_gpu:0.24.1.8