VRAM usage, quantization & Context length

#1
by cnsiva - opened

Hi YTan2000,
Thank you for your work. I tried couple of you models before in my environment, I didn't the great success. The response is garbled out in some cases. So, I have the following question.

  1. Do I need to quantize in my environment using llama-quantize (built it from llama.cpp-tq3) ?
  2. Can this model fit on my VRAM (4079 Ti Super 16GB)
  3. What is max context length I can use?
  4. Is any other llama-server param I should be using?

MySystem Configuration:
OS: Ubuntu 26.04
CPU: AMD 7950X3D
RAM: 64 GB DDR5 6000 MHz
GPU: 4070 Ti Super 16 GB

16gb is plenty. Can you try the latest Qwen3.6-35B? 35b can fit 128k but you can always try higher or lower with -ngl 99 or less 99 is max.

and try 27b which can take 32k.

Quantization sometimes remove the quality especially the abilterated one.

You may want to try cuda 12 as some version of cuda version has contributed to garbage. Check one of the discussion recently who had the same problem

I am interested to run the dense model (Qwen3.6-27B or Gemma4-31B) with TQ3. will this work in 16 GB VRAM with minimum 64K context?

27b 32-48k, if you are machine is headless then 64k no problem full in GPU. If you offload to CPU (ngl <99) , you can fit more but slower
Gemma4 similar.
Qwen3.6-A35b is a lot better, can go to max context 256k. I only use 128k and more than enough for a lot of task. If you use open code or other cli, it auto compact the context for you.

Thank you. I have a headless Ubuntu server, and I can dedicate all resources to the llama.cpp server. I tried both Qwen3.6-27B and Qwen3.6-A35b with TQ3, but neither of them worked. Both of them produced garbled output. So, my question is, do I need to quantize the model in my server environment and use it? If you have any llama-server startup parameters that I can use, it would be great if you could share them. I would like to continue using llama.cpp-tq3.

MySystem Configuration:
OS: Ubuntu 26.04
CPU: AMD 7950X3D
RAM: 64 GB DDR5 6000 MHz
GPU: 4070 Ti Super 16 GB

Sorry, away for two weeks. Try load other models that is non tq3_4s. See that you have the same problem.

Ensure you get the latest from main.
Also check cuda version. As mentioned, certain cuda version has issue. Try 12.9

Settings: -ngl 99 -ctk q4_0 -ctv tq3_0 -fa on --cache-ram 0 --jinja --reasoning off --reasoning-budget 0 --reasoning-format deepseek -c 32768

https://huggingface.co/YTan2000/Qwopus3.5-27B-v3-TQ3_4S/discussions/3#69e3407ae1003d7517ddc548

Also check this. Sorry can't help as I am on the plane. Good luck. May be as chatgpt or claude

Take a look at https://github.com/gdevenyi/huggingface-estimate for a way to calculate memory requirements. It properly supports TurboQuant weights during estimation.

Sign up or log in to comment