Skip to content

Commit 6b1366a

Browse files
committed
wat
1 parent 0f7c870 commit 6b1366a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/levanter/models/gpt2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def init(Vocab: Axis, config: Gpt2Config, *, key) -> "Gpt2Embeddings":
347347

348348
@named_call
349349
def embed(self, input_ids, *, key, pos_ids: NamedArray):
350-
jax.debug.print("input_ids: has_nan={nan}", nan=jnp.any(jnp.isnan(input_ids.array)))
350+
jax.debug.print("input_ids: min={min}, max={max}, has_nan={nan}", min=jnp.min(input_ids.array), max=jnp.max(input_ids.array), nan=jnp.any(jnp.isnan(input_ids.array)))
351351
jax.debug.print("token_embeddings.weight: has_nan={nan}", nan=jnp.any(jnp.isnan(self.token_embeddings.weight.array)))
352352

353353
input_embeds = self.token_embeddings(input_ids)

0 commit comments

Comments
 (0)