Spaces:
Build error
Build error
Ravi theja K
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
4 |
|
5 |
import torch
|
6 |
-
from transformers import
|
7 |
from deepspeed.linear.config import QuantizationConfig
|
8 |
|
9 |
Llamatokenizertokenizer = AutoTokenizer.from_pretrained(
|
@@ -12,7 +12,7 @@ Llamatokenizertokenizer = AutoTokenizer.from_pretrained(
|
|
12 |
)
|
13 |
quant_config = QuantizationConfig(q_bits=8)
|
14 |
|
15 |
-
model =
|
16 |
"Snowflake/snowflake-arctic-instruct",
|
17 |
trust_remote_code=True,
|
18 |
low_cpu_mem_usage=True,
|
|
|
3 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
4 |
|
5 |
import torch
|
6 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
7 |
from deepspeed.linear.config import QuantizationConfig
|
8 |
|
9 |
Llamatokenizertokenizer = AutoTokenizer.from_pretrained(
|
|
|
12 |
)
|
13 |
quant_config = QuantizationConfig(q_bits=8)
|
14 |
|
15 |
+
model = AutoModelForCausalLM.from_pretrained(
|
16 |
"Snowflake/snowflake-arctic-instruct",
|
17 |
trust_remote_code=True,
|
18 |
low_cpu_mem_usage=True,
|