Skip to content

Conversation

@ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Nov 14, 2025

What does this PR do?

See

pytorch/pytorch#167293 (comment)

The suggestion seems to reasonable since the test name is

test_dynamic_cache_exportability_multiple_run

@ydshieh ydshieh changed the title Fix a test (failing on torch 2.10 nightly) Update test_dynamic_cache_exportability_multiple_run (failing on torch 2.10 nightly) Nov 14, 2025
@HuggingFaceDocBuilderDev

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.

Copy link
Contributor

@vasqu vasqu left a comment

Choose a reason for hiding this comment

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

LGTM, my only concern is that we should check for BC (not sure when that way of calling .DYNAMIC is supported)

@ydshieh
Copy link
Collaborator Author

ydshieh commented Nov 14, 2025

it's a test, so i won't worry the BC :-)

@vasqu
Copy link
Contributor

vasqu commented Nov 14, 2025

gotcha, fine by me then :p

@ydshieh ydshieh merged commit 16c7afd into main Nov 14, 2025
16 checks passed
@ydshieh ydshieh deleted the fix_export branch November 14, 2025 15:09
CrazyDubya pushed a commit to CrazyDubya/transformers that referenced this pull request Nov 18, 2025
…rch 2.10 nightly) (huggingface#42212)

Implement TODOs: Better error handling and warnings (batch 3)

Implemented several TODO items for better error handling:

1. serve.py: Add proper validation when force_model is set
   - Now raises ValueError if request specifies different model than forced
   - Clear error message guiding users on how to fix

2. image_utils.py: Convert validate_kwargs logging to proper warning
   - Changed from logger.warning() to warnings.warn()
   - Uses UserWarning with proper stacklevel for better debugging

Impact:
- Better error messages for users
- Proper warning handling instead of logging
- Removes 2 TODO items
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.

4 participants