Skip to content

Conversation

SanftMonster
Copy link
Collaborator

@SanftMonster SanftMonster commented Nov 5, 2023

@xbotter Please help to review it. Thank you!

related with: #35 (comment)

Copy link
Collaborator

@xbotter xbotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
I noticed that there is an EmbeddingMode in ModelParams. Will it have any impact on the embedding?

@martindevans
Copy link
Member

I'm not certain but I think embedding mode loads the model in a way that can only do embedding.

@SanftMonster
Copy link
Collaborator Author

Martin's right. Maybe one of the reasons behind it is the kv cache. If only using embedding mode, it seems no need for kv-cache. However what confused me is that why a model for inference cannot be used to generate embeddings.

@SanftMonster SanftMonster merged commit a9434c2 into SciSharp:master Nov 5, 2023
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