Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Conversation

Satrat
Copy link

@Satrat Satrat commented Dec 11, 2023

Previously the OBCQ script would return with an error if one of the supported/tested model types wasn't found in the name of the --model_path argument.

With this PR, instead of erroring out we just return a warning to the user and attempt to load the model with AutoModelForCausalLM anway.

Testing

src/sparseml/transformers/sparsification/obcq/obcq.py model_path=sahil2801/replit-code-instruct-glaive open_platypus --recipe tests/sparseml/transformers/obcq/test_tiny.yaml --save True

The model successfully loads with a warning. One-Shot does fail for this model, will address that in another PR since its MPT-specific

Asana ticket: https://app.asana.com/0/1205229323407165/1206141086244198/f

@Satrat Satrat marked this pull request as ready for review December 11, 2023 14:52
Copy link
Member

@rahul-tuli rahul-tuli left a comment

Choose a reason for hiding this comment

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

Nice!

@Satrat Satrat merged commit 568bb41 into main Dec 11, 2023
@Satrat Satrat deleted the default_obcq_loading branch December 11, 2023 17:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants