Skip to content
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

[WIP][tests] add precomputation tests #234

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates
sayakpaul committed Jan 21, 2025
commit 9ba2aff07e415cff3a3ecd927d3614daff137ae7
7 changes: 7 additions & 0 deletions tests/trainers/cogvideox/test_cogvideox.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import sys
from pathlib import Path

current_file = Path(__file__).resolve()
root_dir = current_file.parents[3]
sys.path.append(str(root_dir))

from ..test_trainers_common import TrainerTestMixin
from finetrainers import parse_arguments
import unittest
11 changes: 11 additions & 0 deletions tests/trainers/test_trainers_common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
import sys
from pathlib import Path

current_file = Path(__file__).resolve()
root_dir = current_file.parents[1]
sys.path.append(str(root_dir))

# import os
# current_dir = os.path.dirname(os.path.abspath(__file__))
# print(f"{current_dir=}")

from finetrainers import Trainer
from huggingface_hub import snapshot_download
import tempfile