Skip to content

Commit

Permalink
TORCHINDUCTOR DISABLE CACHES
Browse files Browse the repository at this point in the history
  • Loading branch information
joecummings committed Oct 31, 2024
1 parent 3594697 commit d03db9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/recipes/dev/test_generate_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,12 @@ def test_llama2_generate_with_quantization(self, caplog, monkeypatch, tmpdir):
tokenizer_path = Path(TOKENIZER_PATHS["llama2"])
ckpt_dir = ckpt_path.parent

torch._dynamo.reset()

# Config file needed for model conversion.
write_hf_ckpt_config(ckpt_dir)

cmd = f"""
tune run dev/generate_v2 \
TORCHINDUCTOR_FORCE_DISABLE_CACHES=1 \
tune run dev/generate_v2 \
--config llama2/generation_v2 \
output_dir={tmpdir} \
checkpointer=torchtune.training.FullModelTorchTuneCheckpointer \
Expand Down

0 comments on commit d03db9f

Please sign in to comment.