DEV Community

Cover image for Simple Cheat Sheet OVH AI
victor_dalet
victor_dalet

Posted on

Simple Cheat Sheet OVH AI

Hi,

I post my ovh ai cheat sheet for lanching a simple Job.


  • Display job
ovhai job list
Enter fullscreen mode Exit fullscreen mode
  • Display logs
ovhai job logs {id}
Enter fullscreen mode Exit fullscreen mode
  • Run Job With env var
ovhai job run  {images} 
Enter fullscreen mode Exit fullscreen mode
  • Run Job With env var
ovhai job run -e {my_env_var} -e {my_second_en_var} {images} 
Enter fullscreen mode Exit fullscreen mode
  • Run Job With cmd
ovhai job run {images} -- echo "Hello ! "
Enter fullscreen mode Exit fullscreen mode
  • Run Job With multiples cmd
ovhai job run {images} -- bash -c 'echo "Hello" && echo "World ! "'
Enter fullscreen mode Exit fullscreen mode
  • Run Job With one GPU
ovhai job run --gpu 1 {images}
Enter fullscreen mode Exit fullscreen mode
  • Run Job With monitoring port
ovhai job run -p {port} {images}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)