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 ray | |
import torch | |
import pytorch_lightning as pl | |
import torch.nn.functional as F | |
from torch.utils.data import DataLoader, random_split | |
from transformers import AutoTokenizer, AutoModelForSequenceClassification | |
from datasets import load_dataset, load_metric | |
import numpy as np | |
from ray.train.torch import TorchTrainer |
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 os | |
import ray | |
from ray.air.config import ScalingConfig | |
from ray.train.lightning import LightningTrainer, LightningConfigBuilder | |
from ray.air.integrations.wandb import setup_wandb | |
import torch | |
import pytorch_lightning as pl | |
import torch.nn.functional as F |
NewerOlder