Skip to content

push_to_hf

allennlp.commands.push_to_hf

[SOURCE]


The push-to-hf subcommand can be used to push a trained model to the Hugging Face Hub (hf.co).

PushToHf

@Subcommand.register("push-to-hf")
class PushToHf(Subcommand)

add_subparser

class PushToHf(Subcommand):
 | ...
 | def add_subparser(
 |     self,
 |     parser: argparse._SubParsersAction
 | ) -> argparse.ArgumentParser

push

def push(args: argparse.Namespace)