transformers
e55a6307 - Address review feedback

Commit
13 days ago
Address review feedback - docs: order the exporter table the way the examples are ordered. - exporters: define the cache rule once as `is_cache_class`, so `is_cache_object` and `register_cache_pytrees_for_model` share it instead of each spelling out the `*Cache` convention. - onnx: check `input.size(dim)` in `_patch_chunk` before deriving a chunk size from it. - openvino: split `export()` into `_fix_exported_program` and `_convert_to_openvino` so it reads as named stages rather than a run of calls; fold the duplicated port lookup into `_lookup_by_port` plus a `_port_named` helper; and write the complex RoPE rewrite as `pairs * cos + rotate(pairs) * sin`, the shape `apply_rotary_pos_emb` has, with a pair-wise rotation standing in for `rotate_half` since these models interleave rather than split halves. - fsmt: keep `triu_onnx` importable, now deprecated and delegating to `torch.triu`, which is what it emulated. - oneformer: append `spatial_shapes_list` instead of inserting it, so every existing call binds as it did, and deprecate the `spatial_shapes` kwarg on `get_reference_points` rather than renaming it outright. - hunyuan_vl: use `torch_compilable_check` rather than a bare `torch._check`. - funnel, cache_utils: trim comments down to what isn't already obvious from the code. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Parents
Loading