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

Typo in the README.md for janus-flow text-to-image tutorial #30

Open
CiaoHe opened this issue Jan 10, 2025 · 1 comment
Open

Typo in the README.md for janus-flow text-to-image tutorial #30

CiaoHe opened this issue Jan 10, 2025 · 1 comment

Comments

@CiaoHe
Copy link

CiaoHe commented Jan 10, 2025

...
if step == 0:
    outputs = vl_gpt.language_model.model(inputs_embeds=llm_emb, 
                                     use_cache=True, 
                                     attention_mask=attention_mask,
                                     past_key_values=None)
    past_key_values = []
    for kv_cache in past_key_values: # here, should be `outputs.past_key_values` ?
        k, v = kv_cache[0], kv_cache[1]
        past_key_values.append((k[:, :, :inputs_embeds.shape[1], :], v[:, :, :inputs_embeds.shape[1], :]))
    past_key_values = tuple(past_key_values)
...
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
@CiaoHe and others