ymcui/chinese-llama-alpaca-2

中文LLaMA-2 & Alpaca-2大模型二期项目 + 64K超长上下文模型 (Chinese LLaMA-2 & Alpaca-2 LLMs with 64K long context models)

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 30 minutes ago
Added to GitGenius on September 9th, 2026
Created on July 18th, 2023
Open Issues & Pull Requests: 6 (+0)
GitHub issues: Enabled
Number of forks: 560
Total Stargazers: 7,119 (+0)
Total Subscribers: 73 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 13.8 hours
Mean response time: 31.5 hours
90th percentile: 6.7 days
Tracked items: 7

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 237 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • stale (8)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Chinese-LLaMA-Alpaca-2 is a collection of large language models adapted for Chinese that extends Meta's Llama-2 architecture with expanded Chinese vocabulary and instruction-following capabilities.

The project addresses the need for high-quality large language models optimized for Chinese language tasks. It builds on Llama-2 by expanding and optimizing the Chinese vocabulary, performing incremental pretraining on large-scale Chinese data to improve Chinese semantic understanding and instruction comprehension. The approach includes multiple model variants: base models with standard 4K context length, long-context versions supporting 16K and 64K context windows, and RLHF-aligned variants trained for human preference alignment. The models support FlashAttention-2 for efficient training and are available in sizes of 1.3B, 7B, and 13B parameters.

Developers should choose this project if they need Chinese language capabilities in a production-ready model or want to fine-tune on Chinese-specific tasks. It suits projects requiring either standard conversational abilities or extended context windows for processing longer documents. The tool integrates with the broader Llama ecosystem, supporting deployment through transformers, llama.cpp, text-generation-webui, LangChain, privateGPT, and vLLM. The project provides pretraining and instruction fine-tuning scripts for further customization, as well as quantization tools for running models locally on consumer hardware.

The project maintains active engagement across multiple communication channels including issues, discussions, and a competitive evaluation arena. Development includes comprehensive documentation and examples demonstrating integration with popular frameworks in the Llama ecosystem. The codebase receives quality monitoring through automated code analysis tools.