-
Fluid made standalone Gmail, Trello apps for cmd-tab
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
import time | |
import torch | |
import argparse | |
from tqdm import tqdm | |
from transformers import BartForConditionalGeneration, BartTokenizer | |
FS_MODEL = "FairSeq" | |
HF_MODEL = "HuggingFace" |
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
import logging | |
from transformers.modeling_bart import BartForSequenceClassification | |
from transformers.pipelines import TextClassificationPipeline | |
from transformers.tokenization_bart import BartTokenizer | |
logging.basicConfig(level=logging.INFO) | |