Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This module is used for running zero shot classification with multiple GPUs""" | |
import pandas as pd | |
import numpy as np | |
from transformers import pipeline | |
from transformers import AutoModelForSequenceClassification, AutoTokenizer | |
from transformers import set_seed | |
from tqdm.notebook import tqdm | |
import time | |
import math | |
from multiprocessing import Pool, current_process, Queue |