Update README.md
Browse files
README.md
CHANGED
|
@@ -41,7 +41,7 @@ tokenizer.padding_side = "left"
|
|
| 41 |
|
| 42 |
# Примените peft к модели
|
| 43 |
apply_peft_to_module(model, LinearWithLoRA, r=8, alpha=16, target_submodules=["k_proj", "v_proj"])
|
| 44 |
-
model.to(
|
| 45 |
|
| 46 |
path = hf_hub_download(f"dmitry315/llm-course-hw3-lora", "model.safetensors")
|
| 47 |
state_dict = load_file(path)
|
|
|
|
| 41 |
|
| 42 |
# Примените peft к модели
|
| 43 |
apply_peft_to_module(model, LinearWithLoRA, r=8, alpha=16, target_submodules=["k_proj", "v_proj"])
|
| 44 |
+
model.to(device)
|
| 45 |
|
| 46 |
path = hf_hub_download(f"dmitry315/llm-course-hw3-lora", "model.safetensors")
|
| 47 |
state_dict = load_file(path)
|