Skip to content

Commit

Permalink
chore: fix api update in codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery committed Dec 10, 2024
1 parent ae92d65 commit d722b44
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions docs/deep-learning/lora_training.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,6 @@ parameters:

```python
lora_training = LoraTraining(peft_model)


# Update training parameters, including loss function
lora_training.update_training_parameters(
optimizer=optim.Adam(filter(lambda p: p.requires_grad, peft_model.parameters()), lr=0.01),
loss_fn=nn.CrossEntropyLoss(),
training_args={"gradient_accumulation_steps": 1},
)

```

### 3. Compile a hybrid FHE model for the LORA adapted PyTorch model
Expand Down

0 comments on commit d722b44

Please sign in to comment.