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

Function get_checkpoint_dir

utils/create_dummy_models.py:1016–1019  ·  view source on GitHub ↗

Get architecture name.

(output_dir, model_arch)

Source from the content-addressed store, hash-verified

1014
1015
1016def get_checkpoint_dir(output_dir, model_arch):
1017 """Get architecture name."""
1018 arch_name = model_arch.__name__
1019 return os.path.join(output_dir, arch_name)
1020
1021
1022def build_model(model_arch, tiny_config, output_dir, keep_model=False):

Callers 2

build_modelFunction · 0.85
buildFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected