Skip to content

[WIP][Tracing] Mistral3ForConditionalGeneration #1387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

kylesayrs
Copy link
Collaborator

@kylesayrs kylesayrs commented Apr 27, 2025

Purpose

  • Improve tracing logic

Prerequisites

Changes

  • Add _is_compiling_flag
  • Do not trace into any modules which are not ancestors of the sequential targets
  • Add ability to patch _update_causal_mask

Testing

llmcompressor.trace \
     --model_id "mistralai/Mistral-Small-3.1-24B-Instruct-2503" \
     --model_class "Mistral3ForConditionalGeneration" \
     --sequential_targets "MistralDecoderLayer" \
     --ignore "MistralModel._update_causal_mask" \
     --modality vision \

Copy link

👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review.

Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed.

@kylesayrs kylesayrs closed this Apr 27, 2025
@kylesayrs kylesayrs changed the title [WIP][Tracing] [WIP][Tracing] Mistral3ForConditionalGeneration Apr 27, 2025
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.

1 participant