This repository fixes the original broken-model so it works correctly with OpenAI-style chat APIs such as /chat/completions.

The problem was that the original tokenizer configuration did not define a chat template. When a model is served with Text Generation Inference, chat requests are sent as structured messages with roles like user and assistant. Without a chat template, the server does not know how to convert those messages into the text format expected by the model, which causes chat requests to fail.

To fix this, tokenizer_config.json was updated. The bos_token was set to <|endoftext|> instead of null, and a chat_template was added. The chat template formats each message using <|im_start|> and <|im_end|> tokens and includes the role and content of each message. This matches the expected Qwen-style prompt format.

With these changes, the server can correctly serialize chat messages into a prompt and the model can generate responses normally when using /chat/completions.

Downloads last month
7
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for AlexL0701/broken-model-fixed

Finetuned
(1720)
this model

Space using AlexL0701/broken-model-fixed 1