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

使用动态长度embedding时,如何获取id对应的实际blocknum? #997

Closed
haolujun opened this issue May 24, 2024 · 1 comment
Closed

Comments

@haolujun
Copy link

我看embedding_lookup接口需要提供blocknums,但是这就有一个问题:因为id对应的block是根据频率动态计算的,用户怎么知道一个id实际对应多少个block呢?看了一下代码,其中有一些逻辑是判断blocknum是否大于0,那么是否可以这么认为:当blocknum传递0时,id实际存储有几个block,那么DeepRec就返回几个block的值?还有动态调整freq和id对应的blocknum的代码的位置在哪呢?

@haolujun
Copy link
Author

已经了解了原理,关闭这个issue。

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