gufett0 commited on
Commit
2d75926
·
1 Parent(s): e90ba30

added gpu to GemmaLLMInterface

Browse files
Files changed (1) hide show
  1. interface.py +4 -0
interface.py CHANGED
@@ -5,7 +5,11 @@ from typing import Any
5
  import torch
6
  from transformers import TextIteratorStreamer
7
  from threading import Thread
 
8
 
 
 
 
9
  class GemmaLLMInterface(CustomLLM):
10
  model: Any
11
  tokenizer: Any
 
5
  import torch
6
  from transformers import TextIteratorStreamer
7
  from threading import Thread
8
+ import spaces
9
 
10
+
11
+
12
+ @spaces.GPU(duration=120)
13
  class GemmaLLMInterface(CustomLLM):
14
  model: Any
15
  tokenizer: Any