Repository navigation
Conversation
8ed5901 to
944bf27
Compare
|
@stevhliu @vasqu @ArthurZucker Could one of you approve the required PR CI and Build PR Documentation workflow runs? I checked the maintainership history: @vasqu reviewed the original Qwen3.5 Transformers integration, and @ArthurZucker authored the decision-model API this GS1 integration builds on. Both runs currently end with |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. Pages changed in this PR: |
- Add the GS1 model documentation page to the explicit model-name allowlist used by check_repo.py. - Keep the docs consistency check aligned with the model docs introduced by PR 50921.
- Add GS1 configuration and decision model modules built on the Qwen3.5 backbone. - Register GS1 in model exports and auto decision mappings. - Add the GS1 distribution NLL and expected Brier decision loss.
There was a problem hiding this comment.
Model linter — first pass
transformers-mlinter found 18 item(s) in the model files this PR touches. These are structural conventions a maintainer would otherwise flag by hand.
This is automated and advisory — it does not block merging.
| rule | count | what it checks |
|---|---|---|
TRF036 |
3 | nn.Sequential hides the forward flow; declare the submodules explicitly. |
TRF062 |
3 | _init_weights must initialize tensors with the transformers initialization module, not torch.nn.init. |
TRF060 |
2 | Files in a model directory must import from transformers with relative imports, not from transformers.... |
TRF055 |
2 | PreTrainedModel classes declare their config with a config: SomeConfig annotation, matched by __init__(config: SomeConfig); never config_class. |
TRF068 |
2 | _no_split_modules must only list classes that exist. |
TRF028 |
1 | Model files must carry a complete license header. |
TRF038 |
1 | Every modeling-family source file needs a matching test file under tests/models/. |
TRF057 |
1 | Public model, config, output and processor classes and their public methods must carry @auto_docstring. |
TRF056 |
1 | forward() must not materialize tensors with .item() or .tolist(). |
TRF002 |
1 | base_model_prefix on a PreTrainedModel, when set, should be a non-empty canonical string. |
TRF022 |
1 | _no_split_modules entries must name module classes that exist in the model. |
8 item(s) outside this diff
src/transformers/models/gs1/modular_gs1.py:322TRF002 — TRF002: GS1PreTrainedModel.base_model_prefix should be a non-empty canonical token.src/transformers/models/gs1/modular_gs1.py:323TRF022 — TRF022: GS1PreTrainedModel._no_split_modules lists 'Qwen3_5VisionBlock', which is not defined or imported in modular_gs1.py and does not exist in the model directory. Either remove the entry, or correct it to the name of the layer class of this model. Do not name classes owned by a submodel (e.g. a language model or vision tower built throughAutoModel):post_initalready collects_no_split_modulesfrom child submodels automatically.src/transformers/models/gs1/modular_gs1.py:323TRF068 — TRF068: GS1PreTrainedModel._no_split_modules listsGS1DecoderLayer, which is not a class in modeling_gs1.py generated from modular_gs1.py, so accelerate will never match it. Did you mean one of these: GS1DecisionHead?src/transformers/models/gs1/modular_gs1.py:323TRF068 — TRF068: GS1PreTrainedModel._no_split_modules listsQwen3_5VisionBlock, which is not a class in modeling_gs1.py generated from modular_gs1.py, so accelerate will never match it.src/transformers/models/gs1/modular_gs1.py:328TRF062 — TRF062:_init_weightscallstorch.nn.init.ones_. Useinit.ones_from the transformers initialization module instead, imported asfrom ... import initialization as init(notfrom torch.nn import init).src/transformers/models/gs1/modular_gs1.py:330TRF062 — TRF062:_init_weightscallstorch.nn.init.zeros_. Useinit.zeros_from the transformers initialization module instead, imported asfrom ... import initialization as init(notfrom torch.nn import init).src/transformers/models/gs1/modular_gs1.py:332TRF062 — TRF062:_init_weightscallstorch.nn.init.zeros_. Useinit.zeros_from the transformers initialization module instead, imported asfrom ... import initialization as init(notfrom torch.nn import init).src/transformers/models/gs1/modular_gs1.py:336TRF055 — TRF055: generated modeling_gs1.py:256:GS1ForDecision.__init__must annotate its config argument:config: GS1Config, matching the config attribute it inherits or overrides.
ab4ce73 to
adc2a64
Compare
- Complete the GS1 modular model definitions and regenerate the matching modeling files. - Correct GS1 config defaults, auto-mapping order, model metadata, imports, and initialization conventions. - Add GS1 decision-loss regression coverage and document the public config and model classes.
adc2a64 to
1103ce2
Compare
|
@vasqu @ArthurZucker @stevhliu Could you please provide a maintainer review for this GS1 decision-model integration and approve the required CI/docs checks if appropriate? The repository consistency and code-quality checks are now green, and the test matrix has passed. The latest updates address the model-linter feedback, GS1 exports/configuration checks, documentation, and test coverage. Thank you! |
Signed-off-by: Michael Yang Liu <yonyonlau@gmail.com>
|
Fixed the repository-consistency failure in commit |
|
@vasqu @ArthurZucker @stevhliu Could you please review the latest GS1 update at |
|
@vasqu @ArthurZucker @stevhliu All required CI checks are now green, including repository consistency and every tests_torch shard. The PR is only waiting for maintainer review/approval now. Could you please take a look when available? Thank you! |
|
Heya, sorry there are quite a lot of models in the pipeline right now so not sure when I get to this. I just wanted to write here that its not unseen but it's just not much bandwidth on our side |
|
Thanks for the update, @vasqu. @ArthurZucker, could you take a look at the GS1 decision-model integration when you have a chance? @stevhliu, could you approve the documentation build? PR CI is already running. Thank you! |
Generate only the GS1 model code and reuse Qwen3.5 backbones through AutoModel. Share decision span pooling and use the standard activation checkpointing hook, with a hybrid-backbone regression test.
stevhliu
left a comment
There was a problem hiding this comment.
thanks for the docs, would also be nice to add an usage example!
Normalize the vision subconfig and convert legacy decision-head keys on load and save. Restore the default decision template and let the decision pipeline consume GS1 logits. Cover the published checkpoint and incorporate the documentation review.
|
@ArthurZucker Could you take a look at the GS1 decision-model integration when you have a chance? @stevhliu Thanks for the docs feedback. The usage example now runs against the published GS1-0.8B checkpoint. Could you approve the latest documentation build? Thanks! |
|
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, gs1 |
Related model request:
This PR adds native support for the GS1 model family, with four model sizes. It reuses Transformers Qwen3.5 components and the existing decision-model APIs, adding GS1-specific architecture/configuration and training loss support.
GS1 project: https://gs1.mybigai.ac.cn
Source: https://github.com/bigai-nlco/GS1
GS1 model family:
🤖 mlinter review state
f670d3c5b1f42882