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

whether past_key_values can be obtained #526

Open
sa1utyeggs opened this issue Oct 11, 2023 · 1 comment
Open

whether past_key_values can be obtained #526

sa1utyeggs opened this issue Oct 11, 2023 · 1 comment

Comments

@sa1utyeggs
Copy link

Hi there.
I'm trying to combine chat.petals.dev with streaming-llm (https://github.com/mit-han-lab/streaming-llm).

However, when streaming-llm needs the output.past_key_values, I found that petals returns [RemotePastKeyValues].
image

And the annotation says 'A mock class representing the fact that past_key_values do exist but are stored on remote servers.'.

SO, I wonder if there is any way to get the real value of 'past_key_values'.
like this img :
image

looking for your reply :)

@borzunov
Copy link
Collaborator

Hi @sa1utyeggs,

The actual past_key_values are stored on servers and can't be viewed from clients at the moment. In theory, it's possible to extend the server to send them when necessary (e.g., when a user reads fields of the RemotePastKeyValues object). Alternatively, it may be possible to extend the transformer block code to perform operations you're interested in on servers directly, without sending extra data to the clients.

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