Warnings running on macOS on a M3 Max

#3
by christianweyer - opened

Hi, thanks for the model :-)

When I run the sample on my Mac, I get the following output.
What do these warnings mean and does the 'Falling back to non-compiled mode' impact performance?

❯ python lettucedetect_test.py
/Users/abc/miniconda3/envs/lettucedetect/lib/python3.11/site-packages/lettucedetect/models/inference.py:85: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
labels = torch.tensor(labels, device=self.device)
Compiling the model with torch.compile and using a torch.cpu device is not supported. Falling back to non-compiled mode.
Predictions: [{'start': 31, 'end': 71, 'confidence': 0.9891982674598694, 'text': ' The population of France is 69 million.'}]

Sign up or log in to comment