Update 04-Phi-4-Lora 微调.md

This commit is contained in:
kichi
2025-01-18 01:34:00 +08:00
committed by GitHub
parent 4ce7e4efac
commit 6bfc0a972f
+1
View File
@@ -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.` 的报错,需要将实例关机,重启后单独运行本条代码。
![result](./images/image04-4.png)