()
| 5 | |
| 6 | |
| 7 | def test_model_inference(): |
| 8 | from sat.model import RobertaModel, AutoModel |
| 9 | model, args1 = RobertaModel.from_pretrained('roberta-base') |
| 10 | x = torch.tensor([[1,2,3]], device='cuda') |
| 11 | a = model(input_ids=x, position_ids=x, attention_mask=None) |
| 12 | |
| 13 | def test_model_inference_create(): |
| 14 | from sat.model import RobertaModel, AutoModel |
nothing calls this directly
no test coverage detected