Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions model2vec/distill/distillation.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def distill_from_model(
else:
# Post-process the embeddings.
embeddings, weights = post_process_embeddings(np.asarray(embeddings), pca_dims, sif_coefficient=sif_coefficient)
embeddings = embeddings * weights[:, None]
weights = None
token_mapping = None
# Quantize the embeddings.
embeddings = quantize_embeddings(embeddings, quantize_to)
Expand Down
Loading