Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcceb4f0

Browse files
committed
add gc for test_llama_3_x_fp8_with_bf16_lora
Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
1 parentd3059db commitcceb4f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎tests/integration/defs/conftest.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# -*- coding: utf-8 -*-
1616

1717
importdatetime
18+
importgc
1819
importos
1920
importplatform
2021
importre
@@ -2524,6 +2525,7 @@ def torch_empty_cache() -> None:
25242525
"""
25252526
iftorch.cuda.is_available():
25262527
torch.cuda.empty_cache()
2528+
gc.collect()
25272529

25282530

25292531
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp