Spaces:
Sleeping
Sleeping
added gpu to GemmaLLMInterface
Browse files- 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
|