From 9c45d34983a42e0680ae0eb90196fa93271f8a55 Mon Sep 17 00:00:00 2001 From: drbh Date: Thu, 6 Jun 2024 21:24:29 +0000 Subject: [PATCH] fix: add model_id to model test --- server/tests/models/test_model.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/tests/models/test_model.py b/server/tests/models/test_model.py index 32bcd45f..8441e8c6 100644 --- a/server/tests/models/test_model.py +++ b/server/tests/models/test_model.py @@ -17,7 +17,12 @@ def get_test_model(): 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