Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsumata420 committed Feb 29, 2024
1 parent 5534da5 commit 067fdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/convert/convert_hf_to_st.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main():

hf_model = Transformer(args.model_name_or_path, tokenizer_args=tokenizer_kwargs, torch_dtype=args.torch_dtype)
pooler = Pooling(hf_model.get_word_embedding_dimension(), pooling_mode=args.pooling_mode)
model = SentenceTransformer(modules=[hf_model, pooler], device='cpu')
model = SentenceTransformer(modules=[hf_model, pooler], device="cpu")

model.save(args.save_path)

Expand Down

0 comments on commit 067fdfd

Please sign in to comment.