You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try starting TGI with microsoft/Phi-4-reasoning-plus it will crash with the following:
thread 'main' panicked at router/src/infer/chat_template.rs:53:14:
called `Result::unwrap()` on an `Err` value: Error { kind: SyntaxError, detail: "unknown statement generation", name: "<string>", line: 1 }
---------------------------------- <string> -----------------------------------
1 > <|im_start|>system<|im_sep|>You are Phi, a language model trained by Microsoft to help users. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracing, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> {Thought section} </think> {Solution section}. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion. Now, try to solve the following question through the above guidelines:<|im_end|>{% for message in messages %}{% if (message['role'] == 'user') %}{{'<|im_start|>user<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'assistant') %}{{'<|im_start|>assistant<|im_sep|>'}}{% generation %}{{message['content'] + '<|im_end|>'}}{% endgeneration %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant<|im_sep|>' }}{% endif %}
i ^^^^^^^^^^ syntax error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No referenced variables
-------------------------------------------------------------------------------
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expected behavior
It should start phi 4 reasoning / reasoning plus models successfully.
The text was updated successfully, but these errors were encountered:
System Info
Information
Tasks
Reproduction
Try starting TGI with microsoft/Phi-4-reasoning-plus it will crash with the following:
Expected behavior
It should start phi 4 reasoning / reasoning plus models successfully.
The text was updated successfully, but these errors were encountered: