Skip to content

Commit

Permalink
DOC Fix PeftMixedModel docstring example #1824 (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
namanvats committed Jun 12, 2024
1 parent 47b3d74 commit b6af7fe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/peft/mixed_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ class PeftMixedModel(PushToHubMixin, torch.nn.Module):
Example:
```py
>>> from peft import get_peft_model
>>> base_model = ... # load the base model, e.g. from transformers
>>> peft_model = PeftMixedModel.from_pretrained(base_model, path_to_adapter1, "adapter1").eval()
>>> peft_model.load_adapter(path_to_adapter2, "adapter2")
Expand Down

0 comments on commit b6af7fe

Please sign in to comment.