When giving a local path to model_name_or_path in config_full.yaml or config_lora.yaml for DPO training, the check if a model is adapter model, it only lists the files from HF repo and checks models pushed to HF hub. In case you want to run DPO from a local model, the checks need to be done directly in the local path.
The changes in this PR allow checking if a model is adapter model when a local path is supplied instead of HF model as well.
When giving a local path to
model_name_or_path
inconfig_full.yaml
orconfig_lora.yaml
for DPO training, the check if a model is adapter model, it only lists the files from HF repo and checks models pushed to HF hub. In case you want to run DPO from a local model, the checks need to be done directly in the local path.The changes in this PR allow checking if a model is adapter model when a local path is supplied instead of HF model as well.