qianhuiwu commited on
Commit
0712d49
1 Parent(s): abda236

Fix device problem.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,12 +15,12 @@ compressors = {
15
  "xlm-roberta-large": PromptCompressor(
16
  model_name="microsoft/llmlingua-2-xlm-roberta-large-meetingbank",
17
  use_llmlingua2=True,
18
- device="cpu"
19
  ),
20
  "mbert-base": PromptCompressor(
21
  model_name="microsoft/llmlingua-2-bert-base-multilingual-cased-meetingbank",
22
  use_llmlingua2=True,
23
- device="cpu"
24
  )
25
  }
26
  tokenizer = tiktoken.encoding_for_model("gpt-4")
 
15
  "xlm-roberta-large": PromptCompressor(
16
  model_name="microsoft/llmlingua-2-xlm-roberta-large-meetingbank",
17
  use_llmlingua2=True,
18
+ device_map="cpu"
19
  ),
20
  "mbert-base": PromptCompressor(
21
  model_name="microsoft/llmlingua-2-bert-base-multilingual-cased-meetingbank",
22
  use_llmlingua2=True,
23
+ device_map="cpu"
24
  )
25
  }
26
  tokenizer = tiktoken.encoding_for_model("gpt-4")