qgallouedec HF staff commited on
Commit
a226e13
1 Parent(s): 068e8a0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -14,7 +14,7 @@ tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2")
14
 
15
  model_id = "trl-internal-testing/dummy-GPT2-correct-vocab"
16
  model.push_to_hub(model_id)
17
- tokenizer.chat_template = "{% for message in messages %}{% if message['role'] == 'user' %}{{ ' ' }}{% endif %}{{ message['content'] }}{% if not .chat_template ' ' }}{% endif %}{% endfor %}{{ eos_token }}"
18
  tokenizer.push_to_hub(model_id)
19
  config.push_to_hub(model_id)
20
  ```
 
14
 
15
  model_id = "trl-internal-testing/dummy-GPT2-correct-vocab"
16
  model.push_to_hub(model_id)
17
+ tokenizer.chat_template = "{% for message in messages %}{% if message['role'] == 'user' %}{{ ' ' }}{% endif %}{{ message['content'] }}{% if not loop.last %}{{ ' ' }}{% endif %}{% endfor %}{{ eos_token }}"
18
  tokenizer.push_to_hub(model_id)
19
  config.push_to_hub(model_id)
20
  ```