Skip to content

Commit

Permalink
pass trust_remote_code_model=True for deepseek examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Dec 23, 2024
1 parent 7fd94f1 commit 9ee00b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/quantizing_moe/deepseek_moe_w4a16.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def tokenize(sample):
max_seq_length=MAX_SEQUENCE_LENGTH,
num_calibration_samples=NUM_CALIBRATION_SAMPLES,
save_compressed=True,
trust_remote_code_model=True,
output_dir=SAVE_DIR,
)

Expand Down
1 change: 1 addition & 0 deletions examples/quantizing_moe/deepseek_moe_w8a8_fp8.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def tokenize(sample):
recipe=recipe,
max_seq_length=MAX_SEQUENCE_LENGTH,
num_calibration_samples=NUM_CALIBRATION_SAMPLES,
trust_remote_code_model=True,
save_compressed=True,
output_dir=SAVE_DIR,
)
Expand Down
1 change: 1 addition & 0 deletions examples/quantizing_moe/deepseek_moe_w8a8_int8.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def tokenize(sample):
recipe=recipe,
max_seq_length=MAX_SEQUENCE_LENGTH,
num_calibration_samples=NUM_CALIBRATION_SAMPLES,
trust_remote_code_model=True,
save_compressed=True,
output_dir=SAVE_DIR,
)
Expand Down

0 comments on commit 9ee00b0

Please sign in to comment.