Views
No views yet
/think (explicit reasoning) or /no_think (concise answers).1import transformers
2import torch
3
4model_id = "Trendyol/Trendyol-LLM-8B-T1"
5pipeline = transformers.pipeline(
6 "text-generation",
7 model=model_id,
8 model_kwargs={
9 "torch_dtype": torch.bfloat16,
10 "attn_implementation": "flash_attention_2",
11 "device_map": "auto"
12 }
13)
14
15messages = [
16 {"role": "system", "content": "Sen yardımsever bir asistansın."},
17 {"role": "user", "content": "Mona Lisa tablosu hakkında kısa bir özet yazar mısın?"}
18]
19
20outputs = pipeline(messages,
21 return_full_text=False,
22 max_new_tokens=2048
23 )
24assistant_response = outputs[0]["generated_text"].strip()
25print(assistant_response)/think & /no_think/think – model emits a <think> … </think> block with its internal reasoning before the final answer. This is default behaviour./no_think – append this directive in the last user turn, if you want to turn off thinking mode.1@misc{trendyolLLM8BT1,
2 title = {Trendyol LLM 8B T1},
3 author = {Trendyol LLM & Core NLP Team},
4 year = {2025},
5 url = {https://huggingface.co/Trendyol/Trendyol-LLM-8B-T1}
6}