Update app.py
Browse files
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,
|