Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF5 XLA error #5

Open
SoyGema opened this issue Aug 9, 2023 · 1 comment
Open

TF5 XLA error #5

SoyGema opened this issue Aug 9, 2023 · 1 comment

Comments

@SoyGema
Copy link
Owner

SoyGema commented Aug 9, 2023

After training and during inference this error was found

1092, in xla_dynamic_slice_eager_fallback
    _result = _execute.execute(b"XlaDynamicSlice", 1, inputs=_inputs_flat,
tensorflow.python.framework.errors_impl.UnimplementedError: Exception encountered when calling layer "SelfAttention" (type TFT5Attention).

Could not find compiler for platform METAL: NOT_FOUND: could not find registered compiler for platform METAL -- check target linkage [Op:XlaDynamicSlice]

Follow up

@SoyGema
Copy link
Owner Author

SoyGema commented Aug 9, 2023

Changing the argument to True seems to give same error in some sense

File "/Users/gema/Documents/transformers/src/transformers/keras_callbacks.py", line 223, in on_epoch_end
    predictions = self.generation_function(generation_inputs, attention_mask=attention_mask)
tensorflow.python.framework.errors_impl.UnimplementedError: Could not find compiler for platform METAL: NOT_FOUND: could not find registered compiler for platform METAL -- check target linkage [Op:__inference_generation_function_28937]

Try : changing tf-metal install

@SoyGema SoyGema changed the title XLA error TF5 XLA error Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant