|
1 | 1 | # Harness Evaluation
|
2 |
| -[Harness evaluation](https://github.com/EleutherAI/lm-evaluation-harness) allows users to eaisly get accuracy on various datasets. Here we have enabled harness evaluation with IPEX-LLM under |
| 2 | +[Harness evaluation](https://github.com/EleutherAI/lm-evaluation-harness) allows users to eaisly get accuracy on various datasets. Here we have enabled harness evaluation with IPEX-LLM under |
3 | 3 | [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) settings.
|
4 | 4 | Before running, make sure to have [ipex-llm](../../../README.md) installed.
|
5 | 5 |
|
@@ -53,21 +53,21 @@ AutoModelForCausalLM.from_pretrained = partial(AutoModelForCausalLM.from_pretrai
|
53 | 53 | ```
|
54 | 54 | to the following codes to load the low bit models.
|
55 | 55 | ```python
|
56 |
| -class ModifiedAutoModelForCausalLM(AutoModelForCausalLM): |
| 56 | +class ModifiedAutoModelForCausalLM(AutoModelForCausalLM): |
57 | 57 | @classmethod
|
58 | 58 | def load_low_bit(cls,*args,**kwargs):
|
59 |
| - for k in ['load_in_low_bit', 'device_map', 'max_memory', 'load_in_8bit','load_in_4bit']: |
| 59 | + for k in ['load_in_low_bit', 'device_map', 'max_memory','load_in_4bit']: |
60 | 60 | kwargs.pop(k)
|
61 | 61 | return super().load_low_bit(*args, **kwargs)
|
62 | 62 |
|
63 | 63 | AutoModelForCausalLM.from_pretrained=partial(ModifiedAutoModelForCausalLM.load_low_bit, *self.bigdl_llm_kwargs)
|
64 | 64 | ```
|
65 | 65 | ### 2.Please pass the argument `trust_remote_code=True` to allow custom code to be run.
|
66 |
| -`lm-evaluation-harness` doesn't pass `trust_remote_code=true` argument to datasets. This may cause errors similar to the following one: |
| 66 | +`lm-evaluation-harness` doesn't pass `trust_remote_code=true` argument to datasets. This may cause errors similar to the following one: |
67 | 67 | ```
|
68 |
| -RuntimeError: Job config of task=winogrande, precision=sym_int4 failed. |
| 68 | +RuntimeError: Job config of task=winogrande, precision=sym_int4 failed. |
69 | 69 | Error Message: The repository for winogrande contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/winogrande.
|
70 |
| -please pass the argument trust_remote_code=True to allow custom code to be run. |
| 70 | +please pass the argument trust_remote_code=True to allow custom code to be run. |
71 | 71 | ```
|
72 | 72 | Please refer to these:
|
73 | 73 |
|
|
0 commit comments