Qwen/Qwen-7B

TEXT GENERATIONConcurrent Unit Cost:1Model Size:7BQuant:FP8Context Size:32kPublished:Aug 3, 2023License:otherArchitecture:Transformer0.4K Featherless Exclusive Cold

Qwen-7B is a 7-billion parameter Transformer-based large language model developed by Alibaba Cloud, pretrained on over 2.4 trillion tokens including diverse data like web texts, books, and code. It features a comprehensive 150K+ token vocabulary optimized for multilingual support and achieves competitive performance across various Chinese and English benchmarks, including reasoning, code, and mathematics. This model is designed for general-purpose language understanding and generation tasks, offering strong scalability and efficiency.

Loading preview...

Qwen-7B Overview

Qwen-7B is a 7-billion parameter Transformer-based large language model developed by Alibaba Cloud, part of the Qwen (Tongyi Qianwen) series. It is pretrained on an extensive corpus of over 2.4 trillion tokens, encompassing a wide range of data types including web texts, books, code, and mathematics, with optimized distribution for high quality.

Key Capabilities & Features

  • Competitive Performance: Outperforms similarly sized open-source models on multiple Chinese and English evaluation tasks, including commonsense reasoning, code generation, and mathematical problem-solving. It even competes with some larger models in certain benchmarks.
  • Multilingual Vocabulary: Utilizes a comprehensive vocabulary of over 150,000 tokens, based on tiktoken, which is optimized for efficient encoding of Chinese, English, and code, while also being highly friendly to numerous other languages (e.g., Thai, Hebrew, Arabic, Korean, Japanese, etc.). This enhances scalability and training/inference efficiency for multilingual applications.
  • Advanced Architecture: Incorporates modern architectural choices such as RoPE relative position encoding, SwiGLU activation function, and RMSNorm. It also supports Flash Attention 2 for improved efficiency and reduced memory usage.
  • Extended Context Length: Through techniques like NTK-aware interpolation, LogN attention scaling, and Window attention, the model's context length has been extended to 32,768 tokens, demonstrating robust performance on long-context tasks.

When to Use This Model

Qwen-7B is suitable for developers seeking a powerful and efficient base language model for:

  • General-purpose NLP tasks: Leveraging its strong performance in reasoning, knowledge, and language understanding.
  • Multilingual applications: Benefiting from its optimized vocabulary and high compression rates across many languages.
  • Code and mathematical tasks: Utilizing its competitive capabilities in these specialized domains.
  • Fine-tuning: As a robust foundation for building specialized AI assistants or applications, with an instruction-tuned chat version also available.