code: def shard(
      *,
      cfg: DictDefault,
      cli_args: TrainerCliArgs,
  ):
      model, _ = load_model_and_tokenizer(cfg=cfg, cli_args=cli_args)
      safe_serialization = cfg.save_safetensors is True
      LOG.debug("Re-saving model w/ sharding")
      model.save_pretrained(
          cfg.output_dir, safe_serialization=safe_serialization
      )
  
file_path: axolotl/src/axolotl/cli/shard.py
imports: import logging
  from pathlib import Path
  import fire
  import transformers
  from axolotl.cli import load_cfg, print_axolotl_text_art
  from axolotl.common.cli import TrainerCliArgs, load_model_and_tokenizer
  from axolotl.utils.dict import DictDefault
label_desc: Use image node_id 1 for calling a global function with example usage: shard() without return types