Closed tomsquest closed 3 weeks ago
Hi @tomsquest ,
Just using model
as a path should do the trick. Could you let us know whether that works? If that doesn't work, you can always load the model and tokenizer yourself, and use distill_from_model
from model2vec.distill import distill_from_model
# Some way to get your model and tokenizer.
model, tokenizer = load_model_and_tokenizer(...)
m2v_model = distill_from_model(model, tokenizer, pca_dims=256)
Stéphan
Hi @stephantul ,
Yes, it's working using just model
(instead of ./model
). That was my workaround. 👍
Alright! Happy to be of service, I'm closing this for now. Let me know if you have other issues, and please reopen or make another issue if that's the case. Thanks for using model2vec! 🙏
Hi,
I am trying to use Model2Vec with a custom model we have. The
distill
seems to run fine, until it tries to callvalidate_repo_id
with the custom path I have (./model
).distill
the custom model: