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

insert 方法完全报错:hgface的embeding方式 #559

Open
Kyrie666 opened this issue Jan 9, 2025 · 0 comments
Open

insert 方法完全报错:hgface的embeding方式 #559

Kyrie666 opened this issue Jan 9, 2025 · 0 comments

Comments

@Kyrie666
Copy link

Kyrie666 commented Jan 9, 2025

embedding_func=EmbeddingFunc(
embedding_dim=1792,
max_token_size=512,
func=lambda texts: hf_embedding(
text,
tokenizer=AutoTokenizer.from_pretrained(
embed_model=AutoModel.from_pretrained(

RuntimeError: The expanded size of the tensor (1036)must match the existing size (512) at non-singleto dimension 1. Target sizes: [32, 1036]. Tensor sizes: [1, 512]

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

1 participant