MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / get_hf_model_path

Function get_hf_model_path

verl/verl/utils/model.py:455–462  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

453
454
455def get_hf_model_path(config):
456 if config.model.path.startswith("hdfs:"):
457 from verl.utils.fs import copy_to_local
458
459 local_model_path = copy_to_local(src=config.model.path, use_shm=config.model.get("use_shm", False))
460 else:
461 local_model_path = config.model.path
462 return local_model_path
463
464
465def load_megatron_model_weights(config, model_config, parallel_model, params_dtype, is_value_model=False):

Callers 3

_build_rm_modelMethod · 0.90

Calls 2

copy_to_localFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected