Files changed (1) hide show
  1. README.md +64 -0
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ datasets:
4
+ - NeelNanda/pile-10k
5
+ language:
6
+ - en
7
+ tags:
8
+ - text-generation-inference
9
  ---
10
+
11
+ ## Model Details
12
+
13
+ This model is an int8 model quantized from [tiiuae/falcon-7b](https://huggingface.co/tiiuae/falcon-7b) using SmoothQuant.
14
+
15
+ ## Env setup
16
+
17
+ [Environment Setup](https://github.com/intel/intel-extension-for-pytorch/tree/release/2.2/examples/cpu/inference/python/llm#3-environment-setup)
18
+
19
+ ## Inferece
20
+
21
+ Use IPEX 2.2
22
+ ```bash
23
+ git clone https://github.com/intel/intel-extension-for-pytorch.git
24
+ cd intel-extension-for-pytorch/examples/cpu/inference/python/llm
25
+ git checkout release/2.2
26
+ python run.py --benchmark -m tiiuae/falcon-7b --ipex-smooth-quant --qconfig-summary-file <path to Intel/falcon-7b-sq-int8-inc best_configure.json"> --output-dir "saved_results"
27
+ ```
28
+
29
+ ## Evaluate
30
+
31
+ ### Evaluate the model
32
+
33
+ ```bash
34
+ git clone https://github.com/intel/intel-extension-for-pytorch.git
35
+ cd intel-extension-for-pytorch/examples/cpu/inference/python/llm/single_instance
36
+ git checkout release/2.2
37
+ python run_accuracy.py -m tiiuae/falcon-7b --quantized-model-path <path to Intel/falcon-7b-sq-int8-inc best_configure.json"> --dtype int8 --tasks lambada_openai
38
+ ```
39
+
40
+ ### Results
41
+
42
+ | Metric | fp32 | int8 sq |
43
+ | -------------- | ------ | -------- |
44
+ | Avg. | 0.6982 | 0.6992 |
45
+ | lambada_openai | 0.7467 | 0.7648 |
46
+ | hellaswag | 0.5778 | 0.5659 |
47
+ | winogrande | 0.6732 | 0.6717 |
48
+ | piqa | 0.7949 | 0.7943 |
49
+
50
+ Inference latency: 1.631 sec.
51
+
52
+
53
+ ## Ethical Considerations and Limitations
54
+
55
+ The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
56
+
57
+ Therefore, before deploying any applications of the model, developers should perform safety testing.
58
+
59
+ ## Caveats and Recommendations
60
+
61
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
62
+
63
+ Here are a couple of useful links to learn more about Intel's AI software:
64
+
65
+ * [Intel® Neural Compressor](https://github.com/intel/neural-compressor)
66
+ * [Intel® Extension for Transformers](https://github.com/intel/intel-extension-for-transformers)
67
+ * [Intel® Extension for PyTorch](https://github.com/intel/intel-extension-for-pytorch)