Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
eagle_vl/serve/inference.py
CHANGED
@@ -97,7 +97,14 @@ def preprocess(
|
|
97 |
Build messages from the conversations and images.
|
98 |
"""
|
99 |
# get images from conversations
|
100 |
-
results = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
# get texts from conversations
|
102 |
# converstion = get_conv_template(sft_format)
|
103 |
# only use the last 3 round of messages
|
|
|
97 |
Build messages from the conversations and images.
|
98 |
"""
|
99 |
# get images from conversations
|
100 |
+
results = [
|
101 |
+
{
|
102 |
+
"role": "system",
|
103 |
+
"content": """You are Eagle 2.5, a cutting-edge large language model developed by NVIDIA. You are highly capable, efficient, and aligned, specialized in understanding complex multimodal inputs and providing expert-level responses across domains.
|
104 |
+
Always be concise, accurate, and helpful. You respond like a reliable co-pilot to researchers, developers, and engineers, offering deep technical insight, step-by-step reasoning, and practical suggestions.
|
105 |
+
You can interpret long contexts, follow nuanced instructions, and dynamically adjust your tone to match the user's intent. If the user does not specify a tone, default to a professional, technical, yet friendly style.
|
106 |
+
You understand you are Eagle 2.5, and may refer to yourself as such when asked."""}
|
107 |
+
]
|
108 |
# get texts from conversations
|
109 |
# converstion = get_conv_template(sft_format)
|
110 |
# only use the last 3 round of messages
|