mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-31 02:41:24 +00:00
remove add_special_tokens, not needed
This commit is contained in:
@@ -1163,7 +1163,6 @@ class PI05OpenPIPolicy(PreTrainedPolicy):
|
|||||||
full_prompts.append(full_prompt)
|
full_prompts.append(full_prompt)
|
||||||
|
|
||||||
# Tokenize the full prompts with state
|
# Tokenize the full prompts with state
|
||||||
# Use the HuggingFace tokenizer properly (not .encode() which doesn't exist on AutoTokenizer)
|
|
||||||
tokenized = self.tokenizer(
|
tokenized = self.tokenizer(
|
||||||
full_prompts,
|
full_prompts,
|
||||||
padding="max_length",
|
padding="max_length",
|
||||||
@@ -1171,7 +1170,6 @@ class PI05OpenPIPolicy(PreTrainedPolicy):
|
|||||||
truncation=True,
|
truncation=True,
|
||||||
max_length=self.max_token_len,
|
max_length=self.max_token_len,
|
||||||
return_tensors="pt",
|
return_tensors="pt",
|
||||||
add_special_tokens=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
tokens = tokenized["input_ids"].to(device)
|
tokens = tokenized["input_ids"].to(device)
|
||||||
|
|||||||
Reference in New Issue
Block a user