Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored Oct 11, 2023
1 parent d59bcc6 commit 1efe7a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
import jax.numpy as jnp
import joblib
import optax
import wandb
from flax import jax_utils, struct, traverse_util
from flax.serialization import from_bytes, to_bytes
from flax.training import train_state
from flax.training.common_utils import shard
from tqdm.auto import tqdm

import wandb
from transformers import BigBirdConfig, FlaxBigBirdForQuestionAnswering
from transformers.models.big_bird.modeling_flax_big_bird import FlaxBigBirdForQuestionAnsweringModule

Expand Down
2 changes: 1 addition & 1 deletion examples/research_projects/jax-projects/big_bird/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
from dataclasses import replace

import jax
import wandb
from bigbird_flax import Args, DataCollator, FlaxBigBirdForNaturalQuestions, Trainer, build_tx, train_step, val_step
from datasets import load_dataset
from flax import jax_utils

import wandb
from transformers import BigBirdTokenizerFast


Expand Down
2 changes: 1 addition & 1 deletion examples/research_projects/vqgan-clip/VQGAN_CLIP.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import imageio
import torch
import torchvision
import wandb
from img_processing import custom_to_pil, loop_post_process, preprocess, preprocess_vqgan
from loaders import load_vqgan
from PIL import Image
from torch import nn

import wandb
from transformers import CLIPModel, CLIPTokenizerFast
from utils import get_device, get_timestamp, show_pil

Expand Down

0 comments on commit 1efe7a4

Please sign in to comment.