Downloads · 30 days
0
TMElyralab/lyraBELLE
lyraBELLE is a machine learning model from TMElyralab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
lyraBELLE is currently the fastest BELLE model available. To the best of our knowledge, it is the first accelerated version of BELLE.
Downloads · 30 days
0
Access
Public
Updated Jun 8, 2023
Repo size
14.4 GB
Likes
3
Public
Click a slice to open those files.
.h514.2 GB · 99%
From the Hugging Face model README
lyraBELLE is currently the fastest BELLE model available. To the best of our knowledge, it is the first accelerated version of BELLE.
The inference speed of lyraBELLE has achieved 3.3x+ acceleration upon the original version.
Among its main features are:
Note that: Some interface/code were set for future uses(see demo below).
fp16 available.| version | speed |
|---|---|
| original | 826.34 tokens/sec |
| lyraBELLE | 2701.71 tokens/sec |
docker pull bigmoyan/lyrallm:v0.1
from lyraBelle import LyraBelle
data_type = "fp16"
prompts = "今天天气大概 25度,有点小雨,吹着风,我想去户外散步,应该穿什么样的衣服裤子鞋子搭配。"
model_dir = "./model"
model_name = "1-gpu-fp16.h5"
max_output_length = 512
# int8 mode not supported, data_type only support fp16
model = LyraBelle(model_dir, model_name, data_type, 0)
output_texts = model.generate(prompts, output_length=max_output_length,top_k=30, top_p=0.85, temperature=0.35, repetition_penalty=1.2, do_sample=True)
print(output_texts)
今天天气大概 25度,有点小雨,吹着风,我想去户外散步,应该穿什么样的衣服裤子鞋子搭配。
建议穿着一件轻便的衬衫或T恤、一条牛仔裤和一双运动鞋或休闲鞋。如果下雨了可以带上一把伞。
@Misc{lyraBELLE2023,
author = {Kangjian Wu, Zhengtao Wang, Bin Wu},
title = {lyraBELLE: Accelerating BELLE by 3x+},
howpublished = {\url{https://huggingface.co/TMElyralab/lyraBELLE},
year = {2023}
}
[bug] mark in the title.