Skip to content

refactor code and fix bug#1425

Merged
hanhainebula merged 2 commits into
FlagOpen:masterfrom
hanhainebula:master
Apr 14, 2025
Merged

refactor code and fix bug#1425
hanhainebula merged 2 commits into
FlagOpen:masterfrom
hanhainebula:master

Conversation

@hanhainebula
Copy link
Copy Markdown
Collaborator

refactor code: update typing for parameters

  • transformers:
    • AutoModel -> PreTrainedModel
    • AutoTokenizer -> PreTrainedTokenizer
  • FlagEmbedding:
    • FlagAutoModel -> AbsEmbedder
    • FlagAutoReranker -> AbsReranker

fix m3 sparse embedding bug

- transformers:
    - AutoModel -> PreTrainedModel
    - AutoTokenizer -> PreTrainedTokenizer
- FlagEmbedding:
    - FlagAutoModel -> AbsEmbedder
    - FlagAutoReranker -> AbsReranker
- using optimization suggestion from issue FlagOpen#1364 only when not training
@hanhainebula hanhainebula merged commit 00d6d15 into FlagOpen:master Apr 14, 2025
1 check passed
86MaxCao pushed a commit to 86MaxCao/FlagEmbedding-MultiModal that referenced this pull request May 13, 2026
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.

1 participant