Skip to content

Conversation

@nico-martin
Copy link
Collaborator

No description provided.

@nico-martin nico-martin requested a review from xenova December 23, 2025 06:43
@nico-martin nico-martin changed the title V4 models js [V4] models js Dec 23, 2025
Copy link
Collaborator

@xenova xenova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! A refactor of the monolithic models.js is desperately needed. As mentioned elsewhere, ideally, we'd align quite closely with the python library structure, meaning keeping everything under the model type:
https://github.com/huggingface/transformers/tree/main/src/transformers/models
image

So, for example, ‎src/models/pre-trained-models/albert-pre-trained-model.js should be ‎src/models/albert/modeling_albert.js

also, weirdly, the rebase doesn't seem to be applied correctly (we can see the previous commits too)

Image

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