Skip to content
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

Can you give me some advices about parameters setting? #612

Open
lzcchl opened this issue Sep 14, 2024 · 1 comment
Open

Can you give me some advices about parameters setting? #612

lzcchl opened this issue Sep 14, 2024 · 1 comment

Comments

@lzcchl
Copy link

lzcchl commented Sep 14, 2024

My use case and GPU:
model: Qwen2-72B-Instruct
max_token_len (input+output): 20000
gpus: 4xA100

when I use code from https://github.com/casper-hansen/AutoAWQ/blob/main/docs/examples.md
and change parameters in function model.quantize as below:

model = AutoAWQForCausalLM.from_pretrained(
    model_path, **{"low_cpu_mem_usage": True, "use_cache": False}
)

model.quantize(
    tokenizer,
    quant_config=quant_config,
    calib_data=load_my_data(),
    n_parallel_calib_samples=1,
    max_calib_samples=128,
    max_calib_seq_len=20000
)

but It run OOM, and use only one gpu, I set device_map='auto', but It OOM again, how can I change parameters for run well ?

@casper-hansen
Copy link
Owner

You can't use such a long sequence length because it does not fit in memory.

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

No branches or pull requests

2 participants