Skip to content

Commit

Permalink
Merge pull request #64 from x-tabdeveloping/ctm_hotfix
Browse files Browse the repository at this point in the history
CTM hotfix
  • Loading branch information
x-tabdeveloping authored Sep 10, 2024
2 parents 21fd848 + 31ddd32 commit aaa90a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ line-length=79

[tool.poetry]
name = "turftopic"
version = "0.5.3"
version = "0.5.4"
description = "Topic modeling with contextual representations from sentence transformers."
authors = ["Márton Kardos <[email protected]>"]
license = "MIT"
Expand Down
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 aaa90a7

Please sign in to comment.