Comments (8)
Thanks a lot @fxmarty.
I only noticed that the package with Marlin kernel is installed even on a system that doesn't support it, e.g. T4. Which is fine. But I would like that a user is notified about this incompatibility.
The error appears only when I try to run forward pass, not during layer initialization. (And the error message doesn't tell me what is exactly wrong.)
import torch
from auto_gptq.nn_modules.qlinear.qlinear_marlin import QuantLinear
x = torch.rand((1, 1, 128), device="cuda").half()
layer = QuantLinear(4, 128, 128, 256, False).to("cuda")
layer(x)
>>
RuntimeError: CUDA error: invalid argument
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
So perhaps it's better to add a check inside init method, something like this:
import subprocess
output = subprocess.check_output("nvidia-smi --query-gpu=compute_cap --format=csv,noheader".split())
compute = float(output.strip().decode())
if compute < 8.0:
raise NotImplementedError("[Error message]")
Or maybe I misunderstood something? 🤷♂️
from autogptq.
Good call! Currently the check is in from_quantized
AutoGPTQ/auto_gptq/modeling/_base.py
Lines 1225 to 1226 in 74212f5
QuantLinear
init.from autogptq.
I knew that there should be an easier way to check compute capability 🙂.
Yes, in my opinion, this check belongs to the QuantLinear class.
"The more you buy, the more you save." - Taiwanese proverb
Now I know :)
from autogptq.
Thank you. I am planning to make a release hopefully this week, with Marlin kernel & built against PyTorch 2.2. Still need to add guards against __CUDA_ARCH__
in marlin codebase as it can only be compiled for compute capability >=8.0.
I'll add a fast repacking first as well.
from autogptq.
Awesome news!
Thanks a lot 🤗
from autogptq.
Hi @Andrei-Aksionov, AutoGPTQ 0.7.0 is released, check out https://github.com/AutoGPTQ/AutoGPTQ/releases/tag/v0.7.0 & https://github.com/AutoGPTQ/AutoGPTQ?tab=readme-ov-file#installation!
from autogptq.
@Andrei-Aksionov Added a check in #567, I'll likely do a patch this week.
from autogptq.
Thanks!
from autogptq.
Related Issues (20)
- Llama-3 8B Instruct quantized to 8 Bit spits out gibberish in transformers `model.generate()` but works fine in vLLM? HOT 5
- [BUG]safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer
- [Question] Differences in quantization logic compared to AWQ
- [FEATURE] ADD SUPPORT DeepSeek-V2 HOT 1
- [BUG] ARM installation error
- [BUG] ROCm installation and building broken
- Target modules [] not found in the base model. Please check the target modules and try again.
- [BUG] Cannot install from source
- [BUG] Following the quant_with_alpaca.py example but keep getting "You shouldn't move a model that is dispatched using accelerate hooks." and the model is never saved. HOT 2
- [FEATURE] Models that support MOE do GPTQ
- [FEATURE] Add marlin24 support
- How to select between different kernels?
- Question about data shape difference between quantization and forward
- [FEATURE] Added code support to 5,6,7 bits quantization can you please add me as contributor I will create a new pull request HOT 4
- [BUG] Quantitative model Yi-1.5-9b-16K does not produce text output.
- How to install auto-gptq in GCC 8.5.0 environment?
- How to get a dequantized model?
- [BUG] Not able to install on Ubuntu 22.04 (subprocess-exited-with-error )
- [BUG]
- [FEATURE] ChatGLM Support Added
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autogptq.