Skip to content

[wont merge] fp4 #589

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

[wont merge] fp4 #589

wants to merge 1 commit into from

Conversation

wenhuach21
Copy link
Contributor

@wenhuach21 wenhuach21 commented May 30, 2025

wo global scale

for model_name in  "/models/opt-125m"
do
  CUDA_VISIBLE_DEVICES=$device  python3 -m auto_round \
  --model_name  $model_name \
  --device 0 \
  --tasks 'lambada_openai,hellaswag,piqa,winogrande,mmlu' \
  --bits 4 \
  --group_size 16 \
  --iters 200 \
  --format "fake" \
  --data_type "fp4_v2" \
  --act_bits 4 \
  --act_data_type "fp4_v2" \
  --output_dir "/data5/wenhuach/test_w4a4_g16" \
  --disable_deterministic_algorithms \
  2>&1 | tee -a test_fp4_g16_w4a4.txt
done

with global scale

for model_name in  "/models/opt-125m"
do
  CUDA_VISIBLE_DEVICES=$device  python3 -m auto_round \
  --model_name  $model_name \
  --device 0 \
  --tasks 'lambada_openai,hellaswag,piqa,winogrande,mmlu' \
  --bits 4 \
  --group_size 16 \
  --iters 200 \
  --format "fake" \
  --data_type "fp4_v2_with_global_scale" \
  --act_bits 4 \
  --act_data_type "fp4_v2_with_global_scale" \
  --output_dir "/data5/wenhuach/test_w4a4_g16" \
  --disable_deterministic_algorithms \
  2>&1 | tee -a test_fp4_g16_w4a4.txt
done

@wenhuach21 wenhuach21 marked this pull request as draft May 30, 2025 07:29
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

Successfully merging this pull request may close these issues.

1 participant