mgoin/zephyr-7b-alpha-ds
By mgoin · ↓ 0 · ♥ 1 · Updated 2023-10-16
What's in this repo
This page lists the files in mgoin/zephyr-7b-alpha-ds, including model-orig.onnx, model.onnx.
- 2 ONNX models (.onnx files)
- 11 files, including 6 .json, 2 .onnx, 1 .md, 1 .data
- Last updated 2023-10-16
ONNX files
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
zephyr-7b-alpha for DeepSparse
Usage
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
How to export from zephyr-7b-alpha
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
Model info
text-generation
transformers
transformers
onnx
mistral
text-generation
deepsparse
conversational
endpoints_compatible
region:us
↓ 0
♥ 1
Created: 2023-10-16
Updated: 2023-10-16
View on Hugging FaceFiles (11)
.gitattributes
README.md
added_tokens.json
config.json
generation_config.json
model-orig.onnx
ONNX
model.data
model.onnx
ONNX
special_tokens_map.json
tokenizer.json
tokenizer_config.json