transformers
Fix convert_and_export_with_cache failures for GPU models
#38976
Merged

Fix convert_and_export_with_cache failures for GPU models #38976

gante merged 11 commits into huggingface:main from Stonepia:tongsu/export_fix
Stonepia
Stonepia Add the `device` option for `generate()`
41def460
Stonepia Add device for default tensors to avoid tensor mismatch
e18187c1
Stonepia [test] Enable test_static_cache_exportability for torch_device
c3e9914c
Stonepia Stonepia marked this pull request as draft 1 year ago
liangan1
liangan1 commented on 2025-06-24
Stonepia
Stonepia commented on 2025-06-24
Stonepia infer device from the prompt_token_ids
51ec0301
Stonepia Add device for generated tensor
6458ff35
Stonepia [Test] Make `test_export_static_cache` tests to run on devices rather…
37a3e8a9
Stonepia Merge branch 'huggingface:main' into tongsu/export_fix
dad68b61
Stonepia fix format
9b474755
Stonepia Stonepia marked this pull request as ready for review 1 year ago
Stonepia Merge branch 'main' into tongsu/export_fix
8a6985c5
yao-matrix
gante
gante approved these changes on 2025-07-08
github-actions
Stonepia infer device from the model
8fd0d52f
Stonepia Merge branch 'main' into tongsu/export_fix
129a4944
Stonepia Stonepia requested a review from gante gante 1 year ago
Stonepia
gante
gante approved these changes on 2025-07-17
gante gante enabled auto-merge (squash) 1 year ago
gante gante merged fc700c2a into main 1 year ago
HuggingFaceDocBuilderDev
gante

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone