Simple Cheat Sheet OVH AI

victor_dalet - Oct 7 - - Dev Community

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
. . . . . . . . . . . .