Views
No views yet
1# pip install deepsparse[llm]
2from deepsparse import TextGeneration
3
4model = TextGeneration(model_path="hf:neuralmagic/Llama-2-7b-pruned50-retrained-ultrachat-quant-ds")
5
6input_text = "Write me a poem about Machine Learning."
7outputs = model(input_text, max_new_tokens=100)
8print(outputs.generations[0].text)| Benchmark | Metric | Llama-2-7b-ultrachat | Llama-2-7b-pruned50-retrained-ultrachat-quant-ds |
|---|---|---|---|
| MMLU | 5-shot, top-1 | xxxx | xxxx |
| HellaSwag | 0-shot | xxxx | xxxx |
| WinoGrande | partial score | xxxx | xxxx |
| ARC-c | xxxx | xxxx | |
| TruthfulQA | 5-shot | xxxx | xxxx |
| HumanEval | pass@1 | xxxx | xxxx |
| GSM8K | maj@1 | xxxx | xxxx |