Push torchtune install deeper in generate._gen_model_input and undo import order change for etmodel
CLA Signed
Follow up patch from https://github.com/pytorch/torchchat/pull/1539 which was meant to make torchtune an optional import
---
Tested with:
Success only when torchtune installed
```
python torchchat.py generate llama3.2-11B --prompt "What's in this image?" --image-prompt assets/dog.jpg --num-samples 3
```
Success regardless of torchtune install
```
python3 torchchat.py generate llama3.1-base --prompt "Once upon a time,"
```
合并状态:已合并 合并于 2025-05-12 关闭于 2025-05-12 1 条评论