wdndev's picture
update model
d0860e6

A newer version of the Streamlit SDK is available: 1.44.1

Upgrade
metadata
title: Tiny Llm Sft 92m Demo
emoji: 🏃
colorFrom: gray
colorTo: purple
sdk: streamlit
sdk_version: 1.33.0
app_file: app.py
pinned: false

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Tiny LLM 92M SFT

简介

本项目wdndev/tiny-llm-zh (github.com)旨在构建一个小参数量的中文语言大模型,用于快速入门学习大模型相关知识。

模型架构:整体模型架构采用开源通用架构,包括:RMSNorm,RoPE,MHA等

实现细节:实现大模型两阶段训练及后续人类对齐,即:预训练(PTM) -> 指令微调(SFT) -> 人类对齐(RLHF, DPO) -> 测评。

注意:因资源限制,本项目的第一要务是走通大模型整个流程,而不是调教比较好的效果,故评测结果分数较低,部分生成结构错误。

模型细节

大约在9B的中文预料中训练,主要包含百科内容,模型架构采用开源通用架构,包括:RMSNorm,RoPE,MHA等。

环境

只需要安装 transformers streamlit即可运行

快速开始

streamlit run .\app.py