Hparams
the hyperparams class for Knowledge Editing
HyperParams
Simple wrapper to store hyperparameters for Python-based rewriting methods.
from_json() -> HyperParams
Static method, hyperparams can be initialized through
json
Paramters
fpath(Str): config path for editing
Return Type
hparams(Hyperparams): The hyperparams class for editing
from_hparams() -> HyperParams
Static method, hyperparams can be initialized through
yaml
Paramters
hparams_name_or_path(Str): yaml config path for editing
Return Type
hparams(Hyperparams): The hyperparams class for editing
Example
content
Last updated