mirror of
https://github.com/AvaLovelace1/LegoGPT.git
synced 2026-05-25 01:58:21 -05:00
Inference masking fix (allow ")<eot>" in addition to ")\n<eot>")
This commit is contained in:
@@ -125,7 +125,7 @@ class LegoGPT:
|
||||
result_ids = []
|
||||
for allowed_strs in [
|
||||
allowed_dims + (self.llm.tokenizer.eos_token,), ('x',), allowed_dims, (' (',), allowed_posns, (',',),
|
||||
allowed_posns, (',',), allowed_posns, (')\n',),
|
||||
allowed_posns, (',',), allowed_posns, (')\n', ')'),
|
||||
]:
|
||||
next_token_id = self.llm(
|
||||
prompt,
|
||||
|
||||
Reference in New Issue
Block a user