Skip to content
Jien Weng
Menu
Blog

Building a DeepSeek-R1 Chatbot

I built a chatbot with DeepSeek-R1-Distill-Qwen-1.5B to try a downloadable reasoning model. The interface shows its intermediate output separately from the final response.

Try the Hugging Face demo or read the source.

Showing the intermediate output

The model produced reasoning text before its answer, so I displayed it instead of discarding it.

Chatbot displaying intermediate model output above the response
Intermediate output shown above the answer.

Asked about climate change in Malaysia, it gave a structured response that included the Andaman and Nicobar Islands and a “Ch bamboo” initiative I had never heard of. It sounded convincing despite those mistakes.

Climate response with incorrect references to Malaysian geography
A climate answer with wrong Malaysian geography.

The intermediate text helped me inspect responses and compare prompts. It still needed fact-checking.

Hosting the experiment

I used Gradio on a basic Hugging Face Spaces instance with 2 vCPUs and 16 GB RAM, so the demo can be slow to respond.

The small model kept things manageable: I could download it, read the model card, and change the interface without a paid inference API.

Chatbot interface
The chatbot interface.

Model details and published results are on the official model card; hosting is in the Spaces documentation.