adapt path

This commit is contained in:
michaelfeil 2023-08-06 18:26:30 +02:00
parent a732244687
commit b9326ace1a
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class CT2CausalLM(Model):
# Start CT2 - conversion
out_dir = (
Path(HUGGINGFACE_HUB_CACHE)
/ f"ct2models-{model_id.replace('/','--')}--{ct2_compute_type}"
/ "ct2models" / f"{model_id.replace('/','--')}--{ct2_compute_type}"
)
if not os.path.exists(out_dir / "model.bin"):