Skip to content

Fix: move apex.amp import to avoid crash when importing GLiNER#313

Merged
Ingvarstep merged 1 commit intourchade:mainfrom
tannonk:fix/apex-dependency
Dec 19, 2025
Merged

Fix: move apex.amp import to avoid crash when importing GLiNER#313
Ingvarstep merged 1 commit intourchade:mainfrom
tannonk:fix/apex-dependency

Conversation

@tannonk
Copy link
Copy Markdown
Contributor

@tannonk tannonk commented Dec 5, 2025

Following the fix in transformers (huggingface/transformers#38100 (comment)), this PR provides a quick fix for #312.

Note, the error will likely still be encountered during training if self.use_apex == True.

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.

2 participants