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

Does kerbert going to support LLaMA? #172

Open
thtang opened this issue May 14, 2023 · 1 comment
Open

Does kerbert going to support LLaMA? #172

thtang opened this issue May 14, 2023 · 1 comment

Comments

@thtang
Copy link

thtang commented May 14, 2023

Hi, I received an error once I change the model with decapoda-research/llama-7b-hf. Is this error derived from sentence-transformer?

ValueError: Asking to pad but the tokenizer does not have a padding token. Please select a token to use as
pad_token (tokenizer.pad_token = tokenizer.eos_token e.g.) or add a new pad token via
tokenizer.add_special_tokens({'pad_token': '[PAD]'}).

@MaartenGr
Copy link
Owner

Thanks for sharing. The model that you gave KeyBERT is meant for creating embeddings and not for performing the keyword search itself. It should be possible to integrate it within KeyBERT but since its procedure is quite different from how KeyBERT works, many parameters would not have an effect, such as use_mmr, use_maxsum, vectorizer, doc_embeddings, word_embeddings, etc.

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

No branches or pull requests

2 participants