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

Adjust Qwen2-7B test case #1551

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Adjust Qwen2-7B test case #1551

merged 1 commit into from
Dec 4, 2024

Conversation

Wei-Lin-Intel
Copy link
Contributor

What does this PR do?

Since the accuracy patch for Qwen2 family (PR Link) was merged, the test case should be also adjusted for the batch size and output.

GAUDI2_CI=1  RUN_SLOW=1 python3.10 -m pytest tests/test_text_generation_example.py -s -v -k generation_bf16_1x[token0-Qwen/Qwen2-7B-256

Result:

Stats:
----------------------------------------------------------------------------------
Input tokens
Throughput (including tokenization) = 8871.747465242199 tokens/second
Memory allocated                    = 62.52 GB
Max memory allocated                = 65.15 GB
Total memory available              = 94.62 GB
Graph compilation duration          = 10.456412034000095 seconds
----------------------------------------------------------------------------------

PASSED

========================================================================================================== warnings summary ===========================================================================================================
tests/test_text_generation_example.py::test_text_generation_bf16_1x[token0-Qwen/Qwen2-7B-256-False-8870.945160540245-True]
  /usr/lib/python3.10/inspect.py:288: FutureWarning: `torch.distributed.reduce_op` is deprecated, please use `torch.distributed.ReduceOp` instead
    return isinstance(object, types.FunctionType)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================================ 1 passed, 65 deselected, 1 warning in 45.94s =============================================================================================

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?

@Wei-Lin-Intel
Copy link
Contributor Author

@jiminha Please help to review it. Thanks.

@HuggingFaceDocBuilderDev

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.

@regisss regisss merged commit c89b231 into huggingface:main Dec 4, 2024
4 checks passed
regisss pushed a commit that referenced this pull request Dec 5, 2024
imangohari1 pushed a commit to imangohari1/optimum-habana that referenced this pull request Dec 10, 2024
Liangyx2 pushed a commit to HabanaAI/optimum-habana-fork that referenced this pull request Jan 20, 2025
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

Successfully merging this pull request may close these issues.

3 participants