Ravi theja K commited on
Commit
50157b8
·
verified ·
1 Parent(s): d45c16f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 AutoModel, AutoTokenizer
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 = AutoModel.from_pretrained(
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,