Skip to content

n_tokens_all <= cparams.n_batch #77

@ElhamAryanpur

Description

@ElhamAryanpur

it appears that the n_batch in sessions remain the default value of 512. I have had some large inputs of over 800 tokens testing Hermes mistral v0.2 and Dolphin Phi 2 and both had the same error of n_tokens_all <= cparams.n_batch. The fix was to cut until the 500th token.

Setting the sessions params' n_batch did not solve this issue as the default still remains 512 by the llama. Rust's layer does recognize the new value yet the cpp layer keeps the default value.

Taking a look at llamacpp source, there are conflicting default values too, 2048 and 512... so I'm not sure where the issue lies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions