cs-552-2026-vibe-trainers/math_model

Hugging Face
TEXT GENERATIONConcurrency Cost:1Model Size:2BQuant:BF16Ctx Length:32kPublished:May 13, 2026License:apache-2.0Architecture:Transformer Open Weights Warm

Qwen3-1.7B is a 1.7 billion parameter causal language model developed by Qwen, featuring a unique capability to seamlessly switch between a 'thinking mode' for complex logical reasoning, math, and coding, and a 'non-thinking mode' for efficient general-purpose dialogue. This model significantly enhances reasoning capabilities in mathematics, code generation, and commonsense logic, while also excelling in human preference alignment for creative writing and multi-turn dialogues. It supports over 100 languages and dialects and demonstrates strong agent capabilities for tool integration. The model has a context length of 32,768 tokens.

Loading preview...

Qwen3-1.7B: A Dual-Mode Language Model

Qwen3-1.7B is a 1.7 billion parameter causal language model from the Qwen series, designed for advanced reasoning and versatile conversational applications. Its standout feature is the ability to dynamically switch between two operational modes:

Key Capabilities

  • Thinking Mode: Optimized for complex logical reasoning, mathematical problem-solving, and code generation, offering enhanced performance in these domains.
  • Non-Thinking Mode: Provides efficient, general-purpose dialogue and instruction following, aligning with the functionality of previous Qwen2.5-Instruct models.
  • Superior Human Preference Alignment: Excels in creative writing, role-playing, and multi-turn conversations, delivering engaging user experiences.
  • Advanced Agent Capabilities: Integrates precisely with external tools, achieving leading performance in complex agent-based tasks among open-source models.
  • Multilingual Support: Supports over 100 languages and dialects with strong capabilities for instruction following and translation.

Usage and Best Practices

Developers can control the model's thinking behavior via an enable_thinking switch in the tokenizer, or dynamically within user prompts using /think and /no_think tags. Optimal sampling parameters are recommended for each mode to prevent performance degradation or repetitions. For thinking mode, Temperature=0.6 and TopP=0.95 are suggested, while non-thinking mode benefits from Temperature=0.7 and TopP=0.8. The model is also highly capable for agentic use, with recommendations to leverage Qwen-Agent for simplified tool integration.