"src/Makefile" did not exist on "cc0e9cb4fba1e7f8587a3d882259eb1e45eeb1ed"
Unverified Commit 4747d318 authored by Michael Goin's avatar Michael Goin Committed by GitHub
Browse files

Update with latest and polish

parent da0b6f86
...@@ -81,6 +81,20 @@ To evaluate models that are loaded via `AutoSeq2SeqLM` in Huggingface, you inste ...@@ -81,6 +81,20 @@ To evaluate models that are loaded via `AutoSeq2SeqLM` in Huggingface, you inste
> **Warning**: Choosing the wrong model may result in erroneous outputs despite not erroring. > **Warning**: Choosing the wrong model may result in erroneous outputs despite not erroring.
### Neural Magic `deepsparse`
Models from [SparseZoo](https://sparsezoo.neuralmagic.com/) can be evaluated directly in lm-evaluation-harness using [DeepSparse](https://github.com/neuralmagic/deepsparse):
```bash
pip install deepsparse-nightly[llm]
python main.py --model deepsparse --model_args pretrained=zoo:mpt-7b-gsm8k_mpt_pretrain-pruned70_quantized --tasks gsm8k
```
Compatible models hosted on Hugging Face Hub can be used as well:
```bash
python main.py --model deepsparse --model_args pretrained=hf:mgoin/TinyLlama-1.1B-Chat-v0.3-ds --tasks hellaswag
python main.py --model deepsparse --model_args pretrained=hf:neuralmagic/mpt-7b-gsm8k-pruned60-quant-ds --tasks gsm8k
```
### Commercial APIs ### Commercial APIs
Our library also supports language models served via the OpenAI API: Our library also supports language models served via the OpenAI API:
......
...@@ -50,5 +50,6 @@ setuptools.setup( ...@@ -50,5 +50,6 @@ setuptools.setup(
"sentencepiece": ["sentencepiece>=0.1.98", "protobuf>=4.22.1"], "sentencepiece": ["sentencepiece>=0.1.98", "protobuf>=4.22.1"],
"auto-gptq": ["auto-gptq[triton] @ git+https://github.com/PanQiWei/AutoGPTQ"], "auto-gptq": ["auto-gptq[triton] @ git+https://github.com/PanQiWei/AutoGPTQ"],
"anthropic": ["anthropic"], "anthropic": ["anthropic"],
"deepsparse": ["deepsparse-nightly[llm]"],
}, },
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment