Skip to content

Commit

Permalink
update example (sanchit-gandhi#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchit-gandhi authored May 5, 2023
1 parent e2dddc9 commit 0d3bc54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/run_pmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import jax
import jax.numpy as jnp
from datasets import concatenate_datasets, load_dataset
from flax import jax_utils
from flax.training.common_utils import shard
from transformers import FlaxWhisperForConditionalGeneration, WhisperProcessor

Expand All @@ -17,7 +18,7 @@
dtype=jnp.bfloat16,
)

params = model.to_bf16(params)
params = jax_utils.replicate(params)


def generate_fn(batch):
Expand Down

0 comments on commit 0d3bc54

Please sign in to comment.