Replies: 1 comment
-
|
Yes, but it depends on which quantization workflow you're planning to use. TensorRT-LLM supports several quantization methods (e.g., AWQ, GPTQ, FP8, INT8), and the memory requirements during quantization vary accordingly. In general, you do not necessarily need to fit the full FP16/BF16 model on the GPUs at once to end up with a 4-bit TensorRT-LLM engine. If you already have a pre-quantized checkpoint (for example, an AWQ or GPTQ checkpoint), you can typically convert/build the engine directly from that checkpoint without first loading the full-precision model onto the GPUs. If, however, you're starting from the original Llama 3 70B weights and want TensorRT-LLM to perform the quantization itself, the conversion step may still require access to the full model (or enough CPU/GPU memory depending on the workflow and quantization algorithm). For a setup with 3× RTX 4090, a common workflow would be:
The exact commands depend on:
Could you clarify:
With that information, it would be possible to provide the exact conversion and If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I right now run inference thru Transformers with on the fly 4 bit quantization.
Can i create an engine with 4 bit quantization without having to fit the whole unquantized model on the gpu's?
I already have the 8b model running with trition and a working environment! I just need some help with the commands for 70B
Beta Was this translation helpful? Give feedback.
All reactions