Skip to content

Commit

Permalink
Doc additions
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Jun 20, 2022
1 parent 2af5e0d commit c325f45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/transformers/adapters/model_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,14 @@ def get_adapter(self, name) -> dict:
def adapter_summary(self, as_dict=False) -> Union[str, dict]:
"""
Returns a string summary of all adapters currently added to the model.
Each entry in the summary table has the following attributes:
- name: the name of the adapter
- architecture: the architectural base of the adapter
- #param: the number of parameters of the adapter
- %param: the number of parameters of the adapter relative to the full model
- active: whether the adapter is active
- train: whether the adapter weights are enabled for training
"""
# table header
header = ["name", "architecture", "#param", "%param", "active", "train"]
Expand Down

0 comments on commit c325f45

Please sign in to comment.