gaur3009 commited on
Commit
3be11bc
Β·
verified Β·
1 Parent(s): 7d9b16b

Update llm.py

Browse files
Files changed (1) hide show
  1. llm.py +1 -2
llm.py CHANGED
@@ -1,10 +1,9 @@
1
  from transformers import pipeline
2
  import torch
3
 
4
- device = 0 if torch.cuda.is_available() else -1
5
  qa_pipeline = pipeline(
6
  "text2text-generation",
7
- model="google/flan-t5-large",
8
  device=device
9
  )
10
 
 
1
  from transformers import pipeline
2
  import torch
3
 
 
4
  qa_pipeline = pipeline(
5
  "text2text-generation",
6
+ model="google/flan-t5-base",
7
  device=device
8
  )
9