Qwen3-1.7B-Base

Qwen3‑1.7B‑Base is a 1.7‑billion‑parameter causal language model released by the Qwen team. It belongs to the third generation of the Qwen series and is built on the

Qwen 375K downloads apache-2.0 Text Generation
Frameworkstransformerssafetensors
Tagsqwen3text-generationconversational
Downloads
375K
License
apache-2.0
Pipeline
Text Generation
Author
Qwen

Run Qwen3-1.7B-Base locally on a Q4KM hard drive

Experience ultra‑fast, plug‑and‑play inference with Q4KM hard drives pre‑loaded with Qwen3‑1.7B‑Base. The SSDs come with the model already quantised for optimal performance on edge devices. Get this...

Shop Q4KM Drives

Technical Overview

Qwen3‑1.7B‑Base is a 1.7‑billion‑parameter causal language model released by the Qwen team. It belongs to the third generation of the Qwen series and is built on the Hugging Face model card. The model is a dense transformer‑based decoder that predicts the next token in a sequence, making it suitable for a wide range of text‑generation tasks such as chat, code completion, summarisation, and long‑context reasoning.

Key features and capabilities include:

  • Trained on a 36‑trillion‑token corpus covering 119 languages – three times the language coverage of its predecessor Qwen2.5.
  • Three‑stage pre‑training (broad language modeling → reasoning & coding → 32 k token long‑context) that yields strong performance on both short and very long prompts.
  • Global‑batch load‑balancing loss for mixture‑of‑experts (MoE) models and qk layernorm for all models, improving stability at scale.
  • Guided by scaling‑law studies that tune learning‑rate schedules and batch sizes separately for dense and MoE variants.
  • Context window of 32,768 tokens, enabling extensive document‑level understanding and generation.

Architecture highlights:

  • 28 transformer layers with Grouped‑Query Attention (GQA): 16 query heads and 8 key/value heads per layer.
  • 1.4 B non‑embedding parameters (the remaining ~300 M are embedding‑related).
  • Standard causal (autoregressive) masking, making it compatible with the text-generation pipeline in transformers.
  • Implemented in the latest transformers library (≥ 4.51.0) – older versions raise a KeyError: 'qwen3'.

Intended use cases span:

  • Open‑ended chat assistants and conversational agents.
  • Code generation and debugging assistance for multiple programming languages.
  • Multilingual content creation, translation, and summarisation.
  • Long‑document analysis, research assistance, and knowledge‑base Q answering.

Benchmark Performance

For large language models, the most informative benchmarks are:

  • MMLU – multilingual language understanding across 57 subjects.
  • HumanEval – code generation correctness.
  • BIG‑Bench – a suite of diverse reasoning tasks.
  • LongChatEval – performance on extended context windows (up to 32 k tokens).

The Qwen3‑1.7B‑Base technical report (arXiv:2505.09388) reports competitive scores on these suites, often surpassing earlier Qwen2.5 models of similar size by 3‑7 % absolute accuracy on MMLU and achieving a HumanEval pass@1 of ~27 %, which is on par with other 1‑2 B‑parameter models such as LLaMA‑2‑7B‑Chat (but with a much larger context window). The extended 32 k token context translates into a 15‑20 % boost on long‑context tasks compared to 8 k‑token baselines.

These benchmarks matter because they reflect real‑world abilities: multilingual reasoning (MMLU), practical programming (HumanEval), general problem‑solving (BIG‑Bench), and the capacity to keep track of long documents (LongChatEval). Qwen3‑1.7B‑Base’s results demonstrate that a relatively lightweight 1.7 B model can still deliver strong, versatile performance across these dimensions.

Hardware Requirements

VRAM for inference:

  • FP16 (half‑precision) inference typically needs ~3.5 GB of GPU memory.
  • INT8 quantisation can reduce this to ~2 GB with minimal quality loss.
  • For optimal speed on the 32 k token context, a GPU with at least 8 GB VRAM is recommended.

Recommended GPU specifications:

  • NVidia RTX 3060 12 GB, RTX 3070 8 GB, or AMD Radeon RX 6700 XT – all support FP16 and provide sufficient bandwidth for the 32 k context.
  • For high‑throughput serving, consider A100 40 GB or H100 80 GB, which can host multiple concurrent requests and enable tensor‑parallelism.

CPU & storage:

  • Any modern x86_64 CPU (Intel i5‑12600K or AMD Ryzen 5 5600X or) is sufficient for tokenisation and batch handling.
  • Model checkpoint size is ~3.2 GB (safetensors). SSD storage (NVMe preferred) ensures fast loading; a minimum of 5 GB free space is advisable.

Performance characteristics:

  • On a single RTX 3070, the model generates ~45 tokens/second for 32 k context prompts in FP16.
  • Quantised INT8 on the same hardware can reach ~70 tokens/second with a ~10 % drop in perplexity.

Use Cases

The model’s design makes it a solid choice for:

  • Chatbots & virtual assistants – multilingual, long‑turn conversations with up to 32 k token memory.
  • Code assistants – supports coding, debugging, and documentation generation across dozens of languages.
  • Content creation – article drafting, SEO‑optimized copy, and multilingual marketing copy.
  • Research & knowledge‑base query – summarising long papers, extracting key points, and answering detailed questions.

Real‑world examples:

  • A multilingual help‑desk that can answer user queries in 30+ languages without switching models.
  • A code‑review tool that suggests fixes for Python, JavaScript, and Rust snippets in real time.
  • An academic summariser that ingests a 20 k token PDF and produces a concise 500‑word abstract.

Integration possibilities:

  • Deploy via Hugging Face text-generation pipeline or transformers Accelerate for distributed inference.
  • Wrap as an OpenAI‑compatible API endpoint using text-generation-inference (supported as per tags).
  • Fine‑tune on domain‑specific data using LoRA or QLoRA to specialise the base model without full retraining.

Training Details

Methodology:

  • Three‑stage pre‑training:
    • Stage 1 – 12 B tokens of broad language modeling across 119 languages.
    • Stage 2 – 12 B tokens focused on STEM, coding, and logical reasoning.
    • Stage 3 – 12 B tokens with extended context (up to 32 k tokens) to improve long‑range dependencies.
  • Global‑batch load‑balancing loss for MoE variants (though Qwen3‑1.7B‑Base is dense).
  • qk‑layernorm applied to all layers for numerical stability.
  • Learning‑rate schedule and batch size tuned via scaling‑law experiments, separate for dense vs. MoE.

Datasets:

  • 36 trillion tokens sourced from a mix of high‑quality web text, multilingual corpora, code repositories (GitHub, StackOverflow), scientific literature, books, and synthetic data generated by earlier Qwen models.
  • Language coverage includes 119 languages, with a balanced representation of low‑resource languages.

Compute requirements:

  • Training performed on a cluster of NVIDIA A100 40 GB GPUs, estimated at ~2 M GPU‑hours for the full 36 T‑token run.
  • Mixed‑precision (FP16) training with gradient checkpointing to keep memory usage manageable.

Fine‑tuning capabilities:

  • Supports parameter‑efficient fine‑tuning methods such as LoRA, QLoRA, and adapters.
  • Because the base model is released in safetensors format, it can be loaded directly with the latest transformers library (≥ 4.51.0).
  • Fine‑tuning on domain‑specific corpora (e.g., legal contracts, medical notes) can be completed on a single 24 GB GPU within a few hours.

Licensing Information

The model is released under the Apache‑2.0 license, as stated in the README. This permissive license grants:

  • Free use, modification, and distribution of the model weights and code.
  • The right to incorporate the model into commercial products, provided the license text is included.
  • Patent‑grant provisions that protect downstream users from patent claims related to the contributed technology.

Commercial usage is explicitly allowed. Companies can embed Qwen3‑1.7B‑Base in SaaS platforms, on‑device applications, or proprietary services. The only mandatory condition is attribution – a copy of the Apache‑2.0 license must accompany the distributed model or binary, and a notice such as “Based on Qwen3‑1.7B‑Base (Apache‑2.0)” should be displayed.

Restrictions:

  • No trademark usage without permission – the name “Qwen” remains the property of the original authors.
  • Any derivative works must also retain the Apache‑2.0 license (i.e., you cannot re‑license under a more restrictive license).

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives