Skip to content

silver

chatglm-6b-slim

silver/chatglm-6b-slim

chatglm-6b-slim is a machine learning model from silver. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.

ChatGLM-6B-Slim是在ChatGLM-6B的基础上通过裁剪词表构建的。因为ChatGLM-6B使用了icetk,在其词表中,前20000个token是预留给图片的,在文本模型中没有用到这些图片token,但是在infer和微调的时候,这些token对应的embedding依然需要被加载,并且在解码每一个token的时候需要多计算20K个logits,会占用不少显存。因此将这一部分token裁剪掉以节省显存。

Downloads · 30 days

85

2% of all-time downloads

All-time downloads

4.8K

Public

Repo size

30.3 GB

Likes

44

Public

Hugging Face

Repo makeup

Click a slice to open those files.

.bin13.7 GB · 100%

At a glance

Library
transformers
Model type
chatglm
Access
Public
Created
Mar 18, 2023
Updated
Apr 3, 2023
SHA
0d1d6a60
Library
transformers
Type
chatglm
Languages
zh, en
Created
Mar 18, 2023
Updated
Apr 3, 2023