Downloads · 30 days
11
19% of all-time downloads
RichardErkhov/Langboat_-_bloom-1b4-zh-4bits
Langboat_-_bloom-1b4-zh-4bits is a text generation model from RichardErkhov. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
11
19% of all-time downloads
All-time downloads
58
Public
Parameters
1.3B
870 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors870 MB · 100%
How the weights are stored.
U81.2B · 91%
From the Hugging Face model README
Quantization made by Richard Erkhov.
bloom-1b4-zh - bnb 4bits
license: bigscience-bloom-rail-1.0 language:
This model is based on bigscience/bloom-1b7.
We pruned its vocabulary from 250880 to 46145 with Chinese corpus to reduce GPU memory usage. So the total parameter is 1.4b now.
from transformers import BloomTokenizerFast, BloomForCausalLM
tokenizer = BloomTokenizerFast.from_pretrained('Langboat/bloom-1b4-zh')
model = BloomForCausalLM.from_pretrained('Langboat/bloom-1b4-zh')
print(tokenizer.batch_decode(model.generate(tokenizer.encode('中国的首都是', return_tensors='pt'))))