Skip to content

Block torchscript pytest because of seg fault issue#793

Merged
regisss merged 4 commits into
mainfrom
no_torchscript_4.38
Mar 14, 2024
Merged

Block torchscript pytest because of seg fault issue#793
regisss merged 4 commits into
mainfrom
no_torchscript_4.38

Conversation

@yeonsily
Copy link
Copy Markdown
Collaborator

What does this PR do?

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@yeonsily yeonsily requested a review from libinta March 13, 2024 18:06
@yeonsily yeonsily requested a review from regisss as a code owner March 13, 2024 18:06
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@libinta libinta added run-test Run CI for PRs from external contributors synapse 1.15 labels Mar 13, 2024
)
model_kwargs["bucket_size"] = generation_config.bucket_size if generation_config.static_shapes else -1
model_kwargs["bucket_internal"] = generation_config.bucket_internal
if generation_config.bucket_internal:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DO we need this if check ? This is already defined in optimum-habana/optimum/habana/transformers/generation/configuration_utils.py. And we don't do same for other generation config flags such as attn_softmax_bf16

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR781 causes 2 issues in bert pytest BertModelTest.test_greedy_generate 1. ValueError: The following model_kwargs are not used by the model: ['use_hpu_graphs'] (note: typos in the generate arguments will also show up in this list)
2 bucket_internal = model_kwargs["bucket_internal"]
[2024-03-13T18:54:28.818Z] E KeyError: 'bucket_internal'

Copy link
Copy Markdown
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-test Run CI for PRs from external contributors synapse 1.15

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants