SuperAPI AI Directory

Telechat

TeleChat (Xingchen Semantic Large Model) is a series of large language models developed and open-sourced by China Telecom AI Technology Co., Ltd., offering dialogue models with parameter sizes of 1B, 7B, 12B, etc., as well as int8/int4 quantized versions, supporting tasks such as Chinese-English dialogue, knowledge Q&A, code generation, and mathematical reasoning. The project open-sources Hugging Face format weights, training code (supporting DeepSpeed fine-tuning), 8K long-text extrapolation capability, and provides both API and Web deployment methods. The model adopts a Decoder-only structure, using technologies such as Rotary Embedding, SwiGLU, and RMSNorm, and performs well on multiple Chinese and English evaluation benchmarks. It also open-sources a Chinese pre-training dataset of approximately 270 million entries, TeleChat-PTD.

Open website

About this tool

Usage

TeleChat is an open-source series of large language models, mainly used for natural language processing tasks such as Chinese-English dialogue, knowledge Q&A, code generation, mathematical reasoning, and long-form writing. The model offers three parameter sizes: 1B, 7B, and 12B, and includes int8 and int4 quantized versions, suitable for deployment and secondary development under different computing power conditions.

Main Capabilities

  • Multi-turn dialogue: Supports multi-turn interaction, and open-sources the multi-turn data construction method and the mask loss method for multi-turn training.
  • Long-form generation: Based on the 8K training version, it adopts NTK-aware and attention scaling extrapolation methods, which can extrapolate to a 96K context, suitable for long-form tasks such as work summaries, plans, PPT outlines, essay exams, bidding documents, emails, proposals, weekly reports, and JD writing.
  • Evaluation performance: Evaluated on datasets such as MMLU, C-Eval, CMMLU, AGIEval, GAOKAO, GSM8K, MATH, HumanEval, and CHID, covering capabilities such as natural language understanding, knowledge, mathematical computation and reasoning, and code generation.
  • Quantization support: Provides Int8 and Int4 quantized models based on AutoGPTQ.
  • Hardware adaptation: Supports Ascend Atlas 300I Pro inference cards (int8 quantization) and Ascend Atlas 800T A2 training servers (MindSpore and PyTorch frameworks).

How to Use

  • Obtaining the model: Download weight files through platforms such as Hugging Face and ModelScope.
  • Deployment: Provides two deployment methods: API (streaming interface and json interface, supporting passing inference parameters) and Web (supporting streaming generation and multi-turn dialogue); currently a single-card single-concurrency demonstration scenario.
  • Fine-tuning: Open-sources training code based on DeepSpeed, supports Zero parallel memory optimization, and integrates FlashAttention2; provides full-parameter fine-tuning scripts, supporting single-machine multi-card and multi-machine training (hostfile needs to be specified).
  • Data processing: Configure data weights through data.json, run process_data.py to convert data into tokens, and load the generated .pt files during training.

Applicable Scenarios

Suitable for scenarios requiring an open-source Chinese large model for dialogue application development, academic research, and enterprise customized fine-tuning, especially for users concerned with domestic hardware (Ascend) adaptation and long-text processing.

Limitations

  • The current deployment method only provides a simple single-card single-concurrency scenario, for demonstration and performance testing.
  • Although the model training data has undergone compliance processing, unforeseen issues may still exist; users must abide by the principles of legality and compliance when using it, and must not use it for activities that endanger social security or are illegal, nor for internet services without security review and filing.
  • The performance data of the quantized versions and hardware adaptation are based on specific configurations, and actual performance may vary depending on the environment.