Downloads · 30 days
7
7% of all-time downloads
TerenceLau/sparrow
sparrow is a machine learning model from TerenceLau. 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 mit.
Downloads · 30 days
7
7% of all-time downloads
All-time downloads
107
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin204 MB · 99%
From the Hugging Face model README
麻雀虽小 五脏俱全
Small as it is, the sparrow has all the vital organs
<image src="https://raw.githubusercontent.com/TerenceLiu98/sparrow/master/.github/sparrow.png" width="300" /> </div>For more detail pleace check: Sparrow
To run the model, first download the code from huggingface:
git clone https://huggingface.co/TerenceLau/sparrow && cd ./sparrow/
then, you can register the SparrowConfig and SparrowModel to AutoConfig and AutoModelForCausalLM:
from modelling_sparrow import SparrowModelForCausalLM, SparrowConfig
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
AutoConfig.register("sparrow", SparrowConfig)
AutoModelForCausalLM.register(SparrowConfig, SparrowModelForCausalLM)
model = AutoModelForCausalLM.from_pretrained("TerenceLau/sparrow")