Phi2-mini-Chinese
Phi2-mini-Chinese is an open-source experimental project for training a small Chinese Phi2 model from scratch, with the model named Phi2-Chinese-0.2B. The project open-sources the code and model weights, and supports integration with LangChain to load a local knowledge base for retrieval-augmented generation (RAG). The main contents include data cleaning, Tokenizer training, CLM causal model pretraining, SFT fine-tuning, DPO preference optimization, and a LangChain RAG integration example. The project is experimental in nature, has relatively little pretraining data, and may change at any time. For better results, refer to ChatLM-mini-Chinese.