Locon213 commited on
Commit
65a757e
1 Parent(s): 1aa720b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- # Загрузка модели Marco-o1
5
- pipe = pipeline("text-generation", model="AIDC-AI/Marco-o1")
6
 
7
  def respond(
8
  message,
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ # Загрузка модели Marco-o1 с квантизацией
5
+ pipe = pipeline("text-generation", model="AIDC-AI/Marco-o1", device_map="auto", torch_dtype="auto", trust_remote_code=True)
6
 
7
  def respond(
8
  message,