Skip to content

Safetensors support for ct2-transformers-converter #1878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cyk-gaudi opened this issue Apr 9, 2025 · 0 comments
Open

Safetensors support for ct2-transformers-converter #1878

cyk-gaudi opened this issue Apr 9, 2025 · 0 comments

Comments

@cyk-gaudi
Copy link

Hi,

Is there any way to leverage the "ct2-transformers-converter" utility to convert models to the safetensor format instead of the current .bin format? I'm specifically running the following command:

ct2-transformers-converter --model Helsinki-NLP/opus-mt-gaa-de --output_dir ./ct2-opus-mt-gaa-de --force --copy_files generation_config.json tokenizer_config.json vocab.json source.spm target.spm --quantization float16

Even if there isn't a current way to do this within the CTranslate2 package, if there are other ways to convert the model weights to safetensor format and still have it work with CTranslate2; that would still be really helpful!

Thanks again for the support! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant