ngruver / llmtime

https://arxiv.org/abs/2310.07820
MIT License
673 stars 157 forks source link

Question on mistral.py code #34

Open QiXuanWang opened 3 months ago

QiXuanWang commented 3 months ago

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"?