Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,8 @@ tokenizer = YiTokenizer(vocab_file="./tokenizer.model")
|
|
29 |
model = transformers.AutoModelForCausalLM.from_pretrained(model_name,
|
30 |
device_map="auto",
|
31 |
torch_dtype=torch.bfloat16,
|
32 |
-
load_in_4bit=True
|
|
|
33 |
)
|
34 |
|
35 |
# Load the model and tokenizer using transformers
|
|
|
29 |
model = transformers.AutoModelForCausalLM.from_pretrained(model_name,
|
30 |
device_map="auto",
|
31 |
torch_dtype=torch.bfloat16,
|
32 |
+
load_in_4bit=True,
|
33 |
+
trust_remote_code=True
|
34 |
)
|
35 |
|
36 |
# Load the model and tokenizer using transformers
|