Skip to content

Instantly share code, notes, and snippets.

View schen149's full-sized avatar

Sihao Chen schen149

View GitHub Profile
export TPU_NAME=sihao02
export PROJECT=???
export ZONE=???
export BUCKET=gs://sihao-source/models
PRETRAINED_STEPS=1000000
FINETUNE_STEPS=50000
declare -a sizes=("large")
declare -a tasks=("twitter")
@schen149
schen149 / models.py
Created August 9, 2019 02:31
lightweight, reusable Django db models for crowdsourcing tasks
import datetime
import json
import numpy as np
import random
from abc import abstractmethod
from django.db import models
#############################