Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Add computed position embedding external#705

Closed
seungwoos wants to merge 1 commit intocasper-hansen:mainfrom
seungwoos:add-computed-position-embedding
Closed

Add computed position embedding external#705
seungwoos wants to merge 1 commit intocasper-hansen:mainfrom
seungwoos:add-computed-position-embedding

Conversation

@seungwoos
Copy link
Contributor

@seungwoos seungwoos commented Feb 5, 2025

The latest huggingface version requires pre-computed positional embeddings as a forward process argument. (huggingface<4.48.0 and huggingface>=4.48.0)

To handle this, I added position_embedding on module_kwargs which contains a tuple of cos and sin.

@seungwoos seungwoos mentioned this pull request Feb 7, 2025
@seungwoos seungwoos closed this Feb 7, 2025
@seungwoos seungwoos deleted the add-computed-position-embedding branch February 9, 2025 07:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant