transformers vs Chinese-LLaMA-Alpaca-2

A neutral, constraint-first comparison - live GitHub stats and typed relationships, not marketing.

transformersChinese-LLaMA-Alpaca-2
Tagline🤗 Transformers: the model-definition framework for state-of-the-art machine learning models中文LLaMA-2 & Alpaca-2大型语言模型项目,支持64K超长上下文
Stars162k7.1k
Forks34k564
Open issues2.5k6
LanguagePythonPython
LicenseApache-2.0Apache-2.0
Last pushedJul 7, 2026Apr 19, 2026
CategoriesModel Training, Data & Retrieval, LLM FrameworksModel Training, LLM Frameworks

transformers

Repo hosts a Python library and framework for NLP, text, audio, vision, multimodal AI model creation, training and inference using PyTorch.

Python

Chinese-LLaMA-Alpaca-2

该项目基于Llama-2开发了优化过的中文模型,提供改进的中文词表和大规模预训练数据。扩展版本包括FlashAttention加速、更长的上下文长度(16K及64K)以及偏好对齐指令调整。

Python