MCPcopy
hub / github.com/huggingface/transformers / save

Method save

src/transformers/pipelines/base.py:435–442  ·  view source on GitHub ↗

Save the provided data object with the representation for the current [`~pipelines.PipelineDataFormat`]. Args: data (`dict` or list of `dict`): The data to store.

(self, data: dict | list[dict])

Source from the content-addressed store, hash-verified

433
434 @abstractmethod
435 def save(self, data: dict | list[dict]):
436 """
437 Save the provided data object with the representation for the current [`~pipelines.PipelineDataFormat`].
438
439 Args:
440 data (`dict` or list of `dict`): The data to store.
441 """
442 raise NotImplementedError()
443
444 def save_binary(self, data: dict | list[dict]) -> str:
445 """

Callers 15

save_pretrainedMethod · 0.45
_save_pretrainedMethod · 0.45
_save_rng_stateMethod · 0.45
_save_scalerMethod · 0.45
_saveMethod · 0.45
_push_from_checkpointMethod · 0.45
_tune_save_checkpointMethod · 0.45
push_to_hubMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 1