We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug A clear and concise description of what the bug is.
Expected behavior A clear and concise description of what you expected to happen.
Environment Include all relevant environment information:
To Reproduce
from llmcompressor.transformers import SparseAutoModelForCausalLM from transformers import AutoTokenizer MODEL_ID = "/data/models/deepseek-coder-6.7b-base/" model = SparseAutoModelForCausalLM.from_pretrained( MODEL_ID, device_map="auto", torch_dtype="auto") tokenizer = AutoTokenizer.from_pretrained(MODEL_ID) from llmcompressor.transformers import oneshot from llmcompressor.modifiers.quantization import QuantizationModifier # Configure the simple PTQ quantization recipe = QuantizationModifier( targets="Linear", scheme="FP8_DYNAMIC", ignore=["lm_head"]) # Apply the quantization algorithm. oneshot(model=model, recipe=recipe) # Save the model. SAVE_DIR = MODEL_ID.split("/")[1] + "-FP8-Dynamic" model.save_pretrained(SAVE_DIR) tokenizer.save_pretrained(SAVE_DIR)
Errors
Additional context
The text was updated successfully, but these errors were encountered:
Can you share:
It looks like max for fp8 is not supported on your torch version
Sorry, something went wrong.
No branches or pull requests
Describe the bug
A clear and concise description of what the bug is.
Expected behavior
A clear and concise description of what you expected to happen.
Environment
Include all relevant environment information:
To Reproduce
Errors
Additional context
The text was updated successfully, but these errors were encountered: