#4141st of 42 in Open models

chinese-llama-alpaca-2

Llama-2 models with extended Chinese vocabulary, plus training scripts

Stars
7.1k
License
Apache-2.0
Last commit
Apr 2026
Last release
Jan 2024
Language
Python

Missed the latest GitHub check; these facts may be older.

Overview

Releases Chinese-LLaMA-2 base and Chinese-Alpaca-2 instruction models (1.3B, 7B, 13B) built on Llama-2, with a 55,296-token Chinese vocabulary and incremental pretraining on 120 GB of Chinese text. Long-context variants reach 16K (PI) and 64K (YaRN), and RLHF versions exist for 1.3B and 7B. Includes pretraining and fine-tuning scripts and guides for llama.cpp, transformers, vLLM and LangChain.

Who it is for: Engineers needing open Chinese-capable Llama-2 models or a fine-tuning recipe

Strengths

  • Full, LoRA, GGUF and AWQ weights published on Hugging Face and ModelScope
  • Context options of 4K, 16K and 64K, with NTK extension beyond that
  • Pretraining and instruction-tuning scripts included, with FlashAttention-2 support
  • Documented paths for llama.cpp, transformers, vLLM, text-generation-webui and LangChain

Weaknesses

  • Superseded: README recommends upgrading to the Llama-3-based Chinese-LLaMA-Alpaca-3
  • Last release was 2024-01-23 (v4.1)
  • LoRA weights cannot be used alone and must be merged with original Llama-2
  • Vocabulary differs from first-generation models, so the two cannot be mixed

What it needs

  • GPU optional
  • Needs Llama-2 base weights (for LoRA merge), transformers, llama.cpp
  • Models: Chinese-LLaMA-2, Chinese-Alpaca-2, GGUF, AWQ, LoRA

Also in Open models

See all 42
Also in Open models
RankProjectScore
1llmfitRust tool that checks which LLMs fit your RAM, CPU and GPU38.2k starsMIT87 out of 100
2layaSingle-pass multilingual classifier for typed choice, score and yes/no decisions Live demo ↗ (opens in a new tab)33.9k starsApache-2.086 out of 100
3timesfmPretrained time-series foundation model for zero-shot forecasting from Google Research34.7k starsApache-2.076 out of 100
#4speechPyTorch toolkit for training and deploying ASR, TTS and speech LLM models Live demo ↗ (opens in a new tab)18.6k starsApache-2.073 out of 100
#5yueLyrics-to-song model that writes an editable melody and chord score first Live demo ↗ (opens in a new tab)12.5k starsApache-2.069 out of 100