Skip to content

Initial README #3

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

Merged
merged 7 commits into from
Jul 7, 2024
Merged

Initial README #3

merged 7 commits into from
Jul 7, 2024

Conversation

bfineran
Copy link
Contributor

No description provided.

@bfineran bfineran self-assigned this Jun 24, 2024
README.md Outdated

oneshot(
model="TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T", # sample model
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would update this to use TinyLlama/TinyLlama-1.1B-Chat-v1.0

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should instead pass a dataset that the user created here, like this example

The "open_platypus" is a bit too opaque

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed - wanted to keep the code minimal in the readme, taking a look at what we can do

# sets parameters for the GPTQ algorithms - target Linear layer weights at 4 bits
gptq = GPTQModifier(scheme="W4A16", targets="Linear")

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we initialize the model outside of the one-shot via AutoModelForCausalLM or does this require SparseAutoModelForCausalLM?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

after the HFQuantizer is upstreamed the base auto model will work

```

### Inference with vLLM
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we also add example code for inference with transformers? Just to make it clear that both are supported with the caveat that transformers runs in fake quant mode

Copy link
Contributor Author

@bfineran bfineran Jun 25, 2024

Choose a reason for hiding this comment

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

great idea, let's add this after we can get the HFQuantizer integration landed since that will affect that pathway

@robertgshaw2-redhat robertgshaw2-redhat marked this pull request as ready for review July 7, 2024 22:20
@robertgshaw2-redhat robertgshaw2-redhat merged commit aa6558b into main Jul 7, 2024
8 of 12 checks passed
markmc pushed a commit to markmc/llm-compressor that referenced this pull request Nov 13, 2024
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.

3 participants