#110 · Primary category: Foundation Models
Phi2-mini-Chinese
Phi2-Chinese-0.2B 从0开始训练自己的Phi2中文小模型,支持接入langchain加载本地知识库做检索增强生成RAG。Training your own Phi2 small chat model from scratch.
Project last updated:07/11/24
GitHub Stars
591
Forks
66
Contributors
2
License
Apache-2.0
Why we included this project
This 0.2B-parameter Chinese model follows the Phi-2 architecture, but the real draw is that the repo documents the whole training journey rather than just shipping a checkpoint. You get the data cleaning steps, BPE tokenizer training, causal language model pretraining, supervised instruction tuning, and DPO preference optimization, each laid out in sequence. The Hugging Face weights load directly for Chinese text generation, and there is a notebook that shows hooking the model into a local knowledge base through LangChain for retrieval-augmented question answering. The authors are upfront that this is an experimental project with limited pretraining data, so treat it as a hands-on starting point for training your own small model rather than a production assistant.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MiniCPM-V
A Pocket-Sized MLLM for Ultra-Efficient Image and Video Understanding on Your Phone
generative-models
Generative Models by Stability AI
unilm
Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities