Skip to content

Instantly share code, notes, and snippets.

View even-wei's full-sized avatar
🐱
Working from home

Even Wei even-wei

🐱
Working from home
  • Taiwan
  • 05:13 (UTC +08:00)
View GitHub Profile
@even-wei
even-wei / primehub_tutorial.py
Last active January 6, 2022 00:27
A demo for integrating PrimeHub and Airflow
import logging as log
import datetime
from datetime import timedelta
import requests
import numpy as np
# The DAG object; we'll need this to instantiate a DAG
from airflow import DAG
from airflow.models import Variable
# default_runtime_name is the default runtime name to use.
- default_runtime_name = "${RUNTIME}"
+ default_runtime_name = "nvidia-container-runtime"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.