Skip to content

Commit

Permalink
fix: add model_id to model test
Browse files Browse the repository at this point in the history
  • Loading branch information
drbh committed Jun 6, 2024
1 parent 60a0956 commit 4f90ff3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/tests/models/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ def generate_token(self, batch):
tokenizer = AutoTokenizer.from_pretrained("huggingface/llama-7b")

model = TestModel(
torch.nn.Linear(1, 1), tokenizer, False, torch.float32, torch.device("cpu")
"test_model_id",
torch.nn.Linear(1, 1),
tokenizer,
False,
torch.float32,
torch.device("cpu"),
)
return model

Expand Down

0 comments on commit 4f90ff3

Please sign in to comment.