Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Feb 2, 2024
1 parent fb478fe commit 35130d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tests/models/llama/test_inference_llama.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import unittest

from transformers import AutoModelForCausalLM

device = "cuda"


class LLaMaInferenceTest(unittest.TestCase):

def test_foo(self):
assert 1 == 1
ckpt = "meta-llama/Llama-2-7b"
model = AutoModelForCausalLM.from_pretrained(ckpt)
model.train()
model.to(device)
9 changes: 8 additions & 1 deletion tests/models/llama/test_train_llama.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import unittest

from transformers import AutoModelForCausalLM

device = "cuda"


class LLaMaTrainingTest(unittest.TestCase):

def test_foo(self):
assert 1 == 2
ckpt = "meta-llama/Llama-2-7b"
model = AutoModelForCausalLM.from_pretrained(ckpt)
model.train()
model.to(device)

0 comments on commit 35130d8

Please sign in to comment.