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 two cross-tests for changes in HF transformers #367

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

danieldk
Copy link
Contributor

@danieldk danieldk commented Apr 2, 2024

Description

Adjust two cross-tests for changes in HF transformers:

  • Arguments to the Llama rotary embeddings module changed.
  • HfFileSystem is currently broken when a repo contains (?) sharded safetensors checkpoints.

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.

@danieldk danieldk added the tests Related to the test suite label Apr 2, 2024
@danieldk danieldk merged commit 2d4dfef into explosion:main Apr 2, 2024
7 of 8 checks passed
@danieldk danieldk deleted the test-fixes branch April 2, 2024 12:03
danieldk added a commit to danieldk/curated-transformers that referenced this pull request Apr 17, 2024
* Fix `test_rotary_embeddings_against_hf` for latest transformers

* xfail test because HfFileSystem is currently broken
danieldk added a commit that referenced this pull request Apr 17, 2024
* Fix activation lookup with Python 3.12.3 (#375)

We used the metaclass `EnumMeta`/`EnumType` to override reporting of
missing enum values (to give the full set of supported activations).
However, in Python 3.12.3, the default value of the `name` parameter of
`EnumType.__call__` method was changed from `None` to `_not_given`:

python/cpython@d771729

Even though this is a public API (which now uses a private default
value), it seems too risky to continue using it. So in this change, we
implement `Enum.__mising__` instead for the improved error reporting.

* Set version to 1.3.2

* Adjust two cross-tests for changes in HF transformers (#367)

* Fix `test_rotary_embeddings_against_hf` for latest transformers

* xfail test because HfFileSystem is currently broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants