Skip to content

Commit

Permalink
chore: adding conditioner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ariG23498 committed Oct 7, 2024
1 parent 55abdee commit 4a7461a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jflux/modules/conditioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from flax import nnx
from transformers import (
CLIPTokenizer,
T5Tokenizer,
FlaxCLIPTextModel,
FlaxT5EncoderModel,
T5Tokenizer,
)


Expand Down
10 changes: 10 additions & 0 deletions tests/modules/test_conditioner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import numpy as np

from flux.modules.conditioner import HFEmbedder as TorchHFEmbedder
from jflux.modules.conditioner import HFEmbedder as JaxHFEmbedder


class HFEmbedderTestCase(np.testing.TestCase):
def test_hf_embed(self):
# initialize layers
TorchHFEmbedder()

0 comments on commit 4a7461a

Please sign in to comment.