Downloads · 30 days
11
15% of all-time downloads
mgoin/zephyr-7b-alpha-ds
zephyr-7b-alpha-ds is a text generation model from mgoin. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
11
15% of all-time downloads
All-time downloads
73
Public
Repo size
29 GB
Likes
1
Public
Click a slice to open those files.
.data29 GB · 100%
From the Hugging Face model README
pip install deepsparse-nightly[llm]
from deepsparse import TextGeneration
model = TextGeneration(model="hf:mgoin/zephyr-7b-alpha-ds")
out = model("Once upon a time,", max_new_tokens=100)
print(out.generations[0].text)
### there was a young woman named Lily. She was a kind and gentle soul, with a heart full of love and compassion. Lily had always been fascinated by the natural world, and she spent most of her free time exploring the forests and fields around her home.\n\nOne day, as she was wandering through the woods, Lily stumbled upon a small clearing. In the center of the clearing, she saw a beautiful butterfly fluttering its wings. The butterfly was unlike any she had
Install SparseML with this PR
git clone https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha
sparseml.transformers.export_onnx --model_path ./zephyr-7b-alpha --task text-generation --sequence_length 512 --trust_remote_code
cp deployment/model.onnx deployment/model-orig.onnx
python ~/onnx_kv_inject.py --input-file deployment/model-orig.onnx --output-file deployment/model.onnx