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

h2o is not working when the input is short. #11

Open
mutonix opened this issue Dec 12, 2023 · 0 comments
Open

h2o is not working when the input is short. #11

mutonix opened this issue Dec 12, 2023 · 0 comments

Comments

@mutonix
Copy link

mutonix commented Dec 12, 2023

When I run bash scripts/streaming/eval.sh h2o, I find h2o is not working and acting exactly the same as the full. When I check the code

def __call__(self, past_key_values, attn_score_cache):

    def __call__(self, past_key_values, attn_score_cache):

        self._update_hh_score(attn_score_cache)

        if past_key_values is None:
            return None
        seq_len = past_key_values[0].size(self.k_seq_dim)
        if seq_len <= self.cache_size:
            return past_key_values

, I find the program always falls in the line seq_len < self.cache_size and directly return without running the following h2o code. However, the cache_size is set to 2048 as default. Isn't that a little long?

Or we can consider that h2o will not work in the short context?

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