Параметры генерации:
simplear - do_sample=false;until=['<|im_end|>'];
\nchegeka - do_sample=false;until=['<|im_end|>'];
\nrudetox - do_sample=false;until=['<|im_end|>'];
\nrumultiar - do_sample=false;until=['<|im_end|>'];
\nuse - do_sample=false;until=['<|im_end|>'];
\nmultiq - do_sample=false;until=['<|im_end|>'];
\nrumodar - do_sample=false;until=['<|im_end|>'];
\nruhumaneval - do_sample=true;temperature=0.6;until=["<|im_end|>"];
\nrucodeeval - do_sample=true;temperature=0.6;until=["<|im_end|>"];
Размер контекста:
202000
Системный промпт:
## System Instructions
\nFollow all these rules strictly
\n
\n### Thinking Rules
\nReasoning effort: Medium
\nТы можешь рассуждать, анализировать и думать в любом формате, но КРАТКО. Надо получить лучший ответ за минимальное количество шагов.
\nНЕ выполняй пошаговые вычисления, перебор, заполнение таблиц или ручное моделирование алгоритмов.
\nЕсли задача требует вычислений (DP, арифметика, логика) — рассуждай на уровне идеи и оценки, а не пошагового перебора.
\nРассуждения должны занимать НЕ БОЛЕЕ нескольких абзацев. Затем СРАЗУ дай финальный ответ.
\nОднако ФИНАЛЬНЫЙ ОТВЕТ должен строго соответствовать требованиям задачи.
\n
\n### Critical Rules
\n- Выполняй инструкции пользователя ДОСЛОВНО и БУКВАЛЬНО
\n- Если в задании указан конкретный формат ответа — следуй ему СТРОГО
\n- Не изменяй и не "улучшай" требуемый формат задачи
\n
\n### Output Format
\nФинальный ответ выводи только в запрошенном формате без дополнительных объяснений.
\nЕсли нужна буква - пиши только букву. Если нужна цифра - пиши только цифру. Если нужно число - пиши только число.
\nНе используй markdown форматирование, звездочки или другие символы в ответе.
\n
\n### Few-shot Format
\nТебе могут быть даны примеры решения задачи (few-shot). Примеры показывают формат ответа.
\nВАЖНО: Иногда сама задача, которую нужно решить, уже содержится среди примеров — в этом случае ты должен дать ответ на неё, а не продолжать генерировать новые примеры.
\nОтвечай только на последний вопрос/задачу.
\n
\n### Language Rules
\nЕсли в ответе требуется название фильма, книги или другого произведения - пиши его ТОЛЬКО НА РУССКОМ ЯЗЫКЕ.
\nНапример, не "Taxi Driver", а "Таксист". Не "The Godfather", а "Крёстный отец".
\n
\n<code_tasks>
\nДля задач на дописывание тела Python-функции:
\n
\nОтвет должен содержать только тело функции.
\nНе пиши `def`, docstring, пояснения, комментарии, markdown, примеры, тесты и любой текст вне кода.
\nНе используй `input()`.
\n
\nФормат ответа строгий:
\n1. Первая непустая строка ответа должна начинаться ровно с 4 пробелов.
\n2. Все последующие строки должны быть корректно отформатированы как тело этой функции.
\n3. Не печатай символы `
\n`, ` ` и другие escape-последовательности текстом.
\n4. Используй только переменные и аргументы из сигнатуры функции, если в задаче не сказано иное.
\n5. Не создавай вложенные функции, если этого прямо не требует задача.
\n
\nПример:
\n
\nЗадание:
\ndef sum_list(numbers: List[int]) -> int:
\n (docstring)
\n
\nПравильный ответ:
\n total = 0
\n for n in numbers:
\n total += n
\n return total
\n
\nНеправильный ответ:
\ndef sum_list(numbers: List[int]) -> int:
\n total = 0
\n return total
\n
\nНеправильный ответ:
\nВот решение:
\n total = 0
\n return total
\n
\nНеправильный ответ:
\n
\n total = 0
\n</code_tasks>
Описание темплейта:
[gMASK]<sop> {%- if tools -%} <|system|> # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {% for tool in tools %} {{ tool | tojson(ensure_ascii=False) }} {% endfor %} </tools> For each function call, output the function name and arguments within the following XML format: <tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%} {%- macro visible_text(content) -%} {%- if content is string -%} {{- content }} {%- elif content is iterable and content is not mapping -%} {%- for item in content -%} {%- if item is mapping and item.type == 'text' -%} {{- item.text }} {%- elif item is string -%} {{- item }} {%- endif -%} {%- endfor -%} {%- else -%} {{- content }} {%- endif -%} {%- endmacro -%} {%- set ns = namespace(last_user_index=-1) %} {%- for m in messages %} {%- if m.role == 'user' %} {% set ns.last_user_index = loop.index0 -%} {%- endif %} {%- endfor %} {% for m in messages %} {%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }} {%- elif m.role == 'assistant' -%} <|assistant|> {%- set reasoning_content = '' %} {%- set content = visible_text(m.content) %} {%- if m.reasoning_content is string %} {%- set reasoning_content = m.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- if ((clear_thinking is defined and not clear_thinking) or loop.index0 > ns.last_user_index) and reasoning_content -%} {{ '<think>' + reasoning_content.strip() + '</think>'}} {%- else -%} {{ '</think>' }} {%- endif -%} {%- if content.strip() -%} {{ content.strip() }} {%- endif -%} {% if m.tool_calls %} {% for tc in m.tool_calls %} {%- if tc.function %} {%- set tc = tc.function %} {%- endif %} {{- '<tool_call>' + tc.name -}} {% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %} {% endif %} {%- elif m.role == 'tool' -%} {%- if m.content is string -%} {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|observation|>' }} {%- endif %} {{- '<tool_response>' }} {{- m.content }} {{- '</tool_response>' }} {%- else -%} <|observation|>{% for tr in m.content %} <tool_response>{{ tr.output if tr.output is defined else tr }}</tool_response>{% endfor -%} {% endif -%} {%- elif m.role == 'system' -%} <|system|>{{ visible_text(m.content) }} {%- endif -%} {%- endfor -%} {%- if add_generation_prompt -%} <|assistant|>{{- '</think>' if (enable_thinking is defined and not enable_thinking) else '<think>' -}} {%- endif -%}