Skip to content

fix: deprecated import#202

Merged
chichun-charlie-liu merged 1 commit intofoundation-model-stack:mainfrom
maxdebayser:fix_deprecated_import
May 1, 2026
Merged

fix: deprecated import#202
chichun-charlie-liu merged 1 commit intofoundation-model-stack:mainfrom
maxdebayser:fix_deprecated_import

Conversation

@maxdebayser
Copy link
Copy Markdown
Contributor

In version 0.6.0 of llm-compressor, which is the one installed by default in fms-model-optimizer, the SparseAutoModelForCausalLM is already deprecated. In more recent versions this class has been removed altogether. This commit just implements the suggested code migration.

For reference, this is the commit that removed the class: vllm-project/llm-compressor#1826

Copy link
Copy Markdown
Collaborator

@chichun-charlie-liu chichun-charlie-liu left a comment

Choose a reason for hiding this comment

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

lgtm

In version 0.6.0 of llm-compressor, which is the one installed
by default in fms-model-optimizer, the SparseAutoModelForCausalLM
is already deprecated. In more recent versions this class has been
removed altogether. This commit just implements the suggested code
migration.

Signed-off-by: Max de Bayser <mbayser@br.ibm.com>
@maxdebayser maxdebayser force-pushed the fix_deprecated_import branch from b7fd2a5 to 84036f0 Compare May 1, 2026 17:05
@maxdebayser maxdebayser changed the title Fix deprecated import fix: deprecated import May 1, 2026
@github-actions github-actions Bot added the fix label May 1, 2026
@chichun-charlie-liu chichun-charlie-liu merged commit 6de59b9 into foundation-model-stack:main May 1, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants