carsonhxsu commited on
Commit
b9af709
1 Parent(s): 5eabfad

update readme

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -23,7 +23,7 @@ We use the LLaMA.13B model for measurement, but this optimized inference is appl
23
 
24
  * Evaluated at tokens/s
25
  * test on A100 40G
26
- * fp16 and int8 precision
27
 
28
  ### LLaMA-Ziya-13B
29
 
@@ -31,7 +31,7 @@ We use the LLaMA.13B model for measurement, but this optimized inference is appl
31
  | --- | --- | --- | --- | --- | --- |
32
  | Torch LLaMA | 31.74 | 289.2 | 521.37 | 775.69 | OOM |
33
  | lyraLLaMA fp16 | 73.2 | 565.6 | 1179.59 | 1795.63 | 3061.27 |
34
- | lyraLLaMA int8 | 104 | 770.5 | 1389.9 | 2390.4 | 3782.1 |
35
 
36
  ### LLaMA-Vicuna-13B
37
 
@@ -39,7 +39,7 @@ We use the LLaMA.13B model for measurement, but this optimized inference is appl
39
  | --- | --- | --- | --- | --- | --- |
40
  | Torch LLaMA | 24.65| 167.3 | 322.97 | 407.99 | OOM |
41
  | lyraLLaMA fp16 | 53.67 | 421.38 | 804.31 | 1519.28| 2679.82 |
42
- | lyraLLaMA int8 | 79.81 | 603.15 | 1117.27 | 1966.52 | 3200.32 |
43
 
44
  ## Docker Environment Recommendation
45
 
@@ -64,9 +64,9 @@ tokenizer_path = "./models/"
64
  dtype='fp16'
65
  prompt = "今天天气大概 25度,有点小雨,吹着风,我想去户外散步,应该穿什么样的衣服 裤子鞋子搭配"
66
  max_output_length = 512
67
- int8_mode = 0 # To use int8 mode, set int8_mode=1
68
 
69
- model = lyraLLaMA(model_path, tokenizer_path, dtype, int8_mode)
70
 
71
  prompt = '<human>:' + prompt.strip() + '\n<bot>:'
72
 
 
23
 
24
  * Evaluated at tokens/s
25
  * test on A100 40G
26
+ * fp16 and MEMOPT precision
27
 
28
  ### LLaMA-Ziya-13B
29
 
 
31
  | --- | --- | --- | --- | --- | --- |
32
  | Torch LLaMA | 31.74 | 289.2 | 521.37 | 775.69 | OOM |
33
  | lyraLLaMA fp16 | 73.2 | 565.6 | 1179.59 | 1795.63 | 3061.27 |
34
+ | lyraLLaMA MEMOPT | 104 | 770.5 | 1389.9 | 2390.4 | 3782.1 |
35
 
36
  ### LLaMA-Vicuna-13B
37
 
 
39
  | --- | --- | --- | --- | --- | --- |
40
  | Torch LLaMA | 24.65| 167.3 | 322.97 | 407.99 | OOM |
41
  | lyraLLaMA fp16 | 53.67 | 421.38 | 804.31 | 1519.28| 2679.82 |
42
+ | lyraLLaMA MEMOPT | 79.81 | 603.15 | 1117.27 | 1966.52 | 3200.32 |
43
 
44
  ## Docker Environment Recommendation
45
 
 
64
  dtype='fp16'
65
  prompt = "今天天气大概 25度,有点小雨,吹着风,我想去户外散步,应该穿什么样的衣服 裤子鞋子搭配"
66
  max_output_length = 512
67
+ memopt_mode = 0 # To use MEMOPT mode, set memopt_mode=1
68
 
69
+ model = lyraLLaMA(model_path, tokenizer_path, dtype, memopt_mode)
70
 
71
  prompt = '<human>:' + prompt.strip() + '\n<bot>:'
72