diff --git a/main/_modules/torchtune/training/checkpointing/_checkpointer.html b/main/_modules/torchtune/training/checkpointing/_checkpointer.html index 42f6e4a944..283e29df8a 100644 --- a/main/_modules/torchtune/training/checkpointing/_checkpointer.html +++ b/main/_modules/torchtune/training/checkpointing/_checkpointer.html @@ -540,7 +540,7 @@
Checkpointer which reads and writes checkpoints in HF’s format. For LoRA models this includes
saving checkpoints in a format that can be loaded into PEFT via e.g. from_pretrained
. Examples include
the Llama-2-7b-hf model from the meta-llama repo (https://huggingface.co/meta-llama/Llama-2-7b-hf).
checkpoint_dir (str) – Directory containing the checkpoint files
checkpoint_files (Union[List[str], Dict[str, str]]) – List of checkpoint files to load. Since the checkpointer takes care of sorting by file ID, the order in this list does not matter. TODO: update this
model_type (ModelType) – Model type of the model for which the checkpointer is being loaded
model_type (str) – Model type of the model for which the checkpointer is being loaded
output_dir (str) – Directory to save the checkpoint files
adapter_checkpoint (Optional[str]) – Path to the adapter weights. Default is None
recipe_checkpoint (Optional[str]) – Path to the recipe state checkpoint file. Default is None
Checkpointer which reads and writes checkpoints in Meta’s format. Examples include the Llama-2-7b model from the meta-llama repo (https://huggingface.co/meta-llama/Llama-2-7b)
Currently we support reading from a single checkpoint file only. Support for reading from @@ -448,7 +448,7 @@
checkpoint_files (List[str]) – List of checkpoint files to load. Currently this checkpointer only supports loading a single checkpoint file.
model_type (ModelType) – Model type of the model for which the checkpointer is being loaded
model_type (str) – Model type of the model for which the checkpointer is being loaded
output_dir (str) – Directory to save the checkpoint files
adapter_checkpoint (Optional[str]) – Path to the adapter weights. Default is None
recipe_checkpoint (Optional[str]) – Path to the recipe state checkpoint file. Default is None
Checkpointer which reads and writes checkpoints in a format compatible with torchtune. No conversion of weights is required.
Currently this supports reading a single checkpoint file only. This will likely change as @@ -448,7 +448,7 @@
checkpoint_files (List[str]) – List of checkpoint files to load. Since the checkpointer takes care of sorting by file ID, the order in this list does not matter
model_type (ModelType) – Model type of the model for which the checkpointer is being loaded
model_type (str) – Model type of the model for which the checkpointer is being loaded
output_dir (str) – Directory to save the checkpoint files
adapter_checkpoint (Optional[str]) – Path to the adapter weights. Default is None
recipe_checkpoint (Optional[str]) – Path to the recipe state checkpoint file. Default is None