if SUPPORTS_LLAMA32:
# New transformers need to check manually.
files = HfFileSystem(token = token).glob(os.path.join(model_name, "*.json"))
files = (os.path.split(x)[-1] for x in files)
if sum(x == "adapter_config.json" or x == "config.json" for x in files) >= 2:
both_exist = True
pass
pass
If the adapter is not in the HF repository, this will result in an error.
The code makes a forced call to HF.
If the adapter is not in the HF repository, this will result in an error.