FIX Typo in PiSSA finetune README (#2812)

This commit is contained in:
Zhizhou Sha
2025-10-06 04:54:53 -05:00
committed by GitHub
parent 24aebeec21
commit f00d94a170

View File

@ -6,7 +6,8 @@ PiSSA represents a matrix $W\in\mathbb{R}^{m\times n}$ within the model by the p
```python
import torch
from peft import LoraConfig, get_peft_model
from transformers import AutoTokenizer, AutoModelForCausalLMfrom trl import SFTConfig, SFTTrainer
from transformers import AutoTokenizer, AutoModelForCausalLM
from trl import SFTConfig, SFTTrainer
from datasets import load_dataset
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf", torch_dtype=torch.bfloat16, device_map="auto")