transformers.js
[v4] Refactor models.js into separate per-model modeling files
#1498
Merged

[v4] Refactor models.js into separate per-model modeling files #1498

xenova merged 48 commits into v4 from v4-models-js-3
nico-martin
nico-martin started refactoring
41a4d48a
nico-martin started refactoring
ae74659b
nico-martin started refactoring
faa612f3
nico-martin added model class files
5c35ef8a
nico-martin added model class files
96546a6c
nico-martin added model class files
6983e220
nico-martin all model classes in their own files
45085a73
nico-martin refactored PreTrainedModel
e3d7d7d8
nico-martin refactoring done, lets fix bugs
17109e75
nico-martin added model-registry
2827adf6
nico-martin removed dev file
13042b6f
nico-martin changed casing
0d3ade24
nico-martin refactored MODEL_TYPE_CONFIG
c7943828
nico-martin fixed tests
c3032eb9
nico-martin small refactoring
42f32068
nico-martin moved model loader to its own file
30377738
nico-martin fixed ts errors
f516ae58
nico-martin big structure refactoring
7be14d1c
nico-martin fixed build
72a4cde1
nico-martin nico-martin requested a review from xenova xenova 47 days ago
xenova
xenova requested changes on 2026-01-09
nico-martin renamed _base/pre-trained-model.js and _base/output.js
987eab5e
nico-martin small casing changes
35624597
nico-martin Update src/models/ernie4_5/modeling_ernie4_5.js
1b01d59a
nico-martin refactored models/utils.js
79a93348
nico-martin fixed double MODEL_FOR_ definitions with registerTaskMappings helper
7ad964e4
nico-martin auto/image_processing_auto.js export
73f7a299
nico-martin auto/image_processing_auto.js export
366ef634
xenova Improve model mapping setup
ae4a4805
xenova Fix LlavaPreTrainedModel
097cf6db
xenova Move llava_onevision to separate files
6fca4825
xenova Add missing exports
d4ad3bc6
kungfooman
xenova Update jinja version
d5234223
xenova Fix default class mapping
cc036f70
xenova Simplify registerTaskMappings
b8a47e61
xenova Update registry.js
0ec5d880
xenova Formatting in src/models
e4ee1674
xenova Formatting in src
584cdee9
xenova Move model-specific ModelOutput to respective modeling files
d5c3f7b1
xenova Final cleanup
a1f10b90
xenova Cleanup model exports
83e1da2b
xenova Fix Tensor type re-export
c1bee981
xenova Clean up registry exports
8eed0b22
xenova Cleanup
c760e0fd
xenova Simplify loadResourceFile
ea4841a9
xenova Use positional arguments for repo id and filename
1ddf2b35
xenova Update global library exports
dd88bb7b
xenova Remove ts-expect-error
392ef11a
xenova Formatting
6293aab7
xenova let -> const
f809d53b
xenova
xenova approved these changes on 2026-01-13
xenova xenova changed the title V4 models js 3 [v4] Refactor models.js into separate per-model modeling files 43 days ago
xenova xenova merged e5994709 into v4 43 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone