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

How to use multi-gpu quantization #2

Open
rexmxw02 opened this issue Nov 7, 2024 · 1 comment
Open

How to use multi-gpu quantization #2

rexmxw02 opened this issue Nov 7, 2024 · 1 comment

Comments

@rexmxw02
Copy link

rexmxw02 commented Nov 7, 2024

How to use multi-gpu quantization
when i operate :
export MODEL_NAME_OR_PATH="/llama2_70B"
export OUTPUT_DIR="/llama2_70B_quantize"
export QUANTIZATION_SCHEME="fp8"
export DEVICE="cuda:0,1,2,3,4"
export DEVICE="cuda:0,1,2,3" # Device to run the quantization process. Defaults to "cuda:0".
fmo quantize --dataset-name-or-path $DATASET_NAME_OR_PATH --model-name-or-path $MODEL_NAME_OR_PATH --output-dir $OUTPUT_DIR --mode $QUANTIZATION_SCHEME --device $DEVICE

it shows fmo.main ERROR: Invalid device string: 'cuda:0,1,2,3',so how can i do?
Loading checkpoint shards: 100%|███████████████████████████████████████| 4/4 [00:00<00:00, 13.39it/s]
2024-11-07 12:39:35,853.00853: fmo.main ERROR: Invalid device string: 'cuda:0,1,2,3'

@seungduk-yanolja
Copy link

+1
it seems a bit slow with a single GPU
Screenshot 2024-11-12 at 9 48 48 PM
Screenshot 2024-11-12 at 9 49 12 PM

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