Mindket

Qwen3-1.7B

新上架第 1 版 · 更新于

概览

一个紧凑的 1.7B 聊天模型,可在用于推理的思考模式和用于对话的快速模式之间切换。适合想用小型开放模型做聊天、翻译和智能体功能的开发者。

Qwen3-1.7B 是一款工具包,属于开发类,由 Mindket 上架。可免费获取。当前为第 1 版,最近更新于 。在本页下载,是一个装着它全部文件的 zip 压缩包。这些文件不会自己运行。

速览

你需要
  • 安装好 Python 和 pip
  • 较新的 transformers,低于 4.51.0 的版本会报 KeyError
  • 足够放下权重的内存,BF16 约 4.1 GB,4-bit 约 1 GB(估算值)
用在
  • Windows、macOS 或 Linux 上使用 transformers 库的 Python 脚本
  • SGLang 和 vLLM,它们可以把模型作为兼容 OpenAI 的 API 端点提供服务
  • Ollama 和 llama.cpp,用来在本地运行
  • LMStudio、MLX-LM 和 KTransformers,它们也已支持 Qwen3
先运行
pip install -U huggingface_hub
hf download Qwen/Qwen3-1.7B

平台

Windows操作系统
macOS操作系统
Linux操作系统

关于

它是什么

Qwen3-1.7B 是 Qwen 推出的紧凑聊天模型,约有 17 亿参数,基于 Qwen3-1.7B-Base 构建。一个模型涵盖两种模式。思考模式会一步步处理数学、逻辑和代码,非思考模式则为日常对话给出快速回复。

适合谁

适合想在普通硬件上运行小型开放模型的开发者,也适合开发聊天、翻译或智能体功能、又希望保持轻量的人。想了解思考开关如何工作的学习者同样适合。

IndustryWho uses itHow they use itExample
软件应用开发者在应用里运行小型聊天模型给工具加一个本地助手
开发者工具智能体开发者让模型调用外部工具通过 vLLM 接入 API 端点
教育学生和老师用思考开关研究推理过程对比开启和关闭思考的回答
本地化多语言团队用多种语言翻译并遵循指令起草简短译文供审阅

如果你需要在难题上得到最强的回答,可以跳过它,因为还有更大的 Qwen3 模型。

用在哪里

  • Windows、macOS 或 Linux 上使用 transformers 库的 Python 脚本
  • SGLang 和 vLLM,它们可以把模型作为兼容 OpenAI 的 API 端点提供服务
  • Ollama 和 llama.cpp,用来在本地运行
  • LMStudio、MLX-LM 和 KTransformers,它们也已支持 Qwen3
Use caseWhoWhat they get back
本地聊天助手开发者在你自己机器上生成的回复
分步推理学生和开发者一段思考内容,后面跟着最终答案
使用工具的智能体智能体开发者两种模式下都能调用外部工具
翻译多语言用户支持 100 多种语言和方言的文本

如何设置

  • 安装好 Python 和 pip
  • 较新的 transformers,低于 4.51.0 的版本会报 KeyError
  • 足够放下权重的内存,BF16 约 4.1 GB,4-bit 约 1 GB(估算值)
  1. 安装 Hugging Face hub 包。
  2. 下载模型文件。
  3. 更新 transformers,然后用下面的代码加载模型。
pip install -U huggingface_hub
hf download Qwen/Qwen3-1.7B

如何使用

加载分词器和模型,构造一条聊天消息,让模型生成回复。enable_thinking 参数用来在思考和非思考模式之间切换。代码随后通过查找思考结束标记,把思考文字和最终答案分开。

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)

如果要把它作为 API 端点提供服务,请使用 SGLang 0.4.6.post1 或更新版本,或者 vLLM 0.8.5 或更新版本。

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
ToolWhat it does
transformers在 Python 里加载模型并运行生成
SGLang把模型作为带推理解析器、兼容 OpenAI 的端点提供服务
vLLM把模型作为带推理解析器、兼容 OpenAI 的端点提供服务
enable_thinking在思考和非思考模式之间切换

示例

你把提示词换成 "Explain what a hash map is in two sentences.",再运行这段代码。它会打印两部分。先是思考内容,然后是包含两句话解释的最终内容。

新手与专家

如果你刚接触,先下载文件,原样运行代码,读一读打印出的两部分。然后把 enable_thinking 改成 False,对比回复有什么变化。

专家会看到一个因果语言模型:28 层、16 个查询头和 8 个键值头(GQA),非嵌入参数约 1.4B,上下文 32,768 词元。如果出现无休止的重复,模型卡建议使用它推荐的采样设置,并把 presence_penalty 设为 1.5。

  1. 你构造一条聊天消息
  2. 模板设定开启或关闭思考
  3. 模型生成词元
  4. 代码把思考内容和答案分开

注意事项

  • Context: 32,768 词元
  • Repetition: 如果输出无休止重复,就把 presence_penalty 设为 1.5
  • License: Apache 2.0
  • Cost to run: 未提及,不需要 API 密钥或账号,只需要内存足够的硬件
  • Data it reaches: 会从 Hugging Face 下载模型文件,之后在你自己的机器上生成内容
  • Not for: 来源没有列出禁止用途,这么小的模型不太适合最难的任务

README 和文件

README

Qwen3-1.7B

一个紧凑的 1.7B 聊天模型,可在用于推理的思考模式和用于对话的快速模式之间切换。适合想用小型开放模型做聊天、翻译和智能体功能的开发者。

由 Qwen 在 Hugging Face 上制作。这些说明是 Mindket 根据它的模型页面和模型卡写的,模型自己的文件和许可证在 Hugging Face 上。

简介

它是什么:Qwen3-1.7B 是 Qwen 推出的紧凑聊天模型,约有 17 亿参数,基于 Qwen3-1.7B-Base 构建。一个模型涵盖两种模式。思考模式会一步步处理数学、逻辑和代码,非思考模式则为日常对话给出快速回复。

适合谁:适合想在普通硬件上运行小型开放模型的开发者,也适合开发聊天、翻译或智能体功能、又希望保持轻量的人。想了解思考开关如何工作的学习者同样适合。

Industry | Who uses it | How they use it | Example
软件 | 应用开发者 | 在应用里运行小型聊天模型 | 给工具加一个本地助手
开发者工具 | 智能体开发者 | 让模型调用外部工具 | 通过 vLLM 接入 API 端点
教育 | 学生和老师 | 用思考开关研究推理过程 | 对比开启和关闭思考的回答
本地化 | 多语言团队 | 用多种语言翻译并遵循指令 | 起草简短译文供审阅

如果你需要在难题上得到最强的回答,可以跳过它,因为还有更大的 Qwen3 模型。

用在哪里:

  • Windows、macOS 或 Linux 上使用 transformers 库的 Python 脚本
  • SGLang 和 vLLM,它们可以把模型作为兼容 OpenAI 的 API 端点提供服务
  • Ollama 和 llama.cpp,用来在本地运行
  • LMStudio、MLX-LM 和 KTransformers,它们也已支持 Qwen3
Use case | Who | What they get back
本地聊天助手 | 开发者 | 在你自己机器上生成的回复
分步推理 | 学生和开发者 | 一段思考内容,后面跟着最终答案
使用工具的智能体 | 智能体开发者 | 两种模式下都能调用外部工具
翻译 | 多语言用户 | 支持 100 多种语言和方言的文本

如何设置:

  • 安装好 Python 和 pip
  • 较新的 transformers,低于 4.51.0 的版本会报 KeyError
  • 足够放下权重的内存,BF16 约 4.1 GB,4-bit 约 1 GB(估算值)
  1. 安装 Hugging Face hub 包。
  2. 下载模型文件。
  3. 更新 transformers,然后用下面的代码加载模型。
pip install -U huggingface_hub
hf download Qwen/Qwen3-1.7B

如何使用:加载分词器和模型,构造一条聊天消息,让模型生成回复。enable_thinking 参数用来在思考和非思考模式之间切换。代码随后通过查找思考结束标记,把思考文字和最终答案分开。

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)

如果要把它作为 API 端点提供服务,请使用 SGLang 0.4.6.post1 或更新版本,或者 vLLM 0.8.5 或更新版本。

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 | 在 Python 里加载模型并运行生成
SGLang | 把模型作为带推理解析器、兼容 OpenAI 的端点提供服务
vLLM | 把模型作为带推理解析器、兼容 OpenAI 的端点提供服务
enable_thinking | 在思考和非思考模式之间切换

示例:你把提示词换成 "Explain what a hash map is in two sentences.",再运行这段代码。它会打印两部分。先是思考内容,然后是包含两句话解释的最终内容。

新手与专家:如果你刚接触,先下载文件,原样运行代码,读一读打印出的两部分。然后把 enable_thinking 改成 False,对比回复有什么变化。

专家会看到一个因果语言模型:28 层、16 个查询头和 8 个键值头(GQA),非嵌入参数约 1.4B,上下文 32,768 词元。如果出现无休止的重复,模型卡建议使用它推荐的采样设置,并把 presence_penalty 设为 1.5。

你构造一条聊天消息
模板设定开启或关闭思考
模型生成词元
代码把思考内容和答案分开

注意事项:

  • Context: 32,768 词元
  • Repetition: 如果输出无休止重复,就把 presence_penalty 设为 1.5
  • License: Apache 2.0
  • Cost to run: 未提及,不需要 API 密钥或账号,只需要内存足够的硬件
  • Data it reaches: 会从 Hugging Face 下载模型文件,之后在你自己的机器上生成内容
  • Not for: 来源没有列出禁止用途,这么小的模型不太适合最难的任务

Hugging Face 上的数据(2026年11月13日)

  • 任务:text generation
  • 框架:transformers
  • 参数量:2B
  • Weights: about 4.1 GB in BF16; about 1 GB at 4-bit (estimate)
  • Formats: Safetensors
  • 最近 30 天下载:3,203,490
  • 点赞:618
  • 许可证:apache-2.0
  • 基于:Qwen/Qwen3-1.7B-Base
  • Quantized versions: 497
  • Fine-tunes: 1,399
  • 标签:transformers, safetensors, qwen3, text-generation, conversational

链接

  • 模型:https://huggingface.co/Qwen/Qwen3-1.7B
  • 文件:https://huggingface.co/Qwen/Qwen3-1.7B/tree/main

获取模型

用 Hugging Face 的命令行下载它的文件:

pip install -U huggingface_hub
hf download Qwen/Qwen3-1.7B

然后按它的模型卡使用它。这个工具包里没有会自己运行的东西。

文件
README.md  7 KB

1 个文件,共 7 KB,以 zip 压缩包下载。

更新内容

  • 第 1 版 · 2026-11-13

同类产品对比

同一分类里与本产品共有标签最多的已上架 Hugging Face 模型。

产品最近 30 天下载点赞参数量许可证最近更新
Qwen3-1.7B 本页3,203,4906182Bapache-2.0
Qwen3-0.6B共有 qwen3 · text-generation · conversational19,718,5991,894752Mapache-2.0
Qwen3-14B共有 qwen3 · text-generation · conversational12,965,37654014.8Bapache-2.0
Qwen3-8B共有 qwen3 · text-generation · conversational6,269,1412,1848.2Bapache-2.0
Qwen3-4B共有 qwen3 · text-generation · conversational3,186,5317984Bapache-2.0
Qwen3-4B-Instruct-2507共有 qwen3 · text-generation · conversational2,592,1681,0534Bapache-2.0
数据为 Mindket 在 2026-11-12 至 2026-11-13 期间读取的数值。

评价

还没有评分

写评价

还没有评价。

大家怎么说

Hacker News、Bluesky、X、Reddit、Facebook 和 YouTube 上提到这个项目的帖子和评论,来自每周一次的搜索和 Trendshift。它们不是 Mindket 写的,也未经核实,点开即可在原帖处阅读。

teendifferentBypassing Gemma and Qwen safety with raw stringsOP here. I spent the weekend red-teaming small-scale open weights models (Qwen2.5-1.5B, Qwen3-1.7B, Gemma-3-1b-it, and SmolLM2-1.7B). I found a consistent vulnerability across all of them: Safety alignment relies almost entirely on the presence of the chat template. When I stripped the…140 分 · 46 条回复LLMsShow HN: Selora – local model for Home Assistant Selora AI Local is an open-source, Qwen-based model for Home Assistant. Specs: Qwen3 1.7B base model (Q6 quantized~1.6GB) Four Home Assistant-spec... Origin | Interest | Match1 赞baysharkShow HN: Selora – local model for Home AssistantSelora AI Local is an open-source, Qwen-based model for Home Assistant. Specs: Qwen3 1.7B base model (Q6 quantized~1.6GB) Four Home Assistant-specific LoRA adapters: - Answers - Clarifications - Automations - Commands ~3.5 GB total download size Runs locally via llama.cpp We chose a Qwen-based…7 分 · 4 条回复@aichina.newsNo benchmarks, no chat template, no stated purpose: a file upload wearing a model card. Apache-2.0, ~1.7B, likely Qwen3 base. Hard to see it displacing Qwen3-1.7B-Instruct in a local stack unless the stock Qwen template works out of the box. *(241 graphemes. Qualifier still leads on the 2/10...verdvermTwo Qwen3 models on one DGX Spark: the residency mathI have tried llama-cpp, vllm is nicer (ray, handles queueing, doesn't have the cache invalidation bug for qwen/gemma models) and unsloth has toxic employees in their discord. I've run 2 qwen/gemma @8bit with full context window side-by-side. Right now I have 4 models on my spark (qwen36moe,…@aichina.newsA 950M model reportedly matching Qwen3-1.7B on maths, shipped as GGUF — laptop-ready. But it's a community re-upload under a non-commercial FAIR licence, thin model card, provenance and quant quality unverified. Can't see this replacing a fine-tuned Qwen in production yet.g023Show HN: Standalone TurboQuant KV Cache InferenceA single file, python based, minimal/recognizable dependencies, turboquant playground, barebones af, with some easy to access globals to experiment with at top of 'run_tquant.py'. Test model is a 1.77B model that I altered by duplicating a layer in a Qwen3 1.7B model. Probably work fine with the…@aichina.newsA 1.5B reasoning model on CPU via llama.cpp is the size class edge inference wants. But the model card ships no benchmarks and the licence reads 'other'. Qwen3-1.7B keeps this tier until NVIDIA publishes evals and legal clears the terms. *(237 graphemes. Same reader — the practitioner weighing...hbbioQwen3: Think deeper, act fasterThanks, /nothink works! So, Qwen3 1.7b is about the same speed just slightly worse than Gemma3 4b which is pretty impressive. Qwen3 4b passes all 200 tests and is much faster than Mistral Small 3.1 24b or Gemma3 27b.Don Trueten :antifa:Sobald es komplexer wird, reicht Qwen3 1.7B nicht mehr. Und tschüß. Welcome to the jungle, Qwen3 4B

搜索日期

Mindket 的更多商品

查看 Mindket 的全部商品

anaksor-ocr

Sokheng · 工具包

这个模型从文档、收据和路牌照片里读取高棉语和英语文字,用一个检测器找文本行,再用识别器读每一行。适合需要在 Python 里做高棉语 OCR 的开发者。

新上架

Qwen2.5-7B-Instruct-GGUF

Qwen · 工具包

Qwen2.5-7B-Instruct 的 GGUF 文件,提供八种量化大小,可通过 llama.cpp 在本地聊天。适合想在自己电脑上用 7.6B 强力模型、又不想搭 Python 环境的人。

新上架

ACE-Step 1.5 XL SFT

ACE-Step · 工具包

用 4B 扩散解码器根据文字生成音乐,50 步并带引导控制,音频质量高于基础版。适合拥有 12 GB 或更多显存 GPU 的创作者。

新上架

开发类的相似商品

查看开发类的全部商品

Claude Code Skills & Plugins

alirezarezvani · 技能

为 Claude Code 和其他编程智能体提供 411 个现成技能,按角色分组,从工程、产品到营销、财务和合规。以插件方式安装。适合开发者和业务团队。

新上架29.8k

buzz

block · 工具包

可自行托管的工作空间,人和 AI 智能体在同样的房间里协作,基于 Nostr 中继,把每个动作记录为签名事件。适合想自己运行中继的团队。

新上架37.3k

plannotator

backnotprop · 工具包

把你的 AI 编程智能体的计划、规格和代码改动在浏览器里打开,让你加批注或评论,并把反馈直接发回给智能体。

新上架10.5k