Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -13,12 +13,11 @@ HUGGINGFACE=True
|
|
| 13 |
MOCK = False
|
| 14 |
TEST_FOLDER = "c4f5"
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
hug_tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
| 22 |
|
| 23 |
INPUT_STRUCTION_TEMPLATE = """Here is a gray scale images representing with integer values 0-9.
|
| 24 |
{image_str}
|
|
|
|
| 13 |
MOCK = False
|
| 14 |
TEST_FOLDER = "c4f5"
|
| 15 |
|
| 16 |
+
MODEL_NAME="xu3kev/deepseekcoder-7b-logo-pbe"
|
| 17 |
+
import torch
|
| 18 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 19 |
+
hug_model = AutoModelForCausalLM.from_pretrained(MODEL_NAME, torch_dtype=torch.float16,).to('cuda')
|
| 20 |
+
hug_tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
|
|
|
| 21 |
|
| 22 |
INPUT_STRUCTION_TEMPLATE = """Here is a gray scale images representing with integer values 0-9.
|
| 23 |
{image_str}
|