mirror of
https://github.com/QwenLM/Qwen.git
synced 2026-05-21 00:45:48 +08:00
Update README.md
Added notes due to recent peft update.
This commit is contained in:
@@ -693,6 +693,8 @@ model = AutoPeftModelForCausalLM.from_pretrained(
|
||||
).eval()
|
||||
```
|
||||
|
||||
> NOTE: If `peft>=0.8.0`, it will try to load the tokenizer as well, however, initialized without `trust_remote_code=True`, leading to `ValueError: Tokenizer class QWenTokenizer does not exist or is not currently imported.` Currently, you could downgrade `peft<0.8.0` or move tokenizer files elsewhere to workaround this issue.
|
||||
|
||||
If you want to merge the adapters and save the finetuned model as a standalone model (you can only do this with LoRA, and you CANNOT merge the parameters from Q-LoRA), you can run the following codes:
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user