mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
Update server/text_generation_server/utils/convert.py
Co-authored-by: OlivierDehaene <olivier@huggingface.co>
This commit is contained in:
parent
872757bf7e
commit
9e48730e51
@ -62,7 +62,7 @@ def convert_file(pt_file: Path, sf_file: Path):
|
||||
# Tensors need to be contiguous
|
||||
pt_state = {k: v.contiguous() for k, v in pt_state.items()}
|
||||
|
||||
sf_file.parent.mkdir(parents=True, exisf_ok=True)
|
||||
sf_file.parent.mkdir(parents=True, exist_ok=True)
|
||||
save_file(pt_state, str(sf_file), metadata={"format": "pt"})
|
||||
|
||||
# Check that both files are close in size
|
||||
|
Loading…
Reference in New Issue
Block a user