yasserrmd commited on
Commit
35847cc
·
verified ·
1 Parent(s): 85e46ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,8 +5,7 @@ from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
5
  model_name = "yasserrmd/SmolLM2-156M-synthetic-dlp"
6
  model = AutoModelForCausalLM.from_pretrained(
7
  model_name,
8
- load_in_8bit=True, # Enable 8-bit precision
9
- device_map="auto" # Automatically allocate to GPU/CPU
10
  )
11
  tokenizer = AutoTokenizer.from_pretrained(model_name)
12
 
 
5
  model_name = "yasserrmd/SmolLM2-156M-synthetic-dlp"
6
  model = AutoModelForCausalLM.from_pretrained(
7
  model_name,
8
+ load_in_8bit=True
 
9
  )
10
  tokenizer = AutoTokenizer.from_pretrained(model_name)
11