File size: 496 Bytes
65ec679 4c44de9 65ec679 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ---
base_model:
- openai/gpt-oss-20b
---
```python
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
"cnmoro/gpt-oss-20b-tokenizer-optional-reasoning"
)
gen_input = tokenizer.apply_chat_template(
[{"role": "user", "content": "Hello!"}],
tokenize=False,
add_generation_prompt=True, # <-- Will be added anyway if reasoning is disabled, otherwise, default behavior
reasoning_effort="disabled" # <-- New option. Disable thinking completely
)
``` |