You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use model_id directly to avoid XProvenceConfig class mismatch
The previous fix (7ff382c) incorrectly passed config from AutoConfig.from_pretrained
to AutoModel.from_pretrained. Since XProvence's config.json lacks auto_map for
AutoConfig, it returned XLMRobertaConfig while the model expected XProvenceConfig.
New approach:
- Extract model_id from cache path (e.g., naver/xprovence-reranker-bgem3-v1)
- Use model_id directly with AutoModel.from_pretrained(model_id, trust_remote_code=True)
- Let AutoModel handle config internally via model class's config_class attribute
- Remove explicit config passing and snapshot_download (AutoModel handles downloads)
0 commit comments