Skip to content

Dev#192

Merged
akshayballal95 merged 5 commits into
mainfrom
dev
Dec 6, 2025
Merged

Dev#192
akshayballal95 merged 5 commits into
mainfrom
dev

Conversation

@akshayballal95

@akshayballal95 akshayballal95 commented Dec 6, 2025

Copy link
Copy Markdown
Collaborator

Note

Switches Rust components to use hf_hub ApiBuilder::from_env and updates Python stubs to make factory constructors static.

  • Rust (hf_hub integration):
    • Replace hf_hub::api::sync::Api::new() with ApiBuilder::from_env().build() across loaders and processors in embeddings/local/*, file_processor/audio/*, and models/idefics3/*, plus reranker/model.rs.
    • Adjust imports accordingly (use ApiBuilder).
  • Python type stubs:
    • Mark factory methods as @staticmethod for ColpaliModel.from_pretrained, ColpaliModel.from_pretrained_onnx, ColbertModel.from_pretrained_onnx, Reranker.from_pretrained, EmbeddingModel.from_pretrained_hf, EmbeddingModel.from_pretrained_cloud, EmbeddingModel.from_pretrained_onnx, and AudioDecoderModel.from_pretrained_hf.

Written by Cursor Bugbot for commit afcb6ad. This will update automatically on new commits. Configure here.

@akshayballal95 akshayballal95 merged commit 946495a into main Dec 6, 2025
4 of 5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants