Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 26, 2024
1 parent f74fde6 commit 905cdd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions torch_geometric/nn/nlp/txt2kg.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def chunk_to_triples_str_local(self, txt: str) -> str:
LM_name = "VAGOsolutions/SauerkrautLM-v2-14b-DPO"
self.model = LLM(LM_name, num_params=14).eval()
self.initd_LM = True
out_str = self.model.inference(
question=[txt + '\n' + SYSTEM_PROMPT],
max_tokens=self.chunk_size)[0]
out_str = self.model.inference(question=[txt + '\n' + SYSTEM_PROMPT],
max_tokens=self.chunk_size)[0]
# for debug
self.total_chars_parsed += len(txt)
self.time_to_parse += round(time.time() - chunk_start_time, 2)
Expand Down

0 comments on commit 905cdd2

Please sign in to comment.