Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
A compact 1.7B chat model that switches between a thinking mode for reasoning and a quick mode for dialogue. Suits developers who want a small open model for chat, translation and agent features.
Qwen3-1.7B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download Qwen/Qwen3-1.7B
Qwen3-1.7B is a compact chat model from Qwen with about 1.7 billion parameters, built on Qwen3-1.7B-Base. One model covers two modes. Thinking mode works through math, logic and code step by step, and non-thinking mode gives quick replies for everyday dialogue.
Developers who want a small open model that runs on ordinary hardware, and people building chat, translation or agent features that need to stay light. It also suits learners who want to see how a thinking switch works.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | App developers | Run a small chat model inside an app | Add a local assistant to a tool |
| Developer tools | Agent builders | Let the model call external tools | Connect it to an API endpoint through vLLM |
| Education | Students and teachers | Study reasoning with the thinking switch | Compare answers with thinking on and off |
| Localization | Multilingual teams | Translate and follow instructions in many languages | Draft short translations for review |
Anyone who needs the strongest answers on hard problems can skip it, since larger Qwen3 models exist.
| Use case | Who | What they get back |
|---|---|---|
| Local chat assistant | Developers | Replies generated on your own machine |
| Step by step reasoning | Students and developers | A thinking section followed by the final answer |
| Tool-using agents | Agent builders | Calls to external tools in both modes |
| Translation | Multilingual users | Text in more than 100 languages and dialects |
pip install -U huggingface_hub hf download Qwen/Qwen3-1.7B
Load the tokenizer and model, build a chat message, and let the model generate. The enable_thinking flag switches between thinking and non-thinking mode. The code then splits the thinking text from the final answer by finding the end-of-thinking token.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen3-1.7B"
# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# prepare the model input
prompt = "Give me a short introduction to large language model."
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=True # Switches between thinking and non-thinking modes. Default is True.
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
# conduct text completion
generated_ids = model.generate(
**model_inputs,
max_new_tokens=32768
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
# parsing thinking content
try:
# rindex finding 151668 (</think>)
index = len(output_ids) - output_ids[::-1].index(151668)
except ValueError:
index = 0
thinking_content = tokenizer.decode(output_ids[:index], skip_special_tokens=True).strip("\n")
content = tokenizer.decode(output_ids[index:], skip_special_tokens=True).strip("\n")
print("thinking content:", thinking_content)
print("content:", content)To serve it as an API endpoint, use SGLang 0.4.6.post1 or newer, or vLLM 0.8.5 or newer.
python -m sglang.launch_server --model-path Qwen/Qwen3-1.7B --reasoning-parser qwen3
vllm serve Qwen/Qwen3-1.7B --enable-reasoning --reasoning-parser deepseek_r1
| Tool | What it does |
|---|---|
| transformers | Loads the model and runs generation in Python |
| SGLang | Serves the model as an OpenAI-compatible endpoint with a reasoning parser |
| vLLM | Serves the model as an OpenAI-compatible endpoint with a reasoning parser |
| enable_thinking | Switches between thinking and non-thinking mode |
You replace the prompt with "Explain what a hash map is in two sentences." and run the snippet. It prints two parts. First comes the thinking content, then the final content that holds the two-sentence explanation.
If you are new, download the files, run the snippet as it is, and read both printed parts. Then set enable_thinking to False and compare how the reply changes.
Experts get a causal language model with 28 layers, 16 query heads and 8 key-value heads (GQA), about 1.4B non-embedding parameters and a 32,768 token context. If you see endless repetition, the card advises its recommended sampling settings and a presence_penalty of 1.5.
A compact 1.7B chat model that switches between a thinking mode for reasoning and a quick mode for dialogue. Suits developers who want a small open model for chat, translation and agent features.
Made by Qwen on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Qwen3-1.7B is a compact chat model from Qwen with about 1.7 billion parameters, built on Qwen3-1.7B-Base. One model covers two modes. Thinking mode works through math, logic and code step by step, and non-thinking mode gives quick replies for everyday dialogue.
Who it suits: Developers who want a small open model that runs on ordinary hardware, and people building chat, translation or agent features that need to stay light. It also suits learners who want to see how a thinking switch works.
Industry | Who uses it | How they use it | Example
Software | App developers | Run a small chat model inside an app | Add a local assistant to a tool
Developer tools | Agent builders | Let the model call external tools | Connect it to an API endpoint through vLLM
Education | Students and teachers | Study reasoning with the thinking switch | Compare answers with thinking on and off
Localization | Multilingual teams | Translate and follow instructions in many languages | Draft short translations for review
Anyone who needs the strongest answers on hard problems can skip it, since larger Qwen3 models exist.
Where to use it:
Use case | Who | What they get back
Local chat assistant | Developers | Replies generated on your own machine
Step by step reasoning | Students and developers | A thinking section followed by the final answer
Tool-using agents | Agent builders | Calls to external tools in both modes
Translation | Multilingual users | Text in more than 100 languages and dialects
How to set it up:
pip install -U huggingface_hub
hf download Qwen/Qwen3-1.7B
How to use it: Load the tokenizer and model, build a chat message, and let the model generate. The enable_thinking flag switches between thinking and non-thinking mode. The code then splits the thinking text from the final answer by finding the end-of-thinking token.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen3-1.7B"
# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# prepare the model input
prompt = "Give me a short introduction to large language model."
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=True # Switches between thinking and non-thinking modes. Default is True.
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
# conduct text completion
generated_ids = model.generate(
**model_inputs,
max_new_tokens=32768
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
# parsing thinking content
try:
# rindex finding 151668 (</think>)
index = len(output_ids) - output_ids[::-1].index(151668)
except ValueError:
index = 0
thinking_content = tokenizer.decode(output_ids[:index], skip_special_tokens=True).strip("\n")
content = tokenizer.decode(output_ids[index:], skip_special_tokens=True).strip("\n")
print("thinking content:", thinking_content)
print("content:", content)
To serve it as an API endpoint, use SGLang 0.4.6.post1 or newer, or vLLM 0.8.5 or newer.
python -m sglang.launch_server --model-path Qwen/Qwen3-1.7B --reasoning-parser qwen3
vllm serve Qwen/Qwen3-1.7B --enable-reasoning --reasoning-parser deepseek_r1
Tool | What it does
transformers | Loads the model and runs generation in Python
SGLang | Serves the model as an OpenAI-compatible endpoint with a reasoning parser
vLLM | Serves the model as an OpenAI-compatible endpoint with a reasoning parser
enable_thinking | Switches between thinking and non-thinking mode
Example: You replace the prompt with "Explain what a hash map is in two sentences." and run the snippet. It prints two parts. First comes the thinking content, then the final content that holds the two-sentence explanation.
For newcomers and experts: If you are new, download the files, run the snippet as it is, and read both printed parts. Then set enable_thinking to False and compare how the reply changes.
Experts get a causal language model with 28 layers, 16 query heads and 8 key-value heads (GQA), about 1.4B non-embedding parameters and a 32,768 token context. If you see endless repetition, the card advises its recommended sampling settings and a presence_penalty of 1.5.
You build a chat message
The template sets thinking on or off
The model generates tokens
The code splits thinking from the answer
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download Qwen/Qwen3-1.7B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 7 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen3-1.7B This page | 3,203,490 | 618 | 2B | apache-2.0 | |
| Qwen3-0.6BShares qwen3 · text-generation · conversational | 19,718,599 | 1,894 | 752M | apache-2.0 | |
| Qwen3-14BShares qwen3 · text-generation · conversational | 12,965,376 | 540 | 14.8B | apache-2.0 | |
| Qwen3-8BShares qwen3 · text-generation · conversational | 6,269,141 | 2,184 | 8.2B | apache-2.0 | |
| Qwen3-4BShares qwen3 · text-generation · conversational | 3,186,531 | 798 | 4B | apache-2.0 | |
| Qwen3-4B-Instruct-2507Shares qwen3 · text-generation · conversational | 2,592,168 | 1,053 | 4B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…