Skip to content

Commit aac8503

Browse files
Merge branch 'develop' into mm_structred_output
2 parents 8ae5d81 + 273efba commit aac8503

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: CI
22

33
on:
44
pull_request:
5-
branches: [ develop ]
5+
branches:
6+
- develop
7+
- 'release/*'
68
workflow_dispatch:
79

810
concurrency:

.github/workflows/ci_xpu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: CI_XPU
22

33
on:
44
pull_request:
5-
branches: [ develop ]
5+
branches:
6+
- develop
7+
- 'release/*'
68
workflow_dispatch:
79

810
concurrency:

fastdeploy/entrypoints/openai/test_openai.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
client = openai.Client(base_url=f"http://{ip}:{service_http_port}/v1", api_key="EMPTY_API_KEY")
2323

24-
# 非流式返回
24+
# 非流式返回, completion接口不会使用chat template对输入进行处理
2525
response = client.completions.create(
2626
model="default",
2727
prompt="There are 50 kinds of fruits, include apple, banana, pineapple",
@@ -33,7 +33,7 @@
3333
print(response)
3434
print("\n")
3535

36-
# 流式返回
36+
# 流式返回, completion接口不会使用chat template对输入进行处理
3737
response = client.completions.create(
3838
model="default",
3939
prompt="Hello, how are you?",
@@ -46,13 +46,12 @@
4646
print("\n")
4747

4848
# Chat completion
49-
# 非流式返回
49+
# 非流式返回, 会基于chat template对输入进行拼接处理
5050
response = client.chat.completions.create(
5151
model="default",
5252
messages=[
53-
{"role": "user", "content": "Hello, who are you"},
5453
{"role": "system", "content": "I'm a helpful AI assistant."},
55-
{"role": "user", "content": "List 3 countries and their capitals."},
54+
{"role": "user", "content": "Hello, who are you"},
5655
],
5756
temperature=1,
5857
max_tokens=64,
@@ -63,13 +62,12 @@
6362
print("\n")
6463

6564

66-
# # 流式返回
65+
# # 流式返回, 会基于chat template对输入进行拼接处理
6766
response = client.chat.completions.create(
6867
model="default",
6968
messages=[
70-
{"role": "user", "content": "Hello, who are you"},
7169
{"role": "system", "content": "I'm a helpful AI assistant."},
72-
{"role": "user", "content": "List 3 countries and their capitals."},
70+
{"role": "user", "content": "Hello, who are you"},
7371
],
7472
temperature=1,
7573
max_tokens=64,

fastdeploy/input/mm_processor/image_preprocessor/image_preprocessor_adaptive.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@
5757
MAX_PIXELS = 16384 * 28 * 28
5858
MAX_RATIO = 200
5959

60-
VIDEO_MIN_PIXELS = 128 * 28 * 28
61-
VIDEO_MAX_PIXELS = 768 * 28 * 28
62-
VIDEO_TOTAL_PIXELS = 24576 * 28 * 28
63-
FRAME_FACTOR = 2
64-
FPS = 2.0
65-
FPS_MIN_FRAMES = 4
66-
FPS_MAX_FRAMES = 768
67-
6860

6961
VideoInput = Union[
7062
List["PIL.Image.Image"],

0 commit comments

Comments
 (0)