Skip to content

Question on mistral.py code #34

@QiXuanWang

Description

@QiXuanWang

in models/mistral.py, function "mistral_completion_fn"
"
batch = {k: v.repeat(batch_size, 1) for k, v in batch.items()}
"
Why do you need to repeat the batch_size items?

And I'm a little confused by "batch" here, it seems batches are generated here, why not depends on "input_strs"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions