Skip to content

Commit

Permalink
Limited CTMs to only use CPU at all times
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tabdeveloping committed Sep 10, 2024
1 parent 21fd848 commit 1e74a44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions turftopic/models/ctm.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@ def fit(
seed = self.random_state or random.randint(0, 10_000)
torch.manual_seed(seed)
pyro.set_rng_seed(seed)
device = torch.device(
"cuda:0" if torch.cuda.is_available() else "cpu"
)
device = torch.device("cpu")
pyro.clear_param_store()
contextualized_size = embeddings.shape[1]
if self.combined:
Expand Down

0 comments on commit 1e74a44

Please sign in to comment.