mirror of
https://github.com/datawhalechina/self-llm.git
synced 2026-11-03 08:21:48 +08:00
Update 04-Phi-4-Lora 微调.md
This commit is contained in:
@@ -263,4 +263,5 @@ with torch.no_grad():
|
||||
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
||||
```
|
||||
> 注意修改为自己的模型路径哦~
|
||||
> 如果显示 `Some parameters are on the meta device because they were offloaded to the cpu.` 的报错,需要将实例关机,重启后单独运行本条代码。
|
||||

|
||||
|
||||
Reference in New Issue
Block a user