meta-llama / llama-models

Utilities intended for use with Llama models.
Other
4.92k stars 843 forks source link

Remove duplicated target computation in generation.py #139

Closed yufengzh closed 2 months ago

yufengzh commented 2 months ago

This CR deduplicates the target computation in generation.py for computing the token log probability with cross_entropy.