Downloads · 30 days
7
8% of all-time downloads
wac81/toy_retnet_1.3b
toy_retnet_1.3b is a fill-mask model from wac81. Use it when you need the model to fill a missing word. It is set up for transformers.
retnet-1.3B-toy 是一个开源模型。主要是为探索模型小型化,测试小数据量训练的最佳效果。
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
84
Public
Repo size
16.1 GB
Likes
2
Public
Click a slice to open those files.
.bin5.4 GB · 100%
From the Hugging Face model README
retnet-1.3B-toy 是一个开源模型。主要是为探索模型小型化,测试小数据量训练的最佳效果。
retnet-1.3B-toy is an open source model.
pip install torch transformers
模型可以完全加载在8GB显卡上,8bit/4bit量化后,理论上可以加载在4GB显卡上
The model can be fully loaded on an 8GB graphics card, and after 8bit or 4bit quantization, it can theoretically be loaded on a 4GB graphics card
sft模型下载后放入checkpoints/checkpoint-21000目录,可以通过如下代码调用 retnet-1.3B-toy 模型来生成对话:
After the sft model is downloaded and put into the checkpoints/checkpoint-21000 directory, you can call the retnet-1.3B-toy model to generate a dialog with the following code:
python generate.py
user:中医如何医治风寒
system:中医的治疗方法主要包括针灸、针灸、推拿、太极拳等。针灸可以帮助人体解毒、调节身体温度,针灸可以刺激人体的血液循环,推拿可以促进血液循环,推拿可以促进血液循环,从而缓解身体不适。针灸可以帮助人体解毒、调节身体温度,推拿可以促进血液循环,从而缓解身体不适。太极拳则可以帮助人体解毒、调节身体温度,推拿可以促进血液循环,从而缓解身体不适。太极拳则可以帮助人体解毒、调节身体温度,推拿可以促进血液循环,
本仓库的代码依照 Apache-2.0 协议开源,retnet-1.3B-toy 模型的权重的使用则需要遵循 Model License。
The code in this repository is open-sourced under the Apache-2.0 license, while the use of the retnet-1.3B-toy model weights needs to comply with the Model License.