mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-27 13:02:12 +00:00
fix: add model_id to model test
This commit is contained in:
parent
dc0f76553c
commit
9c45d34983
@ -17,7 +17,12 @@ def get_test_model():
|
|||||||
tokenizer = AutoTokenizer.from_pretrained("huggingface/llama-7b")
|
tokenizer = AutoTokenizer.from_pretrained("huggingface/llama-7b")
|
||||||
|
|
||||||
model = TestModel(
|
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
|
return model
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user