Downloads · 30 days
6
12% of all-time downloads
daaaaaam/broken-model-fixed
broken-model-fixed is a text generation model from daaaaaam. Use it when you need the model to write or continue text. It is set up for transformers.
This repository contains a minimally corrected version of yunmorning/broken-model for use with chat-completions style inference servers.
Downloads · 30 days
6
12% of all-time downloads
All-time downloads
50
Public
Parameters
8.2B
16.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This repository contains a minimally corrected version of yunmorning/broken-model for use with chat-completions style inference servers.
The original repository's tokenizer_config.json did not define chat_template. As a result, chat-serving stacks that rely on the tokenizer to serialize OpenAI-style chat messages cannot construct a model prompt. In Transformers, this reproduces as:
ValueError: Cannot use chat template functions because tokenizer.chat_template is not set and no template argument was passed.
This prevents a functional /chat/completions API server from formatting requests such as [{"role": "user", "content": "Hello"}] into the Qwen chat format.
tokenizer_config.json.chat_template using the official Qwen/Qwen3-8B chat template.base_model metadata from meta-llama/Meta-Llama-3.1-8B to Qwen/Qwen3-8B to match the actual config.json architecture and tensor structure.No changes were made to model weights, config.json, generation_config.json, tokenizer vocabulary, or special token IDs.
config.json and generation_config.json already match the official Qwen3-8B configuration. The model weights also use Qwen3-style tensor names such as self_attn.q_norm and self_attn.k_norm. The missing chat template was the only runtime configuration issue required to make chat message formatting work.
After the fix, the tokenizer can render chat messages into the expected prompt form:
<|im_start|>user
Hello<|im_end|>
<|im_start|>assistant